Debian 12 bookworm
Sponsored Link

Squid : Install2023/07/10

 
Install Squid and configure Proxy server.
[1] Install Squid.
root@prox:~#
apt -y install squid
[2] This is common forward proxy settings.
root@prox:~#
vi /etc/squid/squid.conf
# line 1341 : add (define ACL for internal network)
.....
.....
acl localnet src 172.16.0.0/12          # RFC 1918 local private network (LAN)
acl localnet src 192.168.0.0/16         # RFC 1918 local private network (LAN)
acl localnet src fc00::/7               # RFC 4193 local private network range
acl localnet src fe80::/10              # RFC 4291 link-local (directly plugged)) machines
acl my_localnet src 10.0.0.0/24

# line 1541 : uncomment
http_access deny to_localhost

# line 1553 : add the line (apply ACL for internal network)
#http_access allow localnet
http_access allow localhost
http_access allow my_localnet

# line 5974 : add
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

# line 8652 : add
# forwarded_for on
forwarded_for off

root@prox:~#
systemctl restart squid
Matched Content