Hey zusammen,
ich versuche einen transparenten HTTP und HTTP-Server mit Squid einzurichten. HTTP funktioniert, aber HTTPS habe ich so meine Probleme. Ich möchte kein TLS-Break machen nur den Proxy als URL-Filter nutzen z.B. den Clients nur erlauben https://example.com aufzurufen.
Bei der aktuellen Konfiguration bekommen die Clients den fehler "Fehlercode: PR_END_OF_FILE_ERROR" beim versucht https://example.com aufzurufen, wobei http funktioniert.
Code
# ------------------------
# Minimaler Squid SSL-Bump Proxy
# ------------------------
# Ports
http_port 3127
http_port 3128 intercept
http_port 3129 intercept ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=10MB cert=/etc/squid/ssl_cert/squid.pem
# Zugriffslisten (ACLs)
acl localnet src 10.10.0.0/24
acl pfsense src 192.168.1.0/24
# Ports
acl Safe_ports port 80
acl SSL_ports port 443
acl CONNECT method CONNECT
# SSL-Bump Schritte
acl step1 at_step SslBump1
# Intercept / Transparent Traffic
acl intercepted dst all
# Whitelist HTTP Ziele
acl whitelist_sites dstdomain .example.com
# SSL-Bump
ssl_bump peek step1
ssl_bump splice all
# Zugriff Regeln
http_access allow localnet Safe_ports
http_access allow localnet SSL_ports
# Intercept Traffic erlauben
http_access allow localnet intercepted
http_access allow pfsense intercepted
# HTTP-Ziele Whitelist erlauben
http_access allow whitelist_sites
http_access allow CONNECT step1
# Logging
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
# Performance / Sicherheit
sslcrtd_program /usr/lib/squid/security_file_certgen -s /var/spool/squid/ssl_db -M 4MB
sslcrtd_children 8 startup=1 idle=1
# DNS
dns_nameservers 8.8.8.8 8.8.4.4
# Fehlerseiten (optional)
error_directory /usr/share/squid/errors/de
http_access deny all
Alles anzeigen