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)