10/29/2010

Build proxy server and make web browzing fast. Install squid for it.


[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.0
http_access allow localhost

# line 637: add ( allow from only LAN )
http_access allow lan
http_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
header_access X-Forwarded-For deny all
header_access Via deny all
header_access Cache-Control deny all
[root@lan ~]# /etc/rc.d/init.d/squid start
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.
Image option IE

[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.
Image Add adress proxy

No comments:

Post a Comment