Posted on 07-10-2024 08:02 AM
We have access to JAMF Safe Internet due to buying the EDU ultimate bundle for some of our devices. Is there a way to only apply it to devices when they are offsite? I do think you could do this with a configuration profile that only applies when the device is not onsite in JAMF school, but those don't always change quickly and it sounds like when the profile is applied and removed it would disrupt Internet activity on the device.
Here are some secondary questions and thoughts from my testing so far:
Posted on 07-11-2024 02:28 AM
Maybe a bit of a laborious idea, but you could create a LaunchDaemon, which triggers a script every 15 minutes to check the IP and if it is from the onsite IP Range. If it doesn't fit the IP Range it triggers a "jamf recon", which should speed up your profile deployment/removal.
If you do not want to work with network segments in Jamf, you could just use an extension attribute, whether it's onsite or offsite and create a Smart Group based on that value, which you add to the scope of the profile.
A similar example of the LaunchDaemon / Script workflow is the "Casper Check" : https://github.com/rtrouton/CasperCheck
Posted on 07-18-2024 10:32 AM
Thanks for the reply and idea. We need this to work on iPads too so network segments might be our only hope.