Okies, so I'm playing around with one of the Linux boxes, which is running an IPTables based firewall (basically it's a slightly modified KISS My Firewall - which is just an IP Tables shell script)..
I figured I'd try out the UT2K4 Demo server on the system so a few friends could play on it.
I completely flush iptables, and allow everything, get the server working, all is good.
Now, if I want more long-term use of this server, obviously I don't want to have my firewall down permanently. In order to make things well with the world I need to add certain ports access.
This is what I'm supposed to allow...
# UDP IN/OUT 7777 - UT Server
# UDP IN/OUT 7778 - UT Server (query port)
# UDP IN/OUT 7787 - GameSpy
# UDP IN/OUT 7788 - GameSpy
# UDP OUT 11777 - UT Master Server Game Stats
# TCP/UDP OUT 28902 - UT Master Server
# TCP IN xxxx - UT Web Admin port
- # UDP IN/OUT 7777 - UT Server
- # UDP IN/OUT 7778 - UT Server (query port)
- # UDP IN/OUT 7787 - GameSpy
- # UDP IN/OUT 7788 - GameSpy
- # UDP OUT 11777 - UT Master Server Game Stats
- # TCP/UDP OUT 28902 - UT Master Server
- # TCP IN xxxx - UT Web Admin port
But, I'm not entirely sure of the lines for the UDP ports. The TCP ports are no problem, I've got the TCP/28902 and TCP/Web Admin ports all working, but I can't get the UDP working no matter what I try.
Basically, everything's blocked from everywhere unless I specifically allow it.
What would be the iptables parameters to allow incoming & outgoing on those UDP ports? (Assume my IP address is 192.168.0.2 for this).