Change network proxy settings based on IP

Contributor III

Hi all,

Looking to change network proxy settings if a user's machine is within a specific IP range.

For example:
1. A user connects to a VPN with a specific IP range and then a LaunchDaemon uses a watchpath and script to set the proxy settings
2. When the user disconnects from VPN, that same LD and watchpath and script are used to change the proxy settings to something else.

Any insight would be helpful! Thanks JN folks!