Squid Proxy

From Wiki

Jump to: navigation, search

Contents

Setup Squid Proxy Server

apt-get install squid

Installs basic - but with no options.

Config Squid Proxy for Inital Use

The following options were added into /etc/squid/squid.conf

http_port 3128
cache_mem 8 MB

That Should be It!
To allow individual Clients besides Localhost

acl phi src 136.201.146.211
http_access allow phi

Info and basic settings got from:
http://www.howtoforge.com/linux_secure_browsing_squid
Main One = http://www.debianhelp.co.uk/squid.htm



Bandwidth Delay/Limit using Squid Proxy Server ->

Example Used:

delay_pools 1 
delay_class 1 3 
delay_access 1 allow users 
delay_access 1 deny all 
delay_parameters 1 -1/-1 64000/64000 6000/64000 
#asumed 256 is top speed 
#1250=10 Kbps

http://www.squid-cache.org/mail-archive/squid-users/200411/0692.html

More Info at: http://knowlinux.blogspot.com/2006/04/bandwidth-throttling-using-squid.html

Logging on Squid Proxy Server

If you want to log all the access made to the Squid Proxy Server, which is very useful for debugging access requests, do the following:

vi /etc/squid/squid.conf
#uncomment the following:
cache_access_log /var/log/squid/access.log

Thats it.

Personal tools