Linux Netfilter discussions
 help / color / mirror / Atom feed
* Testing iptables setup
@ 2004-03-08 15:00 Richard L. Dery
  2004-03-08 15:18 ` Antony Stone
  0 siblings, 1 reply; 3+ messages in thread
From: Richard L. Dery @ 2004-03-08 15:00 UTC (permalink / raw)
  To: netfilter

I have the following setup in my /etc/ppp/ip-up.d directory:

(bash script stuff deleted)

## Create chain which blocks new connections, except if coming from inside.
# iptables -N block
# iptables -A block -m state --state ESTABLISHED,RELATED -j ACCEPT
# iptables -A block -m state --state NEW -i ! ppp0 -j ACCEPT
# iptables -A block -j DROP

## Jump to that chain from INPUT and FORWARD chains.
# iptables -A INPUT -j block
# iptables -A FORWARD -j block

(You may recognize them from the Packet Filtering HOWTO).

When I run iptables -L after connecting these rules are displayed.

Is there a way to test to show that these rules work?


Thank you.

Dick Dery



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-09  2:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-08 15:00 Testing iptables setup Richard L. Dery
2004-03-08 15:18 ` Antony Stone
2004-03-09  2:51   ` Ted Kaczmarek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox