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

Re: simple iptables rules

On Thursday 09 October 2003 01:09, Tiago Fernandes wrote:
> hi,
> i thing that this should do the trick, for you
> iptables -F
> iptables -P INPUT DROP
> iptables -A INPUT -s -j ACCEPT
> iptables -A INPUT -i "ppp0 or -s external_ip" -m state --state 
> all packages related with sended packages should be accepted.

You might need to add this as well :

iptables -A OUTPUT -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

GPG: http://n12turbo.com/tarragon/public.key

Reply to: