[SOLVED] Game servers not listed and are unreachable for master servers

Started by Mister J., October 16, 2024, 04:00:44 AM

Previous topic - Next topic
I don't know if you can call this progress, but something has changed.
According to arena.sh my Warsow server is online, but -Xonotic still isn't.
Neither is Urban Terror according to urbanterror.info.

All game servers (besides UT2K4) are still not listed in the in-game server listings.
Not sure what the difference is or what the reason is for this to happen.
I already contacted arena.sh, but I got no response.

Please advice.

The problems are still not solved and I would like some feedback to at least point me in the right direction before the end of the year.

Let's try a different way. Provide something similar to this. I'd like to see your network internal landscape with relevant details like IP addresses for interfaces and bridges (Proxmox is in play). See the attachment (hopefully will render OK for your screen). This is a mock with partly made-up details but hopefully you can see what elements are of interest.
Once we have an idea of this layout, we will move on to ask for details of your OPN setup in relation to firewall rules, NAT settings, etc.
We will need from you the required settings from your gaming server software/application(s) to then translate those requirements into settings in OPN.
Best I can think of to try to assist here.
You cannot view this attachment.

December 14, 2024, 06:28:00 AM #18 Last Edit: December 15, 2024, 01:44:04 AM by besalope Reason: Clarification
Op / Mister J -- These are the configurations you need in Opnsense and your LXCs in order to get the servers communicating with the master servers:

UT2004


Opnsense

  • UDP Port Forwards
  • Default:  7777, 7778, 7787, 7788   <-You are missing 7788 in your config which might affect server identification here.
  • Firewall > Settings > Advanced:  Make sure the following options for NAT are enabled (reflection for port forward and auto outbound rules)


Proxmox Container (ubuntu 24.04 with ufw)

  • Add the following UDP entries to UFW:
  • 7777, 7778, 7787, 7788
  • 10777, 11777 –LAN-only ports

Add the following TCP Entries to UFW:
  • 80 – Webadmin port (ut2004.ini - [UWeb.WebServer] -- ListenPort)
  • 28902 – Master Server (outbound) port



UT2004.ini
[IpDrv.MasterServerUplink]
ServerBehindNAT=True
DoLANBroadcast=True



Opnsense Portforward Example (Firewall > NAT > Port Forward)

• Interface:  WAN
• TCP/IP Version:  IPv4
• Protocol:  UDP
• Destination:  WAN Address
• Port:  Other – 7777
• Redirect Target IP:  Single Host - 192.168.100.142
• Redirect Target Port:  Other - 7777

This should be created for 7777, 7778, 7787, 7788.

 
This will setup the server to allow external connections and communication with the Openspy master server that you already setup in the ut2004.ini.


(Note, if you also setup the Proxmox firewall for the LXC within the administrative ui.. you'll also need to add the container forwards there as well).



Xonotic

Opnsense

NAT Port Forward Rule
  • Only 1 UDP port, can be changed in server config.
  • Default:  26000


NAT Outbound Rule  (https://forums.xonotic.org/showthread.php?tid=7956&pid=84430#pid84430)

  • Go to Firewall-NAT-Outbound
  • Click  on Hybrid outbound NAT rule generation
  • Click +Add
  • Interface WAN
  • Protocol UDP
  • Source Address Single host or Network 192.168.100.142/32
  • Source port (other) [port of Xonotic Server]
  • Destination address any
  • Destination port any
  • Enable Static-port


Proxmox Container (ubuntu 24.04 with ufw)

  • Add the following UDP entries to UFW:
  • 26000


It took awhile for the master server list to show the server, but it is now there.  It might help to try navigating to your external IP to check if a record is present:
https://dpmaster.deathmask.net/?game=xonotic&server=0.0.0.0:26000   <- swap 0.0.0.0 for your external IP

Might be a placebo, but my game server only showed in the list after I manually navigated to its entry for external IP.  Arena.sh appears to just be a cache of dpmaster.deathmask.net and there was decent delay (20+ min) between my server showing on deathmask and finally appearing on Arena.sh.



I will test out Urban Terror this weekend, it has been 18 years or so since the last time my group played that at LANs.

UrbanTerror

 Opnsense

NAT Port Forward Rule
  • Only 1 UDP port, can be changed at server launch
  • Default:  27960


NAT Outbound Rule -- UrT and Xonotic both used Quake3 networking, this applies as well. (https://forums.xonotic.org/showthread.php?tid=7956&pid=84430#pid84430)

  • Go to Firewall-NAT-Outbound
  • Click  on Hybrid outbound NAT rule generation
  • Click +Add
  • Interface WAN
  • Protocol UDP
  • Source Address Single host or Network 192.168.100.142/32
  • Source port (other) 27960
  • Destination address any
  • Destination port any
  • Enable Static-port


Proxmox Container (ubuntu 24.04 with ufw)

  • Add the following UDP entries to UFW:
  • 27960


Have a little patience (few minutes) for the server to then start showing up on the UrT server list.  https://www.urbanterror.info/servers/list/
https://www.urbanterror.info/servers/list/0.0.0.0:27960  <- same drill, replace with your external IP for direct status check.



That should wrap up what is needed for all 3 servers to be fully functional.

~ [LGN]Besalope
LanzGaming.net Game Server Admin (2005 - Present)

Not your network info I requested but instead the information on what the settings required on a router are. Those are useful though, will do for now.
Apparently is straight forward. One port forward and one Outbound NAT keeping the static port.
It appears then from post #15 that your port forward to port 27960 for UrbanTerror (a game I suppose) is somehow "not working".
Show your OPN port forward and NAT rules in screenshots please. Verify you can hit that port on your server on LAN from your OPN. You can use telnet for that for example
$telnet 192.168.100.142 27960You should get a:
Trying  192.168.100.142...
Connected to [machine name on network]
Escape character is '^]'.
You could use your preferred tool instead of telnet but you get the idea, which is to verify the port is open to connections on the LAN. If it is, then the port forward should be working if set correctly.

Quote from: cookiemonster on December 14, 2024, 11:30:58 PMNot your network info I requested but instead the information on what the settings required on a router are. Those are useful though, will do for now.

Minor clarification:  Posts 18 and 19 were not from the OP requestor Mister J that you were interacting with.  I am a different user with a working configuration for these servers that the OP should follow if he wants to get this work :)  In hindsight, I should have been more clear about that at the start of post 18.


Summary of issues:

  • UT2004 - The 4th port (7788) on Opnsense side of NAT port forwarding was missing.
  • Xonotic - Need to add that outbound NAT rule as the tracking server expects the communication to come from a port matching inbound.  Not having this rule results in a randomized outbound port that results in the tracking server not being able to validate his local server is running.
  • UrbanTerror - Need to add that outbound NAT rule as the tracking server expects the communication to come from a port matching inbound.   Not having this rule results in a randomized outbound port that results in the tracking server not being able to validate his local server is running.

Thanks for clarifying. Hopefully the OP will then now have enough information to move forward. Thanks!

Thank you all for responding and investigating my earlier posts.
I initially gave up all hope to solve this, but now I have some new information that I can try.
I don't understand everything that you guys posted, but I will do my best to follow your instructions as soon as I find the time.
I think I will ask for guidance from someone who has more knowledge about OPNsense, because I think that might help.
For now I am grateful for your detailed assistance and I will keep you posted on my progress.

Thanks besalope,

These are the solutions I was looking for and it solved 3 out of 4 listing issues.
Warsow (arena.sh), Xonotic (arena.sh) and UrT (urbanterror.info) are now listed like they are supposed to be.

I only have problems with UT2K4 (gametracker.com).
I still cannot add UT2K4 to GT (GT could not scan the server).
Whitelisting the GT servers didn't work either.

I followed your instructions and I am using the rules like you mentioned in all 4 cases.
I do not use a FW in the Proxmox LXC's.

Please advice.

Thanks besalope,

I finally managed to list all 4 game servers.
The last things I had to do was to change a few configuration settings.

In Xonotic:
sv_public 1

In UT2K4:
UplinkToGamespy=True

Now I am ready to add more game servers.

Closing this case