Search squid archive

Re: Squid 3.3.11 in Transparent mode Access Denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24/06/2014 7:08 p.m., m.shahverdi@xxxxxxxxxxxx wrote:
> I have configured Squid 3.3.11 in Transparent mode on ubuntu 12.04 by
> below squid.conf:
> 
> acl localhost src 127.0.0.1/32 ::1
> acl SSL_ports port 443
> acl Safe_ports port 80 # http
> acl Safe_ports port 21 # ftp
> acl Safe_ports port 443 # https
> acl Safe_ports port 70 # gopher
> acl Safe_ports port 210 # wais
> acl Safe_ports port 1025-65535 # unregistered ports
> acl Safe_ports port 280 # http-mgmt
> acl Safe_ports port 488 # gss-http
> acl Safe_ports port 591 # filemaker
> acl Safe_ports port 777 # multiling http
> acl CONNECT method CONNECT
> 
> http_access allow all
> http_access allow localhost
> 
> http_port 3128 transparent
> 
> cache_dir ufs /usr/local/squid/var/cache/squid 100 16 256
> 
> debug_options rotate=1 ALL,5
> 
> coredump_dir /var/spool/squid3
> 
> # Add any of your own refresh_pattern entries above these.
> refresh_pattern ^ftp: 1440 20% 10080
> refresh_pattern ^gopher: 1440 0% 1440
> refresh_pattern -i (/cgi-bin/|?) 0 0% 0
> refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
> # example lin deb packages
> #refresh_pattern (.deb|.udeb)$ 129600 100% 129600
> refresh_pattern . 0 20% 4320
> 
> I have one network interface eth0 so I have added below rule to iptables:
> 
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
> --to-port 3128
> 
> and I configured firefox's proxy as IP:127.0.0.1 and port:3128

Thus requires a matching forward-proxy http_port to be configured in Squid.

Test the usage as would a real client of the proxy..
 * for a forward-proxy configure the browser proxy settings manually or
via PAC.
 * for "transparent interception" (note its a 2-word phrase) do not
configure the browser at all.

Amos




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux