Fedora 27
Sponsored Link

Squid : Install2017/12/19

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

acl lan src 10.0.0.0/24
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
# do not display IP address

forwarded_for off
[root@prox ~]#
systemctl start squid

[root@prox ~]#
systemctl enable squid

[3] If Firewalld is running, allow Proxy service.
[root@prox ~]#
firewall-cmd --add-service=squid --permanent

success
[root@prox ~]#
firewall-cmd --reload

success
Matched Content