Comment 6 for bug 2018472

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Reproducer:

## From the host
$ lxc launch ubuntu-daily:jammy squid-jj
$ lxc exec squid-jj bash

## From the container
# apt update && apt install -y squid
# apt install apache2-utils --no-install-recommends
# mkdir -p /etc/squid/private
# htpasswd -bpc /etc/squid/private/USERS.internet_plain luproxy nci8uFuin
# cat <<EOF >> /etc/squid/squid.conf
acl my_localnet src all
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/private/USERS.internet_plain
acl AuthorizedUsers proxy_auth REQUIRED
http_access allow my_localnet AuthorizedUsers
http_access deny all
acl users_unlim proxy_auth luproxy
# Delay pools
delay_pools 1
delay_class 1 1
delay_parameters 1 1024/1024
delay_access 1 allow users_unlim
delay_access 1 deny all
EOF
# systemctl restart squid

## From the host
$ curl -vvvv -x luproxy:nci8uFuin@CONTAINER_IP_ADDRESS:3128 SOME_URL

This should return an error and you should now be able to see the error in /var/log/apport.log in the container.