Operating System - Linux
1752806 Members
5784 Online
108789 Solutions
New Discussion юеВ

help me config transparent proxy in squid2.6-STABLE12

 
Maaz
Valued Contributor

help me config transparent proxy in squid2.6-STABLE12

when I was using squid2.5, these settings were working quite fine
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

but in squid2.6, the above configs are depreciated.. to config transparent proxy, only two lines are required....
in squid.conf i add the following two lines

http_port squid_lan_ip:3128 transparent
always_direct allow all

but still transparent proxy doesnt work

on squid server I got the following error,
# squid -NCd1
.
.
2007/04/16 10:43:54| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 11.
2007/04/16 10:43:54| commBind: Cannot bind socket FD 12 to 10.0.0.110:3128: (98) Address already in use
2007/04/16 10:43:54| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
.
.

when any client try to browse, then
#squid -NCd1
.
.
.
2007/04/16 18:21:21| clientReadRequest: FD 10 (10.0.0.131:1293) Invalid Request

# tail -f /usr/local/squid/var/logs/access.log
1176729681.883 0 10.0.0.131 TCP_DENIED/400 1965 GET error:invalid-request - NONE/- text/html

If i configure the proxy setting, on the browser, I can then easily browse, but I cant config the all the browsers, as a proxy client... I need transparent proxy.
plz help me config transparent proxy using squid2.6-STABLE12
2 REPLIES 2
Maaz
Valued Contributor

Re: help me config transparent proxy in squid2.6-STABLE12

issue resolved ;)

i was doing a mistake..
what i was doing is that I add http_port lines two times.
Maaz
Valued Contributor

Re: help me config transparent proxy in squid2.6-STABLE12

my mistake was that .. I add the "http_port" two
http_port 3128
http_port squid_lan_ip:3128 transparent

simply I removed the "http_port 3128", and remained
http_port squid_lan_ip:3128 transparent
its working ;)

regards