How to configure SQUID Proxy server in Linux

Steps to install and configure a perfect squid proxy server in Linux. This configuration Should work on all rpm based distributions(Redhat,CentOS,Fedora,etc.)
After basic setup, see the Advanced Squid configuration page of squid server
Linux Proxy server
Step1: Install squid packages first

[root@server ~#]yum install squid


Step2: Edit the squid's configuration file "squid.conf" located in /etc/squid/
[root@server ~#]vi /etc/squid/squid.conf


#In 18th line add your proxy client network(if 192.168.10.1 to 255) and a name for network (here netusers is acl name)
acl netusers src 192.168.10.0/24


#In the 51st line, allow internet access to above specified network range 
http_access allow netusers


# in the 64th line (remove # if present), and change port number if required
http_port 3128


#Add the below 3 lines to the bottom of file
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all


#Add the below line to bottom
forwarded_for off


#Add below line to bottom(add your visible hostname)

visible_hostname servercomputing
#(now save the squid.conf file)


Step3: start squid daemon
[root@server ~#]service squid start


Step4: In the allowed clients(192.168.10.1 to 192.168.10.255) Configure web browser's proxy settings to use the proxy server for internet access.
here 192.168.10.100 and 3128 is proxy server's ipaddress and port
(settings for mozilla firefox)
Tips: see the Advanced Squid configuration page of squid server
Important: squid will listen on port 3128/tcp, you should open this port in firewall or click here to Disable firewall

1 comments:

Jagadish said...

root@server ~#]yum install squid

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons