Is it possible to configure something (in one place) that directs all http and https traffic through a specific proxy.
At work we need to go through a proxy to get to the outside world. That proxy address needs to configured into a lot of applications. Here is some of the places:
- System Settings (Which should be system wide, but only applies to browsers)
- Spotify
- IntelliJ
- Maven
- /etc/environment
At home there is no proxy and I would like to easily disable proxy. It is a lot of work changing the configuration of all the applications each time you change location.
Can you intercept traffic and redirect it through a local proxy which then can be configured to forward to the proxy or just go directly to the requested address?
/etc/environment
. It's up to the rest of the apps to honourhttp_proxy
andhttps_proxy
, etc. Most standard Ubuntu programs do. If Spottify or Maven doesn't, it's on them. That said, you could always runsquid
yourself, so the programs are always using your localhost proxy, and squid configuration handles whether a real proxy is being used or not. That's what I used to do.