You can set a HTTP Proxy for the CURRENT BASH with this command:
1 |
export http_proxy='http://192.168.1.1:3128/' |
A FTP Proxy can be set like this:
1 |
export ftp_proxy='ftp://192.168.1.1:2121/' |
With username and password it looks like this:
1 |
export http_proxy='http://bob:pass@192.168.1.1:3128/' |
1 |
export ftp_proxy='ftp://bob:pass@192.168.1.1:2121/' |
You can unset it with this commands:
1 |
export http_proxy='' |
1 |
export ftp_proxy='' |
Maybe use telnet to check if your proxy is reachable:
1 |
telnet 192.168.1.1 3128 |
Press CTRL-C to abort if necessary.