From: Raymond Leach <raymondl@knowledgefactory.co.za>
To: "'netfilter@lists.netfilter.org'" <netfilter@lists.netfilter.org>
Subject: RE: intermittent and unreliable behaviour with iptables scripts
Date: 13 Nov 2002 17:16:06 +0200 [thread overview]
Message-ID: <1037200566.4557.37.camel@rayw.knowledgefactory.co.za> (raw)
In-Reply-To: <91F7518FF779D41181A700010266356D015555DE@mail.springbound.com>
[-- Attachment #1: Type: text/plain, Size: 3017 bytes --]
On Wed, 2002-11-13 at 16:34, Doug Watson wrote:
> Thank you for your prompt response.
>
> If there really is a bug in ip_conntrack
> that makes me unfortunately skiddish about
> continuing on with netfilter/iptables as a
> viable solution for my company. Yet it seems
> like many people have implemented this and have
> not seen these types of problems.
>
hmm... me neither
> I have run the script that you sent me several times.
> Attached is a sample output from it. I don't believe that
> I am seeing anything too strange, but I do have 1 question.
> in the following line which you will see in the attached file
> what does the (policy ACCEPT 4 packets, 284 bytes) mean?
> Chain OUTPUT (policy ACCEPT 4 packets, 284 bytes)
>
It means that the default policy for the OUTPUT chain is to accept
packets and that there have been 4 packets totalling 284 bytes tested
against this chain.
> Is that the total number of packets to traverse the OUTPUT
> chain or it he number of packets ACCEPTED by the policy for the
> OUTPUT chain? Or something else?
>
As above ...
> Thank you,
> Doug Watson
>
> -----Original Message-----
> From: alex [mailto:alex@bennee.com]
> Sent: Monday, November 11, 2002 6:19 PM
> To: Doug Watson
> Cc: 'netfilter@lists.netfilter.org'
> Subject: Re: intermittent and unreliable behaviour with iptables
> scripts
>
>
> On Mon, 2002-11-11 at 17:25, Doug Watson wrote:
> > However, I along with my test group of 5 "lucky" users began to see
> > some
> > intermittent and unreliable behavior when accessing the internet
> > through
> > this new firewall most notably when browsing the web.
> >
> > When browsing the web, web pages that normally would load very
> quickly
> > seem
> > to hang for an inconsistent amount of time, anywhere between 1
> second
> > to 30 seconds or more
> > before they would even begin to load or would at times never load at
> > all as
> > if the connection to the web was lost.
>
> This sound familiar to my own woes with port forwarded connections. I
> suspect a bug in ip_conntrack that somehow causes FORWARDED packets to
> end up in the output chains. I've been trying to find out exactly when
> this occurs and why (and certainly why my older script worked without
> problems).
>
> You could try a using a variation of this script to monitor your
> connections "live" and see which rule starts dropping when you
> experience your problems. Try using it with something like watch:
>
> iptables -Z -t nat
> iptables -Z
> watch -n 5 -d ./dumpview
>
> #!/bin/bash
> #
> # dumpview - try and see where the packets get dropped.
> #
> echo "DNAT Stuff"
> iptables -nvL -t nat
> echo "Dropped packets of normal chains"
> iptables -nvL | egrep "Chain|DROP"
> echo "Connections"
> cat /proc/net/ip_conntrack | wc -l
> echo "Web Connections"
> cat /proc/net/ip_conntrack | grep "port=80"
>
> --
> alex <alex@bennee.com>
> My own hacking haven
--
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-11-13 15:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-13 14:34 intermittent and unreliable behaviour with iptables scripts Doug Watson
2002-11-13 15:16 ` Raymond Leach [this message]
2002-11-13 20:21 ` Joel Newkirk
2002-11-13 18:13 ` Dax Kelson
2002-11-14 18:28 ` ICMP question Luis Fernando Barrera
2002-11-14 21:47 ` Darrell F. Dieringer
2002-11-24 16:34 ` Nick Drage
2002-11-15 1:59 ` Joel Newkirk
2002-11-13 22:47 ` intermittent and unreliable behaviour with iptables scripts alex
-- strict thread matches above, loose matches on Subject: below --
2002-12-09 16:15 Doug Watson
2002-11-15 15:14 Doug Watson
2002-11-13 15:01 Doug Watson
2002-11-13 14:53 Doug Watson
2002-11-13 14:35 Doug Watson
2002-11-11 17:25 Doug Watson
2002-11-11 23:19 ` alex
2002-11-12 0:10 ` Anders Fugmann
2002-11-12 6:30 ` Joel Newkirk
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=1037200566.4557.37.camel@rayw.knowledgefactory.co.za \
--to=raymondl@knowledgefactory.co.za \
--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