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

Re: simple iptables rules



hi,

i thing that this should do the trick, for you

iptables -F
iptables -P INPUT DROP
iptables -A INPUT -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -i "ppp0 or -s external_ip" -m state --state  ESTABLISHED,RELATED -j ACCEPT

all packages related with sended packages should be accepted.

Tiago Fernandes


On Wed, 8 Oct 2003 20:38:53 +1000
Renai <rlem6983@mail.usyd.edu.au> wrote:

> hey ppl,
> 
> setting up some simple iptables rules for a debian unstable box behind an adsl 
> router. At the moment I have this:
> 
> iptables -t filter -P INPUT DROP
> iptables -t filter -A INPUT -s 192.168.1.0/24 -j ACCEPT
> 
> but this seems to block all network packets coming into my box. What am I 
> doing wrong?
> -- 
> http://sydney.indymedia.org
> grass-roots independent media
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-firewall-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

Attachment: pgpA2tegUFI58.pgp
Description: PGP signature


Reply to: