Home arrow Applications Tips arrow Squid Tips
Squid Tips PDF
Sunday, 01 June 2008

Squid tips here.


Tip 1. Force Http traffics to a distinct site not to use Squid but goes directly via router
-------------------------------------------------------------------------------------------------------


Add the following lines to your squid.conf:

acl host_1    dstdomain .host1.com
always_direct allow host_1


The same result can be done with this configuration:

acl host_2    dstdomain .host2.com

no_cache deny host_2

 Tip 2. Transparent Squid for squid 2.6
-------------------------------------------------------------------------------------------------------

If you are trying to use transparent options for squid version above 2.6, and you get the following errors: 

# /usr/local/etc/rc.d/squid start
# Starting squid.
# 2007/04/10 17:53:42| parseConfigFile: line 47 unrecognized: 'httpd_accel_host virtual'
# 2007/04/10 17:53:42| parseConfigFile: line 48 unrecognized: 'httpd_accel_port 80'
# 2007/04/10 17:53:42| parseConfigFile: line 49 unrecognized: 'httpd_accel_with_proxy on'
# 2007/04/10 17:53:42| parseConfigFile: line 50 unrecognized: 'httpd_accel_uses_host_header on'
 

Instead of these lines just use the following:

# http_port 86.12.1.1:8080 transparent

 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?