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

Step : 1 Install and configure Squid

 

[[email protected] ~]#
yum -y install squid
[[email protected] ~]#
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
[[email protected] ~]#
/etc/rc.d/init.d/squid start

Starting squid:
[ OK ]

[[email protected] ~]#
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.

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