How -to : Installing Proxy server on CentOs 6.x

Step : 1 Install and configure Squid


[root@proxy-lab ~]#
yum -y install squid
[root@proxy-lab ~]#
vi /etc/squid/squid.conf
# line 31: add ( define new ACL )

acl lan src
http_access allow localhost
# line 59: add ( allow defined ACL above )

http_access allow lan
# line 64: change

# 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
# add (specify hostname)

visible_hostname proxy-lab.localhost
# add (hide IP address)

forwarded_for off
[root@proxy-lab ~]#
/etc/rc.d/init.d/squid start

Starting squid:
[ OK ]

[root@proxy-lab ~]#
chkconfig squid on


Step : 2

Configure te proxy on the client computer Browser


Step : 3


Add the Proxy server IPaddress on the browser


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.