Propert IPTABLES Configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am attempting to setup a Half-Life Counter-Strike Server on my machine. I need
it setup so people can access it from the internet and my intranet.

I found the following ports I need setup.

TCP 6003 outbound, incoming replies (as specified in woncomm.lst)
TCP 7002 outbound, incoming replies (as specified in woncomm.lst)
UDP 27010 outbound, incoming replies (as specified in woncomm.lst)
UDP 27011 outbound, incoming replies (as specified in woncomm.lst)
UDP 27012 outbound, incoming replies (as specified in woncomm.lst)
UDP 27013 outbound, incoming replies
UDP 27015 outbound, incoming replies on 27015-27050


would something like this be right?

IPTABLES -A INPUT -i eth0 -p tcp -s any/0 -d any/0 --dport 6003 -m state --state ESTABLISHED,RELATED -j ACCEPT

with that in mind would I have to create an output for each one too?

IPTABLES -A OUTPUT -o eth0 -p tcp --dport 6003 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

Thanks for your help.

Rob



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux