I am trying to get the system to use a proxy for some things and not for other things.
Requirements
- Use proxy for Internet websites
- Don’t use proxy for Intranet websites
- Don’t use proxy for private RFC 1918 address space
- Make sure settings are there for the next time I log in
How to Make the Settings Persistent
If you are using BASH
- type at the command line:
vi ~/.bashrc
- press the ‘i’ key for insert
- Scroll to the bottom
- Create new line by pressing “enter”
- Paste in:
export https_proxy="http://proxyblah.com:8080"
export http_proxy="http://proxy.blah.com:8080"
export no_proxy=".foo.bar.com"
- type
:wq
- Press “enter”
How Use them for a One Time Use
Just enter
export https_proxy="http://proxyblah.com:8080"
export http_proxy="http://proxy.blah.com:8080"
export no_proxy=".foo.bar.com"
But next time you log in, the settings will not be there.