tech:notes_squid
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:notes_squid [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:notes_squid [2025/04/24 15:17] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes Squid | ||
| + | |||
| + | / | ||
| + | |||
| + | ''/ | ||
| + | ~~~ | ||
| + | cache_peer localhost parent 8118 0 default no-query no-digest no-netdb-exchange | ||
| + | |||
| + | never_direct allow all | ||
| + | |||
| + | redirect_program / | ||
| + | redirect_children 20 | ||
| + | |||
| + | header_access From deny all | ||
| + | header_access Server deny all | ||
| + | # | ||
| + | header_access Link deny all | ||
| + | header_access Cache-Control deny all | ||
| + | header_access Proxy-Connection deny all | ||
| + | header_access X-Cache deny all | ||
| + | header_access X-Cache-Lookup deny all | ||
| + | header_access Via deny all | ||
| + | header_access Forwarded-For deny all | ||
| + | header_access X-Forwarded-For deny all | ||
| + | header_access Pragma deny all | ||
| + | header_access Keep-Alive deny all | ||
| + | header_access Referer deny all | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ''/ | ||
| + | ~~~ | ||
| + | safe-imgnotadd | ||
| + | |||
| + | { safe-imgnotadd } | ||
| + | michelcollon.info | ||
| + | www..michelcollon.info | ||
| + | |||
| + | { -block-as-image } | ||
| + | rt.com/ | ||
| + | .almanar.com.lb/ | ||
| + | |||
| + | { +hide-user-agent{Mozilla/ | ||
| + | #.yahoo.com | ||
| + | |||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ---------------- | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | |||
| + | ''/ | ||
| + | ~~~ | ||
| + | acl SSL_ports port 443 | ||
| + | acl Safe_ports port 80 # http | ||
| + | acl Safe_ports port 21 # ftp | ||
| + | acl Safe_ports port 443 # https | ||
| + | #acl Safe_ports port 1025-65535 # unregistered ports | ||
| + | acl CONNECT method CONNECT | ||
| + | |||
| + | #acl allowedips src 10.8.0.0/24 | ||
| + | |||
| + | http_access deny !Safe_ports | ||
| + | http_access deny CONNECT !SSL_ports | ||
| + | http_access allow localhost manager | ||
| + | |||
| + | # | ||
| + | http_access allow all | ||
| + | |||
| + | http_access deny manager | ||
| + | http_access allow localhost | ||
| + | http_access deny all | ||
| + | http_port 3128 | ||
| + | coredump_dir / | ||
| + | refresh_pattern ^ftp: | ||
| + | refresh_pattern ^gopher: | ||
| + | refresh_pattern -i (/ | ||
| + | refresh_pattern . | ||
| + | |||
| + | cache_dir ufs / | ||
| + | cache_mem 256 MB | ||
| + | maximum_object_size 15 MB | ||
| + | |||
| + | positive_dns_ttl 8 hours | ||
| + | negative_ttl 1 minutes | ||
| + | |||
| + | # | ||
| + | # | ||
| + | via off | ||
| + | forwarded_for off | ||
| + | follow_x_forwarded_for deny all | ||
| + | request_header_access X-Forwarded-For deny all | ||
| + | |||
| + | dns_nameservers 8.8.8.8 80.67.169.12 80.67.169.40 | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Squid2 CentOS5 | ||
| + | |||
| + | ''/ | ||
| + | ~~~ | ||
| + | http_port 3128 | ||
| + | |||
| + | acl all src 0.0.0.0/ | ||
| + | acl SSL_ports port 443 | ||
| + | acl Safe_ports port 80 # http | ||
| + | acl Safe_ports port 21 # ftp | ||
| + | acl Safe_ports port 443 # https | ||
| + | acl CONNECT method CONNECT | ||
| + | |||
| + | http_access deny !Safe_ports | ||
| + | http_access deny CONNECT !SSL_ports | ||
| + | http_access allow all | ||
| + | http_access deny all | ||
| + | |||
| + | coredump_dir / | ||
| + | |||
| + | refresh_pattern ^ftp: | ||
| + | refresh_pattern ^gopher: | ||
| + | refresh_pattern -i (/ | ||
| + | refresh_pattern . | ||
| + | |||
| + | cache_dir ufs / | ||
| + | cache_mem 256 MB | ||
| + | |||
| + | maximum_object_size 15 MB | ||
| + | positive_dns_ttl 8 hours | ||
| + | negative_ttl 1 minutes | ||
| + | |||
| + | via off | ||
| + | forwarded_for off | ||
| + | follow_x_forwarded_for deny all | ||
| + | ~~~ | ||
| + | |||
| + | ## Rapport | ||
| + | |||
| + | Voir lightsquid http:// | ||
| + | |||
