Squid Config for Transparent Proxy


SUBMITTED BY: HaARiZz

DATE: Oct. 11, 2016, 7:58 a.m.

FORMAT: Text only

SIZE: 1.4 kB

HITS: 759

  1. acl localnet src 192.168.201.0/24
  2. acl SSL_ports port 443
  3. acl Safe_ports port 80 # http
  4. acl Safe_ports port 21 # ftp
  5. acl Safe_ports port 443 # https
  6. acl Safe_ports port 70 # gopher
  7. acl Safe_ports port 210 # wais
  8. acl Safe_ports port 1025-65535 # unregistered ports
  9. acl Safe_ports port 280 # http-mgmt
  10. acl Safe_ports port 488 # gss-http
  11. acl Safe_ports port 591 # filemaker
  12. acl Safe_ports port 777 # multiling http
  13. acl CONNECT method CONNECT
  14. http_access deny !Safe_ports
  15. http_access deny CONNECT !SSL_ports
  16. http_access allow all
  17. http_port 3130
  18. http_port 3128 intercept
  19. https_port 3129 intercept ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/etc/squid/ssl_cert/myca.pem key=/etc/squid/ssl_cert/myca.pem
  20. #always_direct allow all
  21. ssl_bump server-first all
  22. #sslproxy_cert_error deny all
  23. #sslproxy_flags DONT_VERIFY_PEER
  24. sslcrtd_program /usr/lib/squid/ssl_crtd -s /var/lib/ssl_db -M 4MB
  25. sslcrtd_children 8 startup=1 idle=1
  26. coredump_dir /var/spool/squid
  27. # Add any of your own refresh_pattern entries above these.
  28. refresh_pattern ^ftp: 1440 20% 10080
  29. refresh_pattern ^gopher: 1440 0% 1440
  30. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  31. refresh_pattern . 0 20% 4320
  32. shutdown_lifetime 1 second

comments powered by Disqus