Squid в режиме прозрачного прокси без подмены сертификата по https нормально открывает gosuslugi.ru и кучи других сайтов, но одноклассники, вконтакте, ютуб и еще куча других дают отлуп с ошибкой в FF: ssl_error_rx_record_too_long. C http проблем не имею. На кальмаре 3.5.8 приготовленом по рецепту на хабре проблем таких нет, пробую использовать современный Debian11 и там версия 4.13-10 в репах, но я пересобрал ее с опциями под https. Для имеющих возможность мне помочь выложу упрощенный конфиг с миниммумом фильтрации.
workers 2
dns_nameservers 127.0.0.1
acl localnet src 10.15.0.0/24
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 # unregistered ports
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 localnet
http_access allow localhost
http_access deny all
http_port 3128 intercept
http_port 3130
https_port 3129 intercept ssl-bump connection-auth=off cert=/etc/squid/squidca_dron.pem
cache deny all
always_direct allow all
sslproxy_cert_error allow all
#укажем правило со списком блокируемых ресурсов (в файле домены вида .domain.com)
acl blocked ssl::server_name "/etc/squid/blocked_https.txt"
acl step1 at_step SslBump1
ssl_bump peek step1
#терминируем соединение, если клиент заходит на запрещенный ресурс
ssl_bump terminate blocked
ssl_bump splice all
#openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -keyout squidca_dron.pem -out squidca_dron.pem
sslcrtd_program /usr/lib/squid/security_file_certgen -s /var/lib/squid/ssl_db -M 20MB
coredump_dir /var/spool/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
cache_dir aufs /var/spool/squid 20000 49 256
maximum_object_size 61440 KB
minimum_object_size 3 KB
cache_swap_low 90
cache_swap_high 95
maximum_object_size_in_memory 512 KB
memory_replacement_policy lru
logfile_rotate 4
dns_v4_first on
DNS одинаков для клиентского компа и squid. Кусочек лога выкладываю. Изрядно поэкспериментировав с опциями TLS ничего не достиг, в качестве крайней меры ищу помощи сдесь :(
1635855131.222 18 10.15.100.3 TCP_TUNNEL/200 0 CONNECT www.youtube.com:443 - ORIGINAL_DST/64.233.165.198 -
1635855131.223 27 10.15.100.3 NONE/200 0 CONNECT 64.233.165.198:443 - HIER_NONE/- -
1635855131.231 19 10.15.100.3 TCP_TUNNEL/200 0 CONNECT www.youtube.com:443 - ORIGINAL_DST/64.233.165.198 -
1635855131.237 14 10.15.100.3 TCP_TUNNEL/200 0 CONNECT www.youtube.com:443 - ORIGINAL_DST/64.233.165.198 -
1635855131.298 8 10.15.100.3 NONE/200 0 CONNECT 87.240.137.158:443 - HIER_NONE/- -
1635855131.307 9 10.15.100.3 TCP_TUNNEL/200 0 CONNECT vk.com:443 - ORIGINAL_DST/87.240.137.158 -
1635855131.310 8 10.15.100.3 NONE/200 0 CONNECT 185.26.98.122:443 - HIER_NONE/- -