From: Jan Humme <jan.humme@xs4all.nl>
To: Mark Tessier <mt@open2web.com>, netfilter@lists.samba.org
Subject: Re: script particularities
Date: Wed, 10 Jul 2002 21:11:27 +0200 [thread overview]
Message-ID: <0207102111270E.04513@Lms> (raw)
In-Reply-To: <20020710144109.5448cc69.mt@open2web.com>
On Wednesday 10 July 2002 20:41, Mark Tessier wrote:
> Is there anyone out there who has deployed the choke firewall script found
> in chapter 6 of R. Ziegler's book "Linux Firewalls".
Which edition is that? Mine doesn't even deal with iptables.
> CLASS_A="10.0.0.0/8" # class A private networks
> CLASS_B="172.16.0.0/12" # class B private networks
> CLASS_C="192.168.0.0/16" # class C private networks
>
> This is all typical of what you'd find in most scripts, but the fact is in
> this script, that's the last time CLASS_A, CLASS_B, etc are mentioned. In
> other words, there's no rule specific to denying packets coming from a
> CLASS_A private network. Why would one initialize a CLASS_A variable if
> it's never going to be used, I wonder? Is there some other rule used in
> this script that makes using a rule specifically denying access to packets
> coming from a CLASS_A private network obsolete?
>
> Finally, I use the following rule:
>
> iptables -L FORWARD -v -x
That is only one specific chain. If all counters remain at 0, then your
packet is not traveling through the FORWARD chain.
So you may also want to look at:
iptables -L -v -x
iptables -L -v -x -t nat
iptables -L -v -x -t mangle
to inspect all other chains where your packets may get dropped. One or more
of the counters there must be changing, that's right!
Also, tcpdump -n may give some information what is happening to your packets.
Jan Humme.
next prev parent reply other threads:[~2002-07-10 19:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-10 18:41 script particularities Mark Tessier
2002-07-10 19:11 ` Jan Humme [this message]
2002-07-10 19:23 ` Ramin Alidousti
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=0207102111270E.04513@Lms \
--to=jan.humme@xs4all.nl \
--cc=mt@open2web.com \
--cc=netfilter@lists.samba.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