I have been trying to get Squid 3.5.2 to work with the Smoothwall Express 3.1 Linux firewall distribution. Specifically, I have modified the Squid version included with Smoothwall Express 3.1 to enable HTTPS caching. I have had this working successfully up to Squid version 3.4.10. Now with trying to upgrade to Squid 3.5.2 I am having problems that I didn't encounter with prior versions of Squid.
The first issue I had, which is now resolved, was improper permissions of the shm folder (in SWE found in /dev/shm). Changing the folder permissions to Squid user and group allowed Squid 3.5.2 to start. However, now it will only start with an empty cache directory. Once it starts with an empty cache directory, it seems to function correctly as far as caching SSL encrypted web pages. However, if Squid needs to be restarted for any reason, it will not restart until the cache directory (/var/spool/squid/cache) is emptied.
The error I am getting when trying to start Squid 3.5.2 without an empty cache is
2015/03/14 00:29:47 kid1| Current Directory is /
2015/03/14 00:29:47 kid1| Starting Squid Cache version 3.5.2 for i586-pc-linux-gnu...2015/03/14 00:29:47 kid1| Service Name: squid2015/03/14 00:29:47 kid1| Process ID 72612015/03/14 00:29:47 kid1| Process Roles: worker2015/03/14 00:29:47 kid1| With 1024 file descriptors available2015/03/14 00:29:47 kid1| Initializing IP Cache...2015/03/14 00:29:47 kid1| DNS Socket created at 0.0.0.0, FD 82015/03/14 00:29:47 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf2015/03/14 00:29:47 kid1| helperOpenServers: Starting 5/5 'ssl_crtd' processesFATAL: Ipc::Mem::Segment::open failed to shm_open(/squid-ssl_session_cache.shm): (2) No such file or directorySquid Cache (Version 3.5.2): Terminated abnormally.CPU Usage: 0.027 seconds = 0.020 user + 0.007 sysMaximum Resident Size: 26752 KBPage faults with physical i/o: 02015/03/14 00:29:47.830 kid1| Acl.cc(380) ~ACL: freeing ACL
This is my squid.conf file with SSL caching using ssl-bump enabled.
visible_hostname smoothwall# Uncomment the following to send debug info to /var/log/squid/cache.logdebug_options ALL,1 33,2 28,9# ACCESS CONTROLS# ----------------------------------------------------------------acl localhostgreen src 192.168.100.1acl localnetgreen src 192.168.100.0/24acl SSL_ports port 445 443 441 563acl Safe_ports port 80 # httpacl Safe_ports port 81 # smoothwall httpacl Safe_ports port 21 # ftpacl Safe_ports port 445 443 441 563 # https, snewsacl Safe_ports port 70 # gopheracl Safe_ports port 210 # waisacl Safe_ports port 1025-65535 # unregistered portsacl Safe_ports port 280 # http-mgmtacl Safe_ports port 488 # gss-httpacl Safe_ports port 591 # filemakeracl Safe_ports port 777 # multiling httpacl CONNECT method CONNECT# TAG: http_access# ----------------------------------------------------------------http_access deny !Safe_portshttp_access deny CONNECT !SSL_portshttp_access allow localnetgreenhttp_access allow CONNECT localnetgreenhttp_access allow localhostgreenhttp_access allow CONNECT localhostgreen# http_port and https_port#----------------------------------------------------------------------------# A random port for forward-proxy port needed for SSLhttp_port 8081http_port 192.168.100.1:800 intercept ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/var/smoothwall/mods/proxy/ssl_cert/squidCA.pemhttps_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.pemsslproxy_cert_error allow allsslproxy_flags DONT_VERIFY_PEERssl_bump server-first allssl_bump none localhostgreensslcrtd_program /var/smoothwall/mods/proxy/libexec/ssl_crtd -s /var/smoothwall/mods/proxy/lib/ssl_db -M 4MBsslcrtd_children 5sslproxy_session_cache_size 4 MBhttp_access deny allcache_replacement_policy heap GDSFmemory_replacement_policy heap GDSF# CACHE OPTIONS# ----------------------------------------------------------------------------cache_effective_user squidcache_effective_group squidcache_swap_high 100cache_swap_low 80cache_mem 8 MBmaximum_object_size_in_memory 512 KBcache_access_log /var/log/squid/access.logcache_log /var/log/squid/cache.logcache_store_log noneerror_directory /usr/share/errors/en-uslog_mime_hdrs offcache_dir diskd /var/spool/squid/cache 1024 16 256 Q1=64 Q2=72request_header_access Content-Type allow allrequest_header_access Date allow allrequest_header_access Host allow allrequest_header_access If-Modified-Since allow allrequest_header_access Pragma allow allrequest_header_access Accept allow allrequest_header_access Accept-Charset allow allrequest_header_access Accept-Encoding allow allrequest_header_access Accept-Language allow allrequest_header_access Connection allow allrequest_header_access All allow allmaximum_object_size 33 MBminimum_object_size 0 KBrequest_body_max_size 0 KB# OTHER OPTIONS# ----------------------------------------------------------------------------forwarded_for offpid_filename /var/run/squid.pidshutdown_lifetime 3 secondsicp_port 3130half_closed_clients offumask 022logfile_rotate 0strip_query_terms off
Any help would be greatly appresciated.
Stan
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users