From: Arnd Hannemann <arnd@arndnet.de>
To: netdev <netdev@vger.kernel.org>
Subject: 2.6.34 -> 3.0.23 regression?
Date: Tue, 06 Mar 2012 22:16:19 +0100 [thread overview]
Message-ID: <4F567EA3.5000102@arndnet.de> (raw)
Hi,
I upgraded a router box from kernel 2.6.34 to 3.0.23.
After the upgrade my proxy redirect was not working anymore
until I manually put the LAN interface (br0) in promisc mode.
Is it expected behavior that I need to set the interface into PROMISC
mode in order to get DNAT in PREROUTING to work?
With kernel 2.6.34 this was not needed...
Details:
192.168.1.1 is a router box and default gateway for clients
connected to 192.168.1.0/24 via br0,
connected to internet via wlan0,
192.168.1.2 is a proxy server running squid on port 3128
Iptables rules -t nat (simplified)
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- !192.168.1.2 0.0.0.0/0 tcp dpt:80 to:192.168.1.2:3128
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT tcp -- 192.168.1.0/24 0.0.0.0/0 tcp dpt:3128 to:192.168.1.1
Best regards
Arnd
reply other threads:[~2012-03-06 21:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4F567EA3.5000102@arndnet.de \
--to=arnd@arndnet.de \
--cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.