From b57fd9f2a949424c099bcf37427673804fdc0284 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 26 Apr 2013 08:42:23 -0700 Subject: [PATCH] Update TPROXY article to explain exclusion. Signed-off-by: Tom Eastep --- docs/Shorewall_Squid_Usage.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/Shorewall_Squid_Usage.xml b/docs/Shorewall_Squid_Usage.xml index b44fa8b03..23558610f 100644 --- a/docs/Shorewall_Squid_Usage.xml +++ b/docs/Shorewall_Squid_Usage.xml @@ -412,6 +412,18 @@ TPROXY(3129) eth1 0.0.0.0/0 tcp 80 for request packets after the connection is established and to direct response packets back to Squid3. + + If you run a web server on the Shorewall system that also listens + on port 80, then you need to exclude it from TPROXY. Suppose that your + web server listens on 192.0.2.144; then: + + FORMAT 2 +#MARK SOURCE DEST PROTO DEST SOURCE +# PORT(S) PORT(S) +DIVERT eth0 0.0.0.0/0 tcp - 80 +TPROXY(3129) eth1:!192.0.2.144 0.0.0.0/0 tcp 80 + + /etc/shorewall/rules: #ACTION SOURCE DEST PROTO DEST PORT(S)