Thursday, October 09, 2014

Installing and Configuring SQUID Proxy in 5 Minutes

This article is based on RHEL/CentOS operating Systems, Squid Proxy Server can run on Ubuntu and Windows as well and the configurations are similar.

Ok! let get done in 5 minutes.....




Step 1: Installing Squid

#yum install squid -y

Once squid proxy service is installed, the configuration file will be placed under "/etc/squid/squid.conf"

Step 2: Edit the configuration file and enter the below parameters

#vi /etc/squid/squid.conf

visible_hostname proxy
acl web src 10.10.10.0/24
http_access allow web
http_port 8080

Step 3: Starting the SQUID service

to start

#service squid start

to reload the configuration

#service squid reload

Thats it, SQUID Proxy server will be up and running in 5 minutes

Step 5:

Now configure the Squid Proxy server IP address in your browser to access the internet through Squid Proxy, you can also configure as a transparent proxy using on-premise firewall.



Tip to Hide the Squid Proxy header information to the external world, edit the "etc/squid/squid.conf" and append the following parameters.

via off
forwarded_for off
follow_x_forwarded_for deny all

Please mail me incase of assistance!

No comments: