I have still been trying to get peek and splice to work. Specifically I want to allow the admins of our firewall distro to enter websites that they do not want to bump on the squid UI page. I have been fiddling with info that Amos and Nathan have provided me but with no success so far. Here is a snippet of squid.conf with most of the pertinent SSL configuration.
http_access allow localhostgreenhttp_access allow CONNECT localhostgreen# http_port and https_port#----------------------------------------------------------------------------http_port 192.168.100.1:800 intercepthttps_port 192.168.100.1:808 intercept ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/var/smoothwall/mods/proxy/ssl_cert/squidCA.pemhttp_port 127.0.0.1:800 interceptsslproxy_cert_error allow allsslproxy_flags DONT_VERIFY_PEERsslproxy_session_cache_size 4 MBssl_bump none localhostgreenexternal_acl_type sni ttl=30 concurrency=60 children-max=3 children-startup=1 %ssl::>sni /var/smoothwall/mods/proxy/libexec/bumphelperacl sni_exclusions external sniacl tcp_level at_step SslBump1acl client_hello_peeked at_step SslBump2ssl_bump none localhostgreenssl_bump peek tcp_level allssl_bump splice client_hello_peeked sni_exclusionsssl_bump bump allsslcrtd_program /var/smoothwall/mods/proxy/libexec/ssl_crtd -s /var/smoothwall/mods/proxy/lib/ssl_db -M 4MBsslcrtd_children 5
These were provided by Nathan to try. He also provided an example helper script in python to try, but our distro doesn't grok python so I tried to get it translated to perl and this what I came up with.
#!/usr/bin/perl# run loop until an empty read, which indicates the process should shut down.while (<STDIN>){my ($concurrency_id, $sni) = split;if ($sni eq 'wellsfargo.com'){print "$concurreny_id OK\n";}else{print "$concurreny_id ERR\n";}}
When I start Squid with this configuration, the helper script "bumphelper" gets loaded as a process along with squid and ssl_crtd. When I try to browse any SSL websites there is no connection and it times out. HTTP browsing is fine. When I remove those peek and splice related lines and add "ssl_bump server-first all" back to squid conf then bumping of SSL sites is successful.
I suspect my "bumphelper" script is not doing what I intend it to do.
Suggestions very welcome.
Stan
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users