From: "Richard L. Dery" <dickdery@teleport.com>
To: netfilter@lists.netfilter.org
Subject: Testing iptables setup
Date: Mon, 08 Mar 2004 07:00:50 -0800 [thread overview]
Message-ID: <404C8AA2.6060208@teleport.com> (raw)
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
next reply other threads:[~2004-03-08 15:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-08 15:00 Richard L. Dery [this message]
2004-03-08 15:18 ` Testing iptables setup Antony Stone
2004-03-09 2:51 ` Ted Kaczmarek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=404C8AA2.6060208@teleport.com \
--to=dickdery@teleport.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox