I'm trying to temporarily set the system wide proxy option which is available as GUI in the Network Settings through bash script. I only want the proxy to be applicable while the script is running and has to reset to no proxy when the script ends. So, basically, I am looking for something like:
Change Proxy to a predefined IP, port combination
On close, reset proxy
Now, I saw something on setting the environment variable but I am not sure how to apply this temporarily.