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: changehttp_port
8080
# add at the last linerequest_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 startStarting 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