From: Eric Ellis <eellis@mail.co.gilchrist.fl.us>
To: netfilter@lists.netfilter.org
Subject: Re: More neqbie questions
Date: Mon, 02 Aug 2004 15:50:21 -0400 [thread overview]
Message-ID: <410E9AFD.90500@mail.co.gilchrist.fl.us> (raw)
In-Reply-To: <200408022003.54833.Antony@Soft-Solutions.co.uk>
Antony Stone wrote:
> On Monday 02 August 2004 6:46 pm, Eric Ellis wrote:
>
>
>>This is one of those things that's been hounding me for the past few
>>weeks that I can't understand what's *exactly* going on...
>>
>>I've been using the IPTables tutorial from
>>http://iptables-tutorial.frozentux.net/chunkyhtml/index.html, as has
>>been pointed out and recommended by many of the list's pros. It's a
>>great tutorial, and I highly recommend it.
>>
>>However, I have either glossed something covered in it, or I have a
>>fundamental misunderstanding of some part of IPTables.
>>
>>I know that the route works. I've verified it. I can move IPTraffic
>>when I set all of my policies on my filter script to accept. However,
>>when I set my policies on my script to drop, Nothing talks any more.
>
>
> My recommendation is to put a LOG rule at the end of each chain, just before
> the default DROP policy takes effect, and you'll see what packets are getting
> that far and then being lost.
>
> Regards,
>
> Antony.
>
Now here's something interesting that I discovered when you mentioned
it...
<code>
root@firewall:/var/log# tail syslog -f|grep 10.1.1.100
Aug 2 13:41:38 firewall kernel: IN=eth1 OUT=eth0 SRC=10.1.1.100
DST=212.19.193.43 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=
49518 DF PROTO=TCP SPT=3571 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0
Aug 2 13:41:41 firewall kernel: IN=eth1 OUT=eth0 SRC=10.1.1.100
DST=212.19.193.43 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=
49558 DF PROTO=TCP SPT=3571 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0
Aug 2 13:41:47 firewall kernel: IN=eth1 OUT=eth0 SRC=10.1.1.100
DST=212.19.193.43 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=
49660 DF PROTO=TCP SPT=3571 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0
Aug 2 13:42:17 firewall kernel: IN=eth1 OUT=eth0 SRC=10.1.1.100
DST=66.35.250.151 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=
50070 DF PROTO=TCP SPT=3579 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0
Aug 2 13:42:20 firewall kernel: IN=eth1 OUT=eth0 SRC=10.1.1.100
DST=66.35.250.151 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=
50113 DF PROTO=TCP SPT=3579 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0
Aug 2 13:42:26 firewall kernel: IN=eth1 OUT=eth0 SRC=10.1.1.100
DST=66.35.250.151 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=
50187 DF PROTO=TCP SPT=3579 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0
</code>
It appears that all of my HTTP packets are making it through the chains
without being picked up by my redirect rule. The same appears to be
happening with mail. I put the LOG at the end of the 3 filter tables,
In, Out, and FWD, so assuming that it's line by line filtering (eg, runs
until a rule catches it), my packet is making it throught the chains
without being caught. Any suggesstions on what could cause that?
next prev parent reply other threads:[~2004-08-02 19:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-02 17:46 More neqbie questions Eric Ellis
2004-08-02 19:03 ` Antony Stone
2004-08-02 19:50 ` Eric Ellis [this message]
2004-08-02 20:02 ` Antony Stone
2004-08-02 20:08 ` Antony Stone
-- strict thread matches above, loose matches on Subject: below --
2004-08-02 18:16 Jason Opperisano
2004-08-02 20:09 Jason Opperisano
2004-08-02 23:57 Jason Opperisano
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=410E9AFD.90500@mail.co.gilchrist.fl.us \
--to=eellis@mail.co.gilchrist.fl.us \
--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