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.
Reproducer:
## From the host
$ lxc launch ubuntu-daily:jammy squid-jj
$ lxc exec squid-jj bash
## From the container recommends private/ USERS.internet_ plain luproxy nci8uFuin squid.conf squid/basic_ ncsa_auth /etc/squid/ private/ USERS.internet_ plain
# apt update && apt install -y squid
# apt install apache2-utils --no-install-
# mkdir -p /etc/squid/private
# htpasswd -bpc /etc/squid/
# cat <<EOF >> /etc/squid/
acl my_localnet src all
auth_param basic program /usr/lib/
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 nci8uFuin@ CONTAINER_ IP_ADDRESS: 3128 SOME_URL
$ curl -vvvv -x luproxy:
This should return an error and you should now be able to see the error in /var/log/apport.log in the container.