Squid Bypass

From MS Computech
Jump to: navigation, search

From many source


acl QUERY urlpath_regex cgi-bin \? \.asp \.php3 \.pls \.php \.pl curmbox auction
acl local_servers dst 20x.xxx.158.0/255.255.255.0 xx.xx.22.0/255.255.255.0
no_cache deny QUERY
no_cache deny local_servers


--------------------------------

Bypass proxy

make web_internal.txt and add your local web to this file
#example
yourweb.com
191.168.1.0/24

And then config your squid.conf file
#vi squid.conf

acl Internal url_regex -i "/etc/squid/web_internal.txt" # Internal
always_direct allow Internal


-----------------------------------

$ vi /etc/squid/squid.conf

acl url_bypass url_regex -i "/etc/squid/bypass_squid_domain"

http_access allow url_bypass

$ vi /etc/squid/bypass_squid_domain

เพิ่ม domain ที่ต้องการ bypass
cr-tools.clients.google.com
pack.google.com

$ squid -k reconfigure