Squid Server

Posted: August 7, 2013 in Uncategorized
  • Package: squid
  • Daemon: /usr/sbin/squid
  • Script: /etc/init.d/squid
  • Port: 3128(squid), (configurable)
  • Configuration: /etc/squid/*

Just follow the steps and you will able to configure squid proxy server with time based content filtering.
Install squid by using:
# rpm -ivh squid-2.3.STABLE4-10.i386.rpm
Varify the installation:
# rpm -q squid
If you want to reinstall squid forcefully:
# rpm -ivh –force squid-*.rpm
varify the service will start after boot:
# chkconfig squid on
Now its time to edit the squid.conf
acl manager proto cache_object
acl localhost src
acl mynet src #specify a name for your network
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow mynet
http_access deny all
icp_access allow all
miss_access allow all
cache_mgr root@yourdomain.com
visible_hostname you.yourdomain.com
unique_hostname you.yourdomain.com
#We will run squid with accelerator on
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
http_port 3128
name virtual_host mynetwork.
save and exit the configuration file
# /etc/rc.d/init.d/squid start
# /etc/rc.d/init.d/squid restart
open browser and set the proxy ip and enjoy the service.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s