We'd like to prevent users connecting unsecured WiFi -networks, but as this doesn't seem to be a feature (we don't want to use a whitelist / blacklist), I'm trying to find out another way to warn users, if they're using unsecured WiFi at any time.
Would anyone have any idea how to do the following?
As macOS is able to tell user this information about being connected to unsecured network (when clicking on the WiFi top bar WiFi icon), I thought perhaps this information could be checked somehow via terminal.
If it's somehow possible to check via terminal, I'd then like to send a notification to the user, stating that they're using unsecured network and they should activate our VPN (were not using macOS integrated VPN connection).
Jamf is able to provide a simple notification pop-up window to the user via command:
jamf displayMessage -message "Enter your message here"
What I'm thinking that might be possible:
- Create New Policy triggering on Network State Change (is there anything else to remember when using this?)
- check if connected to unsecured network via terminal command script
- if "unsecured network" = yes -> then notify user with "jamf displayMessage" -command
Any ideas and help around this matter will be greatly appreciated!