On Wed, Nov 03, 2021 at 03:31:54PM +0000, Paul Tansom wrote:
One possibly, but rather clunky, option would be to use different web browsers, and if you want to use the same one (working on Firefox as my example) either use profiles or alternative installs. Firefox profiles requires a close and restart of the browser (so possibly no easier than flipping to the settings and enabling/disabling the proxy; which thankfully remembers the values for the disabled option), but I'm not sure if the profiles in other browsers can handle different proxy setups (you would hope), or a Socks proxy. If you're on Ubuntu, or other Snap supporting distro you can install the deb and Snap packages at the same time, or try an Appimage (not sure how up to date it is kept) or Flatpak (not tried, but would require a few extra bits to get it running).
If you run Firefox from the command line you can specify the profile to be used, 'man firefox' tells you how.
firefox -P <name of profile>
You also need -no-remote to provent it just latching on to an already running Firefox (see the man page again).