When using the docker image at https://hub.docker.com/r/minimum2scp/squid
Confirmed on Ubuntu 20.04.
docker run --rm --name proxy-squid -d -p 3128:3128 minimum2scp/squid
sudo apt install -y firewalld
sudo firewall-cmd --zone=public --add-port=3128/tcp --permanent
sudo firewall-cmd --reload
curl --proxy http://localhost:3128 https://www.yahoo.co.jp
proxy.address
is the proxy address
curl --proxy http://proxy.address:3128 https://www.yahoo.co.jp
Recommended Posts