How to Install Squid on CentOS 7 / RHEL 7 ( Easy Config )
[root@prox ~]#
http_port
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
[root@prox ~]#
[root@prox ~]#
yum -y install squid
[root@prox ~]#
vi /etc/squid/squid.conf
acl CONNECT method CONNECT
# line 26: add ( define new ACL )
acl lan src 10.0.0.0/24
http_access allow localhost
# line 54: add ( allow defined ACL above )
http_access allow lan
# line 59: change
http_port
8080
# 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
# specify hostname
visible_hostname prox.server.world
# not display IP address
forwarded_for off
systemctl start squid
[root@prox ~]#