Hello, you must put:
http_port 3128 transparent
Indunil Jayasooriya wrote:
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://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 <http://192.168.101.254>
-p tcp -s 192.168.101.0/24 <http://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
------------------------------------------------------------------------
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.11/944 - Release Date: 8/9/2007 2:44 PM
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos