Create an account


Thread Rating:
  • 0 Vote(s) - 0 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
  [SOLVED] Opensuse Leap 15.1 and Server.cfg ldegroot 3 149 08-01-2019, 02:52 PM
Last Post: ldegroot
  LAN server console commands dbl 1 417 06-13-2019, 04:55 AM
Last Post: martin-t
  How to change server cfg on modified server veecho 4 637 04-24-2019, 08:15 PM
Last Post: BuddyFriendGuy
  Server error "Weapon stats writing failed: -404" FlufyBuny 1 325 04-13-2019, 04:36 AM
Last Post: It'sMe
  Dedicated server setup Rec0d 5 585 04-03-2019, 02:00 PM
Last Post: Rec0d
  South American Dedicated Server Professor 3 657 03-03-2019, 07:02 PM
Last Post: end user
  Xonotic server running behind UDP proxy not working doombringeroperator 2 638 01-07-2019, 02:23 PM
Last Post: doombringeroperator
  [NEED HELP] Server show on the browser list, but I can't connect! Professor 1 638 12-19-2018, 11:39 AM
Last Post: Professor
  Server Setup for Dummies litvinenkotea 7 4,372 12-08-2018, 01:20 PM
Last Post: tehjester78
  Local LAN Xonotic game server player Stats animatedjay 3 1,113 11-23-2018, 12:38 AM
Last Post: BuddyFriendGuy

Forum Jump:


Users browsing this thread:
1 Guest(s)

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