Буду описывать использование прокси в Linгx для разных утилит
Для apt и не только.
export http_proxy=http://proxy:3128
export https_proxy=http://proxy:3128
Для curl
echo "proxy = http://proxy:3128" > .curlrc
Для Wget
vim /etc/wgetrc
use_proxy=yes
https_proxy = proxy:3128
http_proxy = proxy:3128
Для Python Pip
pip.exe install --proxy=http://user:password@addressproxy:3131 requests
Docker Proxy
mkdir /etc/systemd/system/docker.service.d
vim /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://test:3128"
Environment="HTTPS_PROXY=http://test:3128"
Environment="NO_PROXY=test"
systemctl daemon-reload
systemctl restart docker
Go
alias go='http_proxy=https.proxy=http://user:password@address:3131 https_proxy=https.proxy=http://user:password@address:3131 no_proxy=localhost,127.0.0.0/8,::1 go'Apt
Apt