CentOS 6
Sponsored Link

Squid - Install2014/08/12

Install Squid to configure Proxy Server.
[1] Install Squid.
[root@prox ~]#
yum -y install squid
[2] This is general forward proxy settings.
[root@prox ~]#
vi /etc/squid/squid.conf
# line 29: add ( define new ACL )

acl lan src
http_access allow localhost
# line 57: add ( allow defined ACL above )

http_access allow lan
# add follows to the end

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
# not display IP address

forwarded_for off
[root@prox ~]#
/etc/rc.d/init.d/squid start

Starting squid:     [ OK ]
[root@prox ~]#
chkconfig squid on

[3] If IPTables is running, allow Proxy port.
For "-I INPUT 5" section below, Replace it to your own environment.
[root@prox ~]#
iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 3128 -j ACCEPT
Matched Content