Deployment of Proxy Settings on a Mac

(imported topic written by nmelanson91)

I am looking for a way to deploy proxy settings on a Mac using TEM, but still making it so the user can turn off the proxy settings when they are not on the corporate network. Is there a easy way anyone has found to do this? I created a package to do this in the past but I cannot find the original source to edit it with our new proxy settings.

Thank you.

(imported comment written by r_lawon)

The actual commands are as follow to set the web proxy:

networksetup -setwebproxy

You could just run a fixlet with the parameters above to configure this on the systems needing it. Or if you just want it as a payload-less package with the above in a postflight script.