You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
acl localnet src 192.168.1.0/24 # Change to your own network
|
|
|
|
acl SSL_ports port 443
|
|
acl Safe_ports port 80
|
|
acl Safe_ports port 21
|
|
acl Safe_ports port 443
|
|
acl Safe_ports port 70
|
|
acl Safe_ports port 210
|
|
acl Safe_ports port 1025-65535
|
|
acl Safe_ports port 280
|
|
acl Safe_ports port 488
|
|
acl Safe_ports port 591
|
|
acl Safe_ports port 777
|
|
acl CONNECT method CONNECT
|
|
http_access deny !Safe_ports
|
|
http_access deny CONNECT !SSL_ports
|
|
http_access allow localhost manager
|
|
http_access deny manager
|
|
acl whitelist dstdomain "/etc/squid/whitelist.txt"
|
|
http_access allow whitelist
|
|
http_access deny all
|
|
http_access deny all
|
|
acl keyword_block url_regex "/etc/squid/keywordblock.txt"
|
|
http_access deny keyword_block
|
|
http_access deny all
|
|
http_access allow localhost
|
|
http_access allow localnet
|
|
http_access deny all
|
|
|
|
http_port 3128 # Port to listen on
|
|
|
|
coredump_dir /var/spool/squid
|
|
refresh_pattern ^ftp: 1440 20% 10080
|
|
refresh_pattern ^gopher: 1440 0% 1440
|
|
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
|
|
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
|
|
refresh_pattern . 0 20% 4320
|
|
|
|
dns_nameservers 9.9.9.9 # DNS servers (change if you want)
|
|
|