Rocky_Linux_8
Sponsored Link

Squid : Install2021/08/05

 
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 your local network

# network range you allow to use this proxy server

acl my_localnet src 10.0.0.0/24
# line 46 : uncomment

http_access deny to_localhost
# line 55 : comment out

#
http_access allow localnet
# line 57 : add (allow defined ACL above)

http_access allow my_localnet
# add 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
# add (do not display IP address)

forwarded_for off
[root@prox ~]#
systemctl enable --now squid

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

success
[root@prox ~]#
firewall-cmd --runtime-to-permanent

success
Matched Content