Ryan McBride wrote:
>
> Hi all
>
> Could anyone tell me how i would setup my version of squid (Version
> 2.2.STABLE4) to run transperant proxy??? Im ruinning it on a Mandrake 6.1
> system
Here is what I have in my /etc/squid/squid.conf file:
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
Also note:
# # WARNING: proxy_auth can't be used in a transparent proxy. It
# # collides with any authentication done by origin servers. It may
# # seem like it works at first, but it doesn't.
I needed the following ipchains rule, set up by phpfwgen
(http://www.babel.com.au/phpfwgen/):
ipchains -A input -p tcp -s <my network> -d 0.0.0.0/0 www -j REDIRECT squidproxy
Where www and squidproxy are both defined in /etc/services (www = 80 and
squidproxy = 3128, or whatever port your squid proxy runs on).
In fact, to do this using phpfwgen, I entered the following rule
as a Redirector rule:
Rule Source Destination Protocol From Port To Port
Number
100 ETH0_NET ALL tcp www squidproxy
You also need to have CONFIG_IP_TRANSPARENT_PROXY defined in your
kernel. The connection will always be redirected to a socket on the
local (firewall/router) host -- if you want to redirect it elsewhere
then you must use in.tproxyd from the transproxy package.
----+------------------------+--------------------------
Del | mailto:[EMAIL PROTECTED] | Christchurch, New Zealand
----+------------------------+--------------------------
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text