[squid-users] TRANSEPARENT PROXY WITH SQUID 2.6

From: Indunil Jayasooriya <indunil75@dont-contact.us>
Date: Fri, 10 Aug 2007 13:53:37 +0530

Hi,

I am running squid as a TRANSEPARENT PROXY WITH SQUID 2.5 on CENTOS 4.5.

Pls see below for squid.con file.

 http_port 3128
 cache_mem 64 MB
 cache_dir ufs /var/spool/squid 100 16 256
  cache_access_log /var/log/squid/access.log
 cache_log /var/log/squid/cache.log
 cache_store_log /var/log/squid/store.log

# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS

# Example rule allowing access from your local networks. Adapt
# to list your (internal) IP networks from where browsing should
# be allowed

acl mynet src 192.168.101.0/24
http_access allow mynet

httpd_accel_host virtual
 httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

I am ruunnig itables on the SAME BOX. I have added below rules for squid.

#Redirecting traffic destined to port 80 to port 3128
 iptables -t nat -A PREROUTING -p tcp -i eth2 --dport 80 -j REDIRECT
--to-port 3128

#For squid traffic to Accept
iptables -A INPUT -i eth2 -d 192.168.101.254 -p tcp -s
192.168.101.0/24 --dport 3128 -j ACCEPT

Evrything works fine.

Now, I am ging to upgrade CENTOS 4.5 to CENTOS 5. It comes with SQUID 2.6.

But, squid.conf file in SQUID 2.6 has no below lines.

httpd_accel_host virtual
 httpd_accel_port 80
 httpd_accel_with_proxy on
 httpd_accel_uses_host_header on

So, I want to know how to setup squid as a TRANSEPARENT PROXY, when it
comes to SQUID 2.6.

any idea?

-- 
Thank you
Indunil Jayasooriya
Received on Fri Aug 10 2007 - 02:23:42 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Sep 01 2007 - 12:00:03 MDT