A
A
AntohaRomaha2015-10-16 10:48:34
FreeBSD
AntohaRomaha, 2015-10-16 10:48:34

Squid transparent https how to setup acl browser?

Greetings.
On board FreeBSD 10.2, Squid 3.5.10 with transparent https proxying without certificate spoofing. Did according to Nagibator's article: habrahabr.ru/post/267851 just installed the latest squid with ssl and ssl_crtd. I used the config from the article and created the same certificate.
When applying Internet access restrictions to different programs, https-certificates stop working. Chrome: NET::ERR_CERT_AUTHORITY_INVALID; FireFox: sec_error_unknown_issuer

Squid.conf

acl progs browser Chrome
http_access deny !progs


It seems to be understandable, http_access only blocks Http here ...
In general - where to dig, tell me plz!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AntohaRomaha, 2015-10-19
@AntohaRomaha

Nikita Parfenovich : Hello. Works 3.5.10 .. but the Internet on https has become just wild. It takes a very long time to establish a connection, as soon as I transferred all 16 users to the proxy. While testing on one machine, everything worked like normal .. But there were moments (even on one test wheelbarrow) that the connection was not established for a very long time. When the whole office sat on a proxy, hell began :) I sin on OpenSSL, because you suggested using LibreSSL. I do not think that the problem is with the version of squid.
Here is the full squid config:

visible_hostname bsd10

#MY ADDITIONAL SETTINGS
logformat useragent [%tg] [%>a %>p] [%{User-Agent}>h] [%ru %rm HTTP/%rv]
#logformat squid %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
access_log /var/log/squid/uagent.log useragent
access_log /var/log/squid/access.log
collapsed_forwarding on

cachemgr_passwd xxxx all

ipcache_size 10240
ipcache_high 95
ipcache_low 90

fqdncache_size 10240

acl localnet src 192.168.1.0/24># RFC1918 possible internal network
acl localnet src 10.0.0.0/8

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
acl progs browser Chrome

dns_nameservers 192.168.1.1
#http_access deny !Safe_ports

#http_access deny CONNECT !SSL_ports

acl webserver src 192.168.1.1
http_access allow manager all
http_access allow localhost manager
http_access deny manager
http_access deny to_localhost

#http_access deny !progs
http_access allow localnet
http_access allow localhost
http_access deny all

http_port 192.168.1.1:3128 intercept options=NO_SSLv3:NO_SSLv2
http_port 192.168.1.1:3130 options=NO_SSLv3:NO_SSLv2
https_port 192.168.1.1:3129 intercept ssl-bump options=ALL:NO_SSLv3:NO_SSLv2 connection-auth=off cert=/usr/local/etc/squid/squidCA.pem
always_direct allow all
sslproxy_cert_error allow all
sslproxy_flags DONT_VERIFY_PEER

acl blocked ssl::server_name  "/usr/local/etc/squid/blocked_https.txt"
acl step1 at_step SslBump1
ssl_bump peek step1

ssl_bump terminate blocked
ssl_bump splice all

#sslcrtd_program /usr/local/libexec/squid/ssl_crtd -s /var/squid/lib/ssl_db -M 4MB
#sslcrtd_program /usr/local/libexec/squid/ssl_crtd -s -M 4MB

cache_dir ufs /var/squid/cache 10000 16 256
coredump_dir /var/squid/cache

refresh_pattern ^ftp: 1440 20% 10800
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 10080

dns_v4_first on
shutdown_lifetime 1 seconds
cache_mem 2048 MB
maximum_object_size_in_memory 320 MB
quick_abort_min 320 KB
cache_swap_low 90
cache_swap_high 95

logfile_rotate 100

 #Local error time
error_directory /usr/local/etc/squid/errors.local/ru

/var/squid/lib/ssl_db - for some reason, the certs folder is empty here, probably there are not enough rights to write there? I created a directory with a simple touch ...
UPD. Installed LibreSSL, openssl version gives LibreSSL, does this mean that Squid now uses LibreSSL? The brakes seem to have disappeared, but I haven’t transferred all users to the proxy yet .. And another question: what is LibeCAP and do I need it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question