How to Configure Squid Proxy Server, Basically Squid uses the configuration file called squid.conf located under /etc directory
It is usually located in the /etc/squid directory.
Access through the proxy can be given by individual IP addresses or by a subnet of IP addresses.
In squid.conf search for the default access control lists(acl) and add the following line below them:
acl mynetwork src 192.168.1.0/255.255.255.0 (for subnet)
acl mynetwork src 192.168.1.10/255.255.255.0 (for individual IP)
Then add the access control list named “mynetwork” to the http_access list with the following line:
http_access allow mynetwork
The default port for the proxy is 3128.
Uncomment the following line and replace 3128 with the desired port :
Syntax to start/stop/restart squid:
squid /etc/rc.d/init.d/squid start/stop/restart
or issue the following TWO commands as root:
Configuring squid Clients:
To configure any application including a web browser to use squid, modify the proxy setting with the IP address of the squid server and the port number (default 3128).