Create an account


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TUTORIAL] Xonotic Server behind OPNSense (and pfSense)

#1
Information 
When NATting behind a OPNSense (or pfSense) firewall, setting up a port-forward is enough to let people manually connect to your Xonotic server when they know the IP and the port. However, the server is not showing up in the in-game server list or dpmaster.deathmask.net. This can be solved.
The description below is based on OPNSense, but it can probably be applied to pfSense too, because they share a lot. Some settings may be in a slightly different place or have a slightly different names though.

First: the port-forward:
  • Go to Firewall - NAT - Port Forward
  • Click +Add
  • Interface WAN
  • Protocol UDP
  • Destination WAN address
  • Destination port range (other) [port of Xonotic Server] (from en to)
  • Redirect target IP Single Host or Network [IP of Xonotic Server]
  • Redirect target port (other) [port of Xonotic Server]
Second: make outbound NAT rule:
This is to disable source port rewriting. Xonotic (and other Quak'ish games don't like it)
Read  more about it here.
  • Go to Firewall-NAT-Outbound
  • Click  on Hybrid outbound NAT rule generation
  • Click +Add
  • Interface WAN
  • Protocol UDP
  • Source Address Single host or Network [IP of Xonotic Server]/32
  • Source port (other) [port of Xonotic Server]
  • Destination address any
  • Destination port any
  • Enable Static-port

Especially the last is very important!
I hope this helps some people.
I'm leaving this here because it took me ages to find this out.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Xonotic server monitoring Sl@va 10 4,867 04-17-2023, 04:44 AM
Last Post: FAF
  Local LAN Xonotic game server player Stats animatedjay 5 4,231 03-23-2023, 02:23 PM
Last Post: FAF
  @Melon Planet server kicks ballerburg9005 2 406 03-18-2023, 03:51 PM
Last Post: ballerburg9005
  Server not visible on the server browser for others or me DankoLord 1 1,339 02-21-2023, 08:02 PM
Last Post: ballerburg9005
  Xonotic server running behind UDP proxy not working doombringeroperator 3 3,408 11-21-2022, 11:00 AM
Last Post: Zaphod
  Docker Xonotic Dedicated Server ich777 18 8,880 08-15-2022, 12:44 AM
Last Post: FAF
  Unjust ban on the only active DM server, what can be done? nj 30 7,955 08-02-2022, 07:04 AM
Last Post: nj
  BaI server | South American Xonotic server (located in Chile) z411 0 1,364 01-02-2022, 11:36 PM
Last Post: z411
  Lost server key, can't hold new key FlufyBuny 0 1,890 09-09-2021, 07:05 PM
Last Post: FlufyBuny
  How to tweak teams on my server? AndK 3 2,773 09-07-2021, 02:55 PM
Last Post: AndK

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-