I was recently hired in a large corporation where I need a VPN to access email and other vital resources. When connected to the VPN, I need a wide range of HTTP proxies to access various URLs. On Windows PCs, this is configured automatically using a PAC file, so everything works as expected. On Linux...
I can use this PAC file to make my browser behave correctly:
But the rest of my system is SOL and can't access anything unless I manually specify a HTTP proxy like:
http_proxy="http://foo.corporation.com" https_proxy="http://foo.corporation.com" slack
Needless to say this is extremely impractical and I need to restart all my applications when I connect or disconnect from the VPN.
The only "clean" and somewhat practical solution I can imagine is to run a local proxy server and permanently set all proxy environment variables to use it. I can then configure that proxy server based on what network I'm connected to, without having to restart any of my applications.
The proxy server would need to support PAC files, or at least be configurable enough for me to manually configure the rules specified in the PAC file myself (or via a script).
Do any such proxy servers exist?