Rex's 備忘錄

Debian 9 Install Squid and configure Proxy server

apt-get install squid

vi /etc/squid/squid.conf

add:

acl CONNECT method CONNECT
acl lan src 192.168.1.0/24
http_access allow localhost
http_access allow lan
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
forwarded_for off

 

/etc/init.d/squid restart

Home