LINUX.ORG.RU

Я так и не разобрался и отключил перехват https :( Он вроде бы и работал, но где-то с 15% серверов, на остальных ошибка установки соединения. Возможно провайдер что-то портит, глубоко не копал.

Khnazile ★★★★★
()
Ответ на: комментарий от victorb

Да. Сервак сам себе DNS через кеширующий bind9, а у клиентов этот сервак как DNS.

Spider55
() автор топика
Ответ на: комментарий от Spider55

так показывай конфиг сквида.. и версию.
Кстати у меня transparent нормально только на centos работает, т.к. там он собран с ssl, а не gnutls как в deb/ubuntu.

Bers666 ★★★★★
()
Ответ на: комментарий от Bers666

Конфиг сквида огромен. Что именно?

# declare acls
acl step1 at_step SslBump1
acl step2 at_step SslBump2
acl step3 at_step SslBump3

# exclude by detected categories or disabled ssl filter in policy,.
# works in explicit proxy deployment only by adding a special "X-SSL-Bump: skip" header to CONNECT request
acl ssl_skip_bump req_header X-SSL-Bump -i skip

# force sslbump to enable postponed blocking of CONNECT tunnels, works in explicit proxy deployment only.
# by adding a special "X-SSL-Bump: force" header to CONNECT request
acl ssl_force_bump req_header X-SSL-Bump -i force

# connections from localhost/127.0.0.1 to the proxy is never bumped
ssl_bump splice localhost

#
# ok NOW come the SSL peek-and-splice rules, ORDER IS IMPORTANT!!!
#

# skip SSL bump in both all and targeted mode
ssl_bump splice ssl_skip_bump

# peek at SNI the client sent to us
ssl_bump peek step1 all

# force bump in both all and targeted mode
ssl_bump bump ssl_force_bump

# schedule list start

# schedule list end

# advanced exclude acls
include "/opt/websafety/etc/squid/ssl/exclude/advanced.conf"

# now see what SSL filtering mode we are in


# sslbump mode - all, so take a look at server certificate
ssl_bump stare step2 all

# and decrypt all connections
ssl_bump bump al


И версия
squid -v
Squid Cache: Version 4.9
Service Name: squid
Debian linux

This binary uses OpenSSL 1.1.1d  10 Sep 2019. For legal restrictions on distribution see https://www.openssl.org/source/license.html

configure options:  '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=${prefix}/lib/squid' '--srcdir=.' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' 'BUILDCXXFLAGS=-g -O2 -fdebug-prefix-map=/home/spider/src/build/squid/squid-4.9=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -Wl,--as-needed' 'BUILDCXX=g++' '--with-build-environment=default' '--enable-build-info=Debian linux' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--libexecdir=/usr/lib/squid' '--mandir=/usr/share/man' '--enable-inline' '--disable-arch-native' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-icap-client' '--enable-ssl' '--enable-ssl-crtd' '--with-openssl' '--enable-follow-x-forwarded-for' '--enable-auth-basic=DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB' '--enable-auth-digest=file,LDAP' '--enable-auth-negotiate=kerberos,wrapper' '--enable-auth-ntlm=fake,SMB_LM' '--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,time_quota,unix_group,wbinfo_group' '--enable-security-cert-validators=fake' '--enable-storeid-rewrite-helpers=file' '--enable-url-rewrite-helpers=fake' '--enable-eui' '--enable-esi' '--enable-icmp' '--enable-zph-qos' '--enable-ecap' '--disable-translation' '--with-swapdir=/var/spool/squid' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid' '--with-filedescriptors=65536' '--with-large-files' '--with-default-user=proxy' '--with-gnutls' '--enable-linux-netfilter' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/home/spider/src/build/squid/squid-4.9=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -Wl,--as-needed' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fdebug-prefix-map=/home/spider/src/build/squid/squid-4.9=. -fstack-protector-strong -Wformat -Werror=format-security'


собирал пакет из исходников родных для Debian т.к. родной сквид идёт без transparent ssl

Spider55
() автор топика
Последнее исправление: Spider55 (всего исправлений: 1)
Ответ на: комментарий от Spider55

у меня так и все работает


https_port 801 intercept cert=/etc/squid/server.crt key=/etc/squid/server.key  ssl-bump

acl step1 at_step SslBump1
acl step2 at_step SslBump2
acl step3 at_step SslBump3

ssl_bump peek step1
ssl_bump splice all

ssl_bump stare step2
ssl_bump bump step3

вот отсюда качано : http://www1.ngtech.co.il/repo/centos/6/x86_64/

# squid -v
Squid Cache: Version 3.5.28
Service Name: squid

This binary uses OpenSSL 1.0.1e-fips 11 Feb 2013. For legal restrictions on distribution see https://www.openssl.org/source/license.html

configure options:  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--verbose' '--exec_prefix=/usr' '--libexecdir=/usr/lib64/squid' '--localstatedir=/var' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid' '--disable-dependency-tracking' '--enable-follow-x-forwarded-for' '--enable-auth' '--enable-auth-basic=DB,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB,getpwnam' '--enable-auth-ntlm=smb_lm,fake' '--enable-auth-digest=file,LDAP' '--enable-auth-negotiate=kerberos,wrapper' '--enable-external-acl-helpers=wbinfo_group,kerberos_ldap_group' '--enable-cache-digests' '--enable-cachemgr-hostname=localhost' '--enable-delay-pools' '--enable-epoll' '--enable-icap-client' '--enable-ident-lookups' '--enable-linux-netfilter' '--enable-removal-policies=heap,lru' '--enable-snmp' '--enable-storeio=aufs,diskd,ufs,rock' '--enable-wccpv2' '--enable-esi' '--enable-ssl-crtd' '--enable-icmp' '--with-aio' '--with-default-user=squid' '--with-filedescriptors=16384' '--with-dl' '--with-openssl' '--with-pthreads' '--with-included-ltdl' '--disable-arch-native' '--without-nettle' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' --enable-ltdl-convenience

Bers666 ★★★★★
()
Последнее исправление: Bers666 (всего исправлений: 1)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.