Hallo, what is the right way to set a proxy systemwide using centos 7? I need this for wget and docker. My first idea was /etc/environment but allthough the proxy is set wget and docker don‘ t connect to their target-systems.
I have this in /etc/profile.d/proxy-config.sh: -----%<--------------------------------- PROXYHOST="proxy" PROXYPORT="8080"
for CFGFILE in /etc/sysconfig/proxy-config ${HOME}/.proxy-config; do [ -s $CFGFILE ] && . $CFGFILE done
export http_proxy="http://$%7BPROXYHOST%7D:$%7BPROXYPORT%7D" export HTTP_PROXY="http://$%7BPROXYHOST%7D:$%7BPROXYPORT%7D" export https_proxy="http://$%7BPROXYHOST%7D:$%7BPROXYPORT%7D" export HTTPS_PROXY="http://$%7BPROXYHOST%7D:$%7BPROXYPORT%7D" export ftp_proxy="http://$%7BPROXYHOST%7D:$%7BPROXYPORT%7D" export FTP_PROXY="http://$%7BPROXYHOST%7D:$%7BPROXYPORT%7D" export all_proxy="http://$%7BPROXYHOST%7D:$%7BPROXYPORT%7D" export ALL_PROXY="http://$%7BPROXYHOST%7D:$%7BPROXYPORT%7D" export no_proxy="localhost,$(hostname -s),$(hostname -f),$(hostname -d),127.0.0.1" export NO_PROXY="localhost,$(hostname -s),$(hostname -f),$(hostname -d),127.0.0.1" export RSYNC_PROXY="${PROXYHOST}:${PROXYPORT}"
unset PROXYHOST PROXYPORT CFGFILE -----%<---------------------------------
Regards, Simon