Answer the question
In order to leave comments, you need to log in
How to cache https from cache_peer squid?
Hello! I can't figure out how squid can cache data that comes with cache_peer via https.
Squid is configured with ssl support, if you make requests immediately from the server on which it is installed (comment out never_direct allow all in the config ), then everything works fine, traffic (both http and https) is cached, but as soon as I start traffic through cache_peer, I get this error from squid:
At the same time, http works and is cached, only https does not work
And in the logs:
acl intermediate_fetching transaction_initiator certificate-fetching
http_access allow intermediate_fetching
max_filedesc 65535
request_header_access X-Forwarded-For deny all
request_header_access X-Cache deny all
request_header_access Cache-Control deny all
via off
http_port 8024 ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=20MB cert=/etc/squid/bump.crt key=/etc/squid/bump.key
cache_peer my_cache_peer_ip parent 8888 0 no-query no-digest round-robin
never_direct allow all
# Настройки кэша в ОЗУ
cache_mem 16024 MB
maximum_object_size_in_memory 512 KB
memory_replacement_policy lru
# Настройки дискового кэша
cache_replacement_policy heap LFUDA
cache_dir ufs /var/spool/squid 20000 48 256
maximum_object_size 20024 KB
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 60
sslcrtd_program /usr/lib/squid/security_file_certgen -s /var/lib/squid/ssl_db -M 20MB
sslproxy_cert_error allow all
ssl_bump bump all
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question