Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
linux:proxy [08-10-2017 12:02] edmc73 créée |
linux:proxy [08-10-2017 15:07] edmc73 |
||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
apt install squid | apt install squid | ||
+ | |||
+ | Par défaut le fichier de config est énorme, on peut voir le nécessaire avec la commande | ||
+ | sed -e '/ | ||
+ | |||
+ | < | ||
+ | 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 70 # gopher | ||
+ | acl Safe_ports port 210 # wais | ||
+ | acl Safe_ports port 1025-65535 # | ||
+ | acl Safe_ports port 280 # http-mgmt | ||
+ | acl Safe_ports port 488 # gss-http | ||
+ | acl Safe_ports port 591 # filemaker | ||
+ | acl Safe_ports port 777 # multiling http | ||
+ | acl CONNECT method CONNECT | ||
+ | http_access deny !Safe_ports | ||
+ | http_access deny CONNECT !SSL_ports | ||
+ | http_access allow localhost manager | ||
+ | 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 . 0 20% 4320 | ||
+ | </ | ||
Un exemple de config (source: http:// | Un exemple de config (source: http:// | ||
Ligne 46: | Ligne 76: | ||
http_access allow maison | http_access allow maison | ||
</ | </ | ||
+ | |||
+ | ===== Problème ===== | ||
+ | Si la connexion est lente la 1ère fois que l'on va sur un site, vérifiez la config DNS, forcez l'ipv4 ou spécifiez l'ip d'un serveur dns |