Fedora 14
Sponsored Link

Install Squid2010/11/08

  Configure Proxy server and make web browzing fast. Install Squid for it.

[1] Install and configure Squid
[root@lan03 ~]#
yum -y install squid


[root@lan03 ~]#
vi /etc/squid/squid.conf


# line 11: maike it comment all

#
acl localnet src 10.0.0.0/8
#
acl localnet src 172.16.0.0/12
#
acl localnet src 192.168.0.0/16
#
acl localnet src fc00::/7
#
acl localnet src fe80::/10
# line 16: add ( range you allow to access )

acl lan src 10.0.0.0/24


# line 55: make it comment

#
http_access allow localnet
http_access allow localhost
# line 57: add ( allow 'lan' above )

http_access allow lan

# And finally deny all other access to this proxy
http_access deny all

# line 62: change

http_port
8080


# add at the last line

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 lan03.srv.world


# add (hide IP address)

forwarded_for off


[root@lan03 ~]#
/etc/rc.d/init.d/squid start

init_cache_dir /var/spool/squid... Starting squid:
[  OK  ]

[root@lan03 ~]#
chkconfig squid on
[2] Start Web browser on your client PC. This is the example on Internet Explorer 8. 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.
 
Matched Content