In situations where you have a proxy and you need to use command line tools like wget going through the proxy , add the following commands
export http_proxy="http://192.168.1.10:3128"
export ftp_proxy="http://192.168.1.10:3128"
If you need authentication on it in wget,add
wget --proxy-user "Domain\username" --proxy-passwd "pass123" http://mirror.kernel.org/linux.iso
Altenatively, you may encode the username/password in the http_proxy variable:
export http_proxy="http://username:password@192.168.1.10:3128"
export ftp_proxy="http://username:password@192.168.1.10:3128"
No comments:
Post a Comment