Advertisement
Guest User

squid configuration

a guest
Sep 24th, 2018
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. dns_v4_first on
  2. dns_nameservers 213.133.100.100 213.133.99.99
  3.  
  4. acl whitelist dstdomain parameters("/etc/squid/whitelist.txt")
  5. acl SSL_ports port 443
  6. acl Safe_ports port 80 # http
  7. acl Safe_ports port 21 # ftp
  8. acl Safe_ports port 443 # https
  9. acl Safe_ports port 70 # gopher
  10. acl Safe_ports port 210 # wais
  11. acl Safe_ports port 1025-65535 # unregistered ports
  12. acl Safe_ports port 280 # http-mgmt
  13. acl Safe_ports port 488 # gss-http
  14. acl Safe_ports port 591 # filemaker
  15. acl Safe_ports port 777 # multiling http
  16. acl Safe_ports port 2087 # whm
  17. acl Safe_ports port 2083 # cpanel
  18. acl CONNECT method CONNECT
  19. http_access deny !Safe_ports
  20. http_access deny CONNECT !SSL_ports
  21. http_access deny to_localhost
  22. http_port 8923
  23. coredump_dir /var/spool/squid
  24. refresh_pattern ^ftp: 1440 20% 10080
  25. refresh_pattern ^gopher: 1440 0% 1440
  26. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  27. refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
  28. refresh_pattern . 0 20% 4320
  29.  
  30. auth_param digest program /usr/lib64/squid/digest_file_auth -c /etc/squid/users
  31. auth_param digest realm MyRealm
  32. acl users proxy_auth REQUIRED
  33. http_access allow users
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement