[1] | Install Squid |
[root@lan ~]# yum -y install squid [root@lan ~]# vi /etc/squid/squid.conf # line 919: change http_port 8080 acl CONNECT method CONNECT # line 590: add ( allow from only LAN ) acl lan src 192.168.0.0/255.255.255.0http_access allow localhost # line 637: add ( allow from only LAN ) http_access allow lanhttp_access deny all # line 3003: add ( define hostname ) visible_hostname lan.server-linux.info # forwarded_for on # line 4275: add ( hide IP ) forwarded_for off# line 2789: add these lines header_access Referer deny all [root@lan ~]# /etc/rc.d/init.d/squid startheader_access X-Forwarded-For deny all header_access Via deny all header_access Cache-Control deny all init_cache_dir /var/spool/squid... Starting squid: [ OK ] [root@lan ~]#chkconfig squid on |
[2].Start Web browser on your client PC. Select [Tools] - [Internet Options] and move to [Connections] tab like below. | |||
|
[3].Check 'use a proxy' and input server's hostname and port number set in the section [1]. Then, you can access to internet through proxy server. | |||
|
No comments:
Post a Comment