$ docker build -t my_proxy .
$ docker run --privileged -it my_proxy
DAD: allowed everything
export {http,https}_proxy='http://dad:d@localhost:3128'
KID: allowed yandex only
export {http,https}_proxy='http://kid:k@localhost:3128'
cm
: check mail
cy
: check yandex
-
edit
/etc/squid/{squid.conf,whitelist}
and save -
restart squid:
# /etc/init.d/squid restart