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
acl CONNECT method CONNECT
# line 31: add ( define new ACL )

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

http_access allow lan
# line 64: change

http_port
8080
# 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.