change PROXY_ADDRESS
, and PROXY_PORT
then use it.
export HTTP_PROXY=http://PROXY_ADDRESS:PROXY_PORT
export http_proxy=http://PROXY_ADDRESS:PROXY_PORT
export HTTPS_PROXY=http://PROXY_ADDRESS:PROXY_PORT
export https_proxy=http://PROXY_ADDRESS:PROXY_PORT
export NO_PROXY="localhost,127.0.0.1,172.10.10.0/24,DOMAIN.TLD"
export no_proxy="localhost,127.0.0.1,172.10.10.0/24,DOMAIN.TLD"
cat <<EOF > /etc/profile.d/proxy.sh
export HTTP_PROXY=http://PROXY_ADDRESS:PROXY_PORT
export http_proxy=http://PROXY_ADDRESS:PROXY_PORT
export HTTPS_PROXY=http://PROXY_ADDRESS:PROXY_PORT
export https_proxy=http://PROXY_ADDRESS:PROXY_PORT
export NO_PROXY="localhost,127.0.0.1,172.10.10.0/24,DOMAIN.TLD"
export no_proxy="localhost,127.0.0.1,172.10.10.0/24,DOMAIN.TLD"
EOF
cat <<EOF > /etc/apt/apt.conf.d/01proxy
Acquire::http::Proxy "http://PROXY_ADDRESS:PROXY_PORT";
Acquire::https::Proxy "http://PROXY_ADDRESS:PROXY_PORT";
EOF
vim /etc/gitconfig
[http]
proxy = http://PROXY_ADDRESS:PROXY_PORT
[https]
proxy = http://PROXY_ADDRESS:PROXY_PORT