Internet Service Providers Reviews by Users

CentOS 6 – Install Proxy Server Using Squid Squid

CentOS 6 – Install Proxy Server Using Squid

Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems, including Windows and is licensed under the GNU GPL.

How to Install Squid on CentOS 6 is really simple there is no change like privious version of CentOS 5, CentOS 4 etc.

1. Install CentOS 6 as normal we Install CentOS 6 as Server.

2. run the command : root#yum -y install squid , this command will install squid on your server after installation you need to update/edit and single squid configuration file as below:

3. The squid configuration file is located in etc/squid/ so write the command as root# vi /etc/squid/squid.conf  and change the following

first you need to change the acl connect as showing below
acl CONNECT method CONNECT
# line 31: add ( define new ACL )
acl lan src 10.0.0.0/24
http_access allow localhost

# line 59: add ( allow defined ACL above )
http_access allow lan
# line 64: change
after allowing the access to lan you need to edit the port or proxy server as below in the squid.conf file
http_port
8080

once you have completede the aboce setup there are little more to do with squid

# add at the last line

request_header_access Referer deny all
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all

Now you need to verify these settings
# add (specify hostname)
visible_hostname prox.isp.com.pk
# add (hide IP address)
forwarded_for off
You are done with Squid installation on CentOS 6 now you just need to restart the Squid service as below
[root@isp.com.pk ~]#
/etc/rc.d/init.d/squid start
Starting squid:
[ OK ]
final command to make to squid every time runing when you restart your server .
[root@isp.com.pk ~]#
chkconfig squid on
Wow you are done with your Squid proxy installation on CentOS 6 Server .

Your IP Address is:
98.80.143.34

468 ad

Leave a Comment

You must be logged in to post a comment.