Benutzer-Werkzeuge

Webseiten-Werkzeuge


squid.conf

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
squid.conf [2024-07-19 18:50:01] – [https proxy für große dateien mit lan zugriff] davidsquid.conf [2024-07-19 21:52:24] (aktuell) – [https proxy für große dateien mit ssl bumping] david
Zeile 83: Zeile 83:
   * ''http_access deny all'' am ende verbietet alles was bisher noch nicht gematched wurde (verwandelt sozusagen alle ''http_access allow'' zeilen in whitelist einträge)   * ''http_access deny all'' am ende verbietet alles was bisher noch nicht gematched wurde (verwandelt sozusagen alle ''http_access allow'' zeilen in whitelist einträge)
   * ''https_port 3128 tls-cert=fullchain.pem tls-key=privkey.pem'' listened auf port 3128 als https proxy mit einem letsencrypt zertifikat (fullchain ist das vollständige zertifikat und privkey der private key)   * ''https_port 3128 tls-cert=fullchain.pem tls-key=privkey.pem'' listened auf port 3128 als https proxy mit einem letsencrypt zertifikat (fullchain ist das vollständige zertifikat und privkey der private key)
-  * ''cache_dir aufs /var/spool/squid 50000 16 256'' setzt das cache dir mit dem speichertyp aufs (ufs aber moderner und non blocking), 50gb größe, 16 sub dirs 1. grades, 256 sub dirs 2. grades+  * ''cache_dir aufs /var/spool/squid 64000 16 256'' setzt das cache dir mit dem speichertyp aufs (ufs aber moderner und non blocking), 64gb größe auf hdd/ssd, 16 sub dirs 1. grades, 256 sub dirs 2. grades
   * ''ssl_bump splice localhost'' https requests von localhost werden getunnelt   * ''ssl_bump splice localhost'' https requests von localhost werden getunnelt
   * ''ssl_bump bump all'' alle anderen https requests werden entschlüsselt und neuverschlüsselt (erlaubt caching, aber sehr unsicher, **nur in lokalen testumgebungen nutzen**)   * ''ssl_bump bump all'' alle anderen https requests werden entschlüsselt und neuverschlüsselt (erlaubt caching, aber sehr unsicher, **nur in lokalen testumgebungen nutzen**)
Zeile 92: Zeile 92:
 shutdown_lifetime 10 seconds shutdown_lifetime 10 seconds
  
-acl private_network src fe80::/10                 # rfc 4291 link local (ipv6) +acl private_network src fe80::/10 # rfc 4291 link local (ipv6) 
-acl private_network src 169.254.0.0/16            # rfc 3927 link local (ipv4) +acl private_network src 169.254.0.0/16 # rfc 3927 link local (ipv4) 
-acl private_network src fc00::/                 # rfc 4193 unique local (ipv6) +acl private_network src fc00::/7 # rfc 4193 unique local (ipv6) 
-acl private_network src 10.0.0.0/               # rfc 1918 private (ipv4) +acl private_network src 10.0.0.0/8 # rfc 1918 private (ipv4) 
-acl private_network src 172.16.0.0/12             # rfc 1918 private (ipv4) +acl private_network src 172.16.0.0/12 # rfc 1918 private (ipv4) 
-acl private_network src 192.168.0.0/16            # rfc 1918 private (ipv4)+acl private_network src 192.168.0.0/16 # rfc 1918 private (ipv4)
  
-acl safe_ports port 80             # http +acl safe_ports port 80 # http 
-acl safe_ports port 443            # https+acl safe_ports port 443 # https
  
 acl secure_ports port 443 acl secure_ports port 443
Zeile 114: Zeile 114:
 http_access deny all http_access deny all
  
-ssl_bump splice localhost+#ssl_bump splice localhost
 ssl_bump bump all ssl_bump bump all
  
Zeile 121: Zeile 121:
  
 coredump_dir /var/spool/squid coredump_dir /var/spool/squid
-cache_dir aufs /var/spool/squid 50000 16 256+cache_dir aufs /var/spool/squid 64000 16 256
 </code> </code>
  
Zeile 127: Zeile 127:
   * in firefox konfigurieren und interaktiv testen   * in firefox konfigurieren und interaktiv testen
   * chromium mit cli args starten und interaktiv testen: ''%%chromium --incognito --proxy-server="https://proxy.example.com:3128%%''   * chromium mit cli args starten und interaktiv testen: ''%%chromium --incognito --proxy-server="https://proxy.example.com:3128%%''
-  * curl auf cli: ''%%curl https://cloudflare.com/cdn-cgi/trace -x https://proxy.example.com:3128%%'' +  * curl auf cli (http): ''%%time curl -IL http://httpforever.com -x https://proxy.example.com:3128%%'' 
-  * <del>yt-dlp auf cli (youtube video downloaden und so größeren cache testen): ''%%yt-dlp --restrict-filenames --output "%(title)s.%(ext)s" https://youtu.be/dQw4w9WgXcQ --proxy https://proxy.example.com:3128 --force-overwrites%%''</del>+  * curl auf cli (https): ''%%time curl -L https://cloudflare.com/cdn-cgi/trace -x https://proxy.example.com:3128%%'' 
 +  * yt-dlp auf cli (youtube video downloaden und so größeren cache testen): ''%%yt-dlp --prefer-free-formats --restrict-filenames --output "%(title)s.%(ext)s" https://youtu.be/dQw4w9WgXcQ --proxy https://proxy.example.com:3128 --force-overwrites%%''
   * curl auf cli (debian iso downloaden und so größeren cache testen): ''%%time curl -LO https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.6.0-amd64-netinst.iso -x https://proxy.example.com:3128%%''   * curl auf cli (debian iso downloaden und so größeren cache testen): ''%%time curl -LO https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.6.0-amd64-netinst.iso -x https://proxy.example.com:3128%%''
  
  
/home/http/wiki/data/attic/squid.conf.1721415001.txt · Zuletzt geändert: von david