<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr"><span style="background-color:rgb(255,255,255);color:rgb(35,38,41);font-family:-apple-system,blinkmacsystemfont,"segoe ui adjusted","segoe ui","liberation sans",sans-serif;font-size:15px">I have compiled and installed Squid proxy (version 5.6) on Debian 11. When I enable certain response size control rules (</span><em style="color:rgb(35,38,41);font-family:inherit;font-size:15px;margin:0px;padding:0px;border:0px;font-variant:inherit;font-weight:inherit;line-height:inherit;vertical-align:baseline"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline">reply_body_max_size</strong></em><span style="background-color:rgb(255,255,255);color:rgb(35,38,41);font-family:-apple-system,blinkmacsystemfont,"segoe ui adjusted","segoe ui","liberation sans",sans-serif;font-size:15px">), Squid stops instantly when making a web request to web-serving FTPs (for example: </span><a href="http://ftp.sld.cu/" target="_blank" rel="noreferrer" style="font-family:inherit;font-size:15px;margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;vertical-align:baseline">http://ftp.sld.cu</a><span style="background-color:rgb(255,255,255);color:rgb(35,38,41);font-family:-apple-system,blinkmacsystemfont,"segoe ui adjusted","segoe ui","liberation sans",sans-serif;font-size:15px"> it´</span><span style="background-color:rgb(255,255,255);color:rgb(35,38,41);font-family:-apple-system,blinkmacsystemfont,"segoe ui adjusted","segoe ui","liberation sans",sans-serif;font-size:15px">s a FTP site served as HTTP), only happen with this kind of site.</span></div><div dir="auto"><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:-apple-system,blinkmacsystemfont,"segoe ui adjusted","segoe ui","liberation sans",sans-serif;font-size:15px;vertical-align:baseline;color:rgb(35,38,41);background-color:rgb(255,255,255)">I have the following acl:</p><pre style="margin-top:0px;border:0px;vertical-align:baseline;width:auto;max-height:600px"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;vertical-align:baseline;white-space:inherit;border-radius:0px">acl usuarios_nav_basica proxy_auth "/etc/squid/usuarios/nav-basica"
acl usuarios_internet proxy_auth "/etc/squid/usuarios/nav-internet"
acl usuarios_admins proxy_auth "/etc/squid/usuarios/admins"
acl dominio_cuba dstdomain .cu
acl dominio_infomed dstdomain .<a href="http://sld.cu" target="_blank" rel="noreferrer">sld.cu</a>
acl dominio_bandec dstdomain .<a href="http://bandec.cu" target="_blank" rel="noreferrer">bandec.cu</a>
#thousands of domains
acl dominios dstdomain "/etc/squid/infomed/dominios"
acl dominios_parciales dstdomain "/etc/squid/infomed/dominios_parciales"
#thousands of sites
acl sitios url_regex -i "/etc/squid/infomed/sitios"
acl horario_manhana time MTWHFA 00:00-11:59
acl extensiones_media urlpath_regex -i \.(mpg|mp3|avi|mp4|mov|m4v|mkv|flv)(\?.*)?$
acl extensiones_limitadas urlpath_regex -i \.(exe|cab|msi|iso)(\?.*)?$
cache_peer XXX.XXX.XXX.XXX parent 3128 0 no-query default
cache_peer_access XXX.XXX.XXX.XXX allow !dominio_infomed
always_direct allow dominio_infomed
never_direct allow !dominio_infomed
</code></pre><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:-apple-system,blinkmacsystemfont,"segoe ui adjusted","segoe ui","liberation sans",sans-serif;font-size:15px;vertical-align:baseline;color:rgb(35,38,41);background-color:rgb(255,255,255)">When I activate these rules, Squid shuts down:</p><pre style="margin-top:0px;border:0px;vertical-align:baseline;width:auto;max-height:600px"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;vertical-align:baseline;white-space:inherit;border-radius:0px">reply_body_max_size 5 MB extensiones_media usuarios_internet horario_manhana !dominio_cuba !dominios !dominios_parciales !sitios
reply_body_max_size 5 MB extensiones_limitadas usuarios_internet horario_manhana !dominio_cuba !dominios !dominios_parciales !sitios
## Usuarios de navegacion basica
reply_body_max_size 50 MB usuarios_nav_basica horario_manhana !dominio_infomed dominio_cuba
reply_body_max_size 50 MB usuarios_nav_basica horario_manhana dominios !dominio_infomed
reply_body_max_size 50 MB usuarios_nav_basica horario_manhana !dominio_infomed dominios_parciales
reply_body_max_size 50 MB usuarios_nav_basica horario_manhana !dominio_infomed sitios
reply_body_max_size 100 MB usuarios_nav_basica !horario_manhana !dominio_infomed dominio_cuba
reply_body_max_size 100 MB usuarios_nav_basica !horario_manhana !dominio_infomed dominios
reply_body_max_size 100 MB usuarios_nav_basica !horario_manhana !dominio_infomed dominios_parciales
reply_body_max_size 100 MB usuarios_nav_basica !horario_manhana !dominio_infomed sitios
## Usuarios con acceso a internet
reply_body_max_size 50 MB usuarios_internet horario_manhana !dominio_infomed dominio_cuba
reply_body_max_size 50 MB usuarios_internet horario_manhana !dominio_infomed dominios
reply_body_max_size 50 MB usuarios_internet horario_manhana !dominio_infomed dominios_parciales
reply_body_max_size 50 MB usuarios_internet horario_manhana !dominio_infomed sitios
reply_body_max_size 100 MB usuarios_internet horario_manhana !dominio_cuba
reply_body_max_size 100 MB usuarios_internet horario_manhana !dominios
reply_body_max_size 100 MB usuarios_internet horario_manhana !dominios_parciales
reply_body_max_size 100 MB usuarios_internet horario_manhana !sitios
reply_body_max_size 1024 MB usuarios_internet !horario_manhana !dominio_cuba
reply_body_max_size 1024 MB usuarios_internet !horario_manhana !dominios
reply_body_max_size 1024 MB usuarios_internet !horario_manhana !dominios_parciales
reply_body_max_size 1024 MB usuarios_internet !horario_manhana !sitios
reply_body_max_size 200 KB all
</code></pre><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:-apple-system,blinkmacsystemfont,"segoe ui adjusted","segoe ui","liberation sans",sans-serif;font-size:15px;vertical-align:baseline;color:rgb(35,38,41);background-color:rgb(255,255,255)">When I make <code style="margin:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;vertical-align:baseline;white-space:pre-wrap">systemctl status squid</code>, it show Exiting due to repeated, frequent failures. In /var/log/squid/cache.log I don´t found any about the error.</p><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:-apple-system,blinkmacsystemfont,"segoe ui adjusted","segoe ui","liberation sans",sans-serif;font-size:15px;vertical-align:baseline;color:rgb(35,38,41);background-color:rgb(255,255,255)"> In /var/log/kernel.log I founded: [squid][500]: segfault at 448 ip 00005653d5ec933a sp 0000fffdf9374730 error 4 in squid [5653d5c950000+4c0000]</p><p style="margin:0px;padding:0px;border:0px;line-height:inherit;font-family:-apple-system,blinkmacsystemfont,"segoe ui adjusted","segoe ui","liberation sans",sans-serif;font-size:15px;vertical-align:baseline;color:rgb(35,38,41);background-color:rgb(255,255,255)"><strong style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline">Note</strong>: If I leave the two first <code style="margin:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;vertical-align:baseline;white-space:pre-wrap">reply_body_max_size</code> rules declarations, it´s work ok!!!</p></div>
</div></div>