Re: Propert IPTABLES Configuration

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

 



 --- Rob <netfilter@cloudtown.com> wrote: > 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

i remember that 6003, 7001, 7002 are used for authentication and server lists.
so if you want only invite ppl join. maybe it's fine just open 27015 port.
someone correct me if i am wrong.
 
> 
> 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

this will reject you friends who want to join the server by typing the ip in the game console.

> 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

using NEW,ESTABLISHED,RELATED is the same as just saying "-j ACCEPT"
i think you want to allow "ESTABLISHED,RELATED " out.

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

> Thanks for your help.
> 
> Rob
> 
>  

i am not so sure about the ports but in any rate, try it.

James.Q.L

=====
/James.Q.L

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca


[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