Posted on 01-10-2025 04:34 AM
I'm trying to apply proxy settings to Macs for use only when they are in the office, connected to corporate Ethernet or WiFi, but I don't want these proxy settings to be applied when the user is at home or anywhere that isn't the office.
Is there a way that this can be done?
Posted on 01-10-2025 04:58 AM
1st cup o coffee - network state change>launchagent>script that checks IP range> does a proxy thing
01-10-2025 05:28 AM - edited 01-10-2025 05:30 AM
Depends on how quickly the things needs to be done. Jamf runs policies based on information Jamf Pro has. You can set a policy to run once a device reports it has your internal IP addresses simply enough. However, there will still be a 7-23 minute delay on the policy running as there is a time skew on the device checking in to Jamf to update inventory which is what queues the policies to run. This is a two-way street, when they get home and are no longer on a corp network it will take another 7-23 minutes for the thing to happen to undo the setting.
Honesty, you need to be configuring policies with a network security client on the network side or a VPN client (or similar) on the device side if you need it to be dynamic and flexible.
Posted on 01-10-2025 07:26 AM
LaunchAgent to run script like @efil4xiN with network change and can try using Network Locations (networksetup --switchtolocation)
3 weeks ago
I have this exact need as well. I need to apply an automatic proxy configuration (pac file url) when connected in the office or on wireless 8021x in the office.
Did anyone end up with a solution on this issue?