Colt Seevers
10-07-2006, 12:17 AM
Hey linux people!
I'm in the process of setting up a dedicated server, using fedora 4. Basically i'm running into some weird Iptable problems, and wondering in any Linux gurus could help, or point me in the right direction. :)
Ok heres the deal, setting up a BF2 server, and in order to connect I have to grant permision by setting up these rules in iptables:
iptables -A bf2server -m udp -p udp -m multiport --dports 29900,29901,29902,29903,29904,16567,55125 -j ACCEPT
iptables -A bf2server -m tcp -p tcp -m multiport --dports 4711 -j ACCEPT
iptables -A bf2server -m udp -p udp --sport 29910 -s 207.38.8.27 -j ACCEPT
iptables -A bf2server -m udp -p udp --sport 29910 -s 207.38.8.28 -j ACCEPT
That should cover all the bases. Yet I still can't connect to it, i've tried turning iptables off and bada bing! server comes up no probs in the browser. So its defo to do with iptables... but I've double checked and triple checked - those entries are all I could find.. so I doubt its them...
So whats worrying me is why is it when I type "service iptables status" its giving me a report like this:
Chain bf2server (0 references)
target prot opt source destination
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp multiport dports 29900,29901,29902,29903,29904,16567,55125
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp multiport dports 4711
ACCEPT udp -- 207.38.8.27 0.0.0.0/0 udp spt:29910
ACCEPT udp -- 207.38.8.28 0.0.0.0/0 udp spt:29910
Even though I have logged in under my bf2 user account and started the server, surley iptables should recognise this? And so show 1 reference? so I'm guessing it must have something to do with user account permisions or something? If anyone can help, it would much appreciated!! :)
Cheers!
I'm in the process of setting up a dedicated server, using fedora 4. Basically i'm running into some weird Iptable problems, and wondering in any Linux gurus could help, or point me in the right direction. :)
Ok heres the deal, setting up a BF2 server, and in order to connect I have to grant permision by setting up these rules in iptables:
iptables -A bf2server -m udp -p udp -m multiport --dports 29900,29901,29902,29903,29904,16567,55125 -j ACCEPT
iptables -A bf2server -m tcp -p tcp -m multiport --dports 4711 -j ACCEPT
iptables -A bf2server -m udp -p udp --sport 29910 -s 207.38.8.27 -j ACCEPT
iptables -A bf2server -m udp -p udp --sport 29910 -s 207.38.8.28 -j ACCEPT
That should cover all the bases. Yet I still can't connect to it, i've tried turning iptables off and bada bing! server comes up no probs in the browser. So its defo to do with iptables... but I've double checked and triple checked - those entries are all I could find.. so I doubt its them...
So whats worrying me is why is it when I type "service iptables status" its giving me a report like this:
Chain bf2server (0 references)
target prot opt source destination
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp multiport dports 29900,29901,29902,29903,29904,16567,55125
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp multiport dports 4711
ACCEPT udp -- 207.38.8.27 0.0.0.0/0 udp spt:29910
ACCEPT udp -- 207.38.8.28 0.0.0.0/0 udp spt:29910
Even though I have logged in under my bf2 user account and started the server, surley iptables should recognise this? And so show 1 reference? so I'm guessing it must have something to do with user account permisions or something? If anyone can help, it would much appreciated!! :)
Cheers!