From dbdd54d6168721c21922fe5597b07ab84b2427b5 Mon Sep 17 00:00:00 2001
From: teastep
Date: Mon, 12 Dec 2005 17:21:52 +0000
Subject: [PATCH] Bring Squid Documenation up to date
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3151 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
---
Shorewall-docs2/Shorewall_Squid_Usage.xml | 76 +++--------------------
1 file changed, 7 insertions(+), 69 deletions(-)
diff --git a/Shorewall-docs2/Shorewall_Squid_Usage.xml b/Shorewall-docs2/Shorewall_Squid_Usage.xml
index dddd66a7c..9aa4c9e46 100644
--- a/Shorewall-docs2/Shorewall_Squid_Usage.xml
+++ b/Shorewall-docs2/Shorewall_Squid_Usage.xml
@@ -38,10 +38,12 @@
url="http://www.squid-cache.org">Squid running as a Transparent
Proxy or as a Manual Proxy.
-
- This documentation assumes that you are running Shorewall 2.0.0 or
- later.
-
+
+ This article applies to Shorewall 3.0 and
+ later. If you are running a version of Shorewall earlier than Shorewall
+ 3.0.0 then please see the documentation for that
+ release.
+
Squid as a Transparent Proxy
@@ -173,46 +175,6 @@ REDIRECT loc 3128 tcp www - !206.124.146.
a web server running on 192.168.1.3. It is assumed that web access is
already enabled from the local zone to the internet.
- If you are running a Shorewall version earlier than 2.3.2
- then:
-
-
-
- On your firewall system, issue the following command
-
- echo 202 www.out >> /etc/iproute2/rt_tables
-
-
-
- Create /etc/shorewall/addroutes as
- follows:
-
- #!/bin/sh
-
-if [ -z "`ip rule list | grep www.out`" ] ; then
- ip rule add fwmark 0xCA table www.out # Note 0xCA = 202
- ip route add default via 192.168.1.3 dev eth1 table www.out
- ip route flush cache
- echo 0 > /proc/sys/net/ipv4/conf/eth1/send_redirects
-fi
-
-
-
- Make /etc/shorewall/addroutes executable
- via:
-
- chmod +x /etc/shorewall/addroutes
-
-
-
- In /etc/shorewall/init, put:
-
- run_and_save_command "/etc/shorewall/addroutes"
-
-
-
- If you are running Shorewall 2.3.2 or later:
-
Add this entry to your /etc/shorewall/providers file.
@@ -220,12 +182,7 @@ fi
#NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS
Squid 1 202 - eth1 192.168.1.3 loose
-
- Regardless of your Shorewall version, you need the
- following:
-
-
In /etc/shorewall/start add:
@@ -240,25 +197,6 @@ Squid 1 202 - eth1 192.168.1.3 loose
routeback
-
- In /etc/shorewall/rules:
-
- #ACTION SOURCE DEST PROTO DEST PORT(S)
-ACCEPT loc loc tcp www
-
-
-
- Alternatively, you can have the following policy in place
- of the above rule.
-
- /etc/shorewall/policy
-
- #SOURCE DESTINATION POLICY
-loc loc ACCEPT
-
-
-
-
On 192.168.1.3, arrange for the following command to be
executed after networking has come up
@@ -312,4 +250,4 @@ ACCEPT loc $FW tcp 8080
ACCEPT $FW net tcp 80,443
-
+
\ No newline at end of file