Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Doug Kehn <rdkehn@yahoo.com>
To: netfilter@vger.kernel.org
Cc: rdkehn@yahoo.com
Subject: netfilter/dansguardian/polipo slow
Date: Sun, 14 Sep 2008 07:49:36 -0700 (PDT)	[thread overview]
Message-ID: <656617.35927.qm@web52002.mail.re2.yahoo.com> (raw)

Hi All,

I have an AMCC PPC-440 based board running Monta Vista Linux 2.6.18, dansguardian 2.9.8.5, and polipo 1.0.4.  dansguardian is used for URL and content filtering.  polipo is serving as the http proxy.  The iptables rule to redirect port 80 packets to dansguardian is:

iptables -t nat -A PREROUTING -d ! 192.168.2.0/255.255.255.0 -i br0 \
-p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3129

All components are functioning properly.  However, web page load times are 3 to 4 times slower with this rule in place than without.  I suspected the delay was with dansguardian/polipo.  Then, I left the rule in place and configured the browser's http proxy settings for 192.168.2.1/3129.  Page load times decreased dramatically.  Packets were still traversing dansguardian/polipo as URL/content filtering rules still worked as expected.  I also changed the PREROUTING policy from ACCEPT to DROP.  After doing this, I could no longer browse the internet (or communicate with the board).  I'm pretty sure the PREROUTING chain is being traversed; the rule is just not matching.

It appears (???) the delay is only observed when the rule matches.  I tried different variants of the rule to see if writing the rule in different ways produced different results.  For example,

iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp --dport 80 \
-j REDIRECT --to-ports 3129

All rule variations resulted in the same increased page load times.

Unfortunately, updating the kernel and/or configuring the browser's http proxy settings aren't allowable options. 8(  Does anyone have any information, comments suggestions, tips, or tricks?  

Thanks,
...doug



      

             reply	other threads:[~2008-09-14 14:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-14 14:49 Doug Kehn [this message]
2008-09-16 18:27 ` netfilter/dansguardian/polipo slow Grant Taylor
2008-09-16 21:56   ` Brian Austin - Standard Universal

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=656617.35927.qm@web52002.mail.re2.yahoo.com \
    --to=rdkehn@yahoo.com \
    --cc=netfilter@vger.kernel.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