cod4-docker icon indicating copy to clipboard operation
cod4-docker copied to clipboard

Settings for port forwarding and server config

Open frauseo opened this issue 1 year ago • 0 comments

Hi, first of all, thanks for the awesome project!

Situation

I have a working server hosted on a linux box. I startet the COD4 via steam and client updated correctly out of the box. AWESOME!

What I want

I want to share my server just with my friends... preferably not showing on the master server list.

Port forwarding

Using your docker-compose.yml opened port 8000 and 28960 (mapped then to 54321 and 54320 on my router) Testing to connect via console

connect privateIP:54320

i got a Timeout. According to the official Activision documentation, ports for PC have to be:

  • TCP: 3074, 27014-27050
  • UDP: 3074, 3478, 4379-4380, 27000-27031, 27036

Server settings

In the server.cfg there are a few settings i can change... like:

HTTP download

  • set sv_wwwBaseURL "http://yourdomain" change the yourdomain with public ip or is best to have a CNAME on my DNS?

Secure Server

  • set g_password "randomstrongpassword"
  • set rcon_password "randomstrongpassword" Are those sufficient security settings, appart from good practice in linux hardening?

guess set sv_privatePassword "private slot passwords" is not needed if g_password is set.

Thanks a lot for your support! Cheers

frauseo avatar Dec 12 '23 14:12 frauseo