Skip to content

Instantly share code, notes, and snippets.

@grokdesigns
Created July 23, 2017 05:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grokdesigns/edf4b64980306aecb7745019d1d771a1 to your computer and use it in GitHub Desktop.
Save grokdesigns/edf4b64980306aecb7745019d1d771a1 to your computer and use it in GitHub Desktop.
<key>OnDemandEnabled</key>
<integer>1</integer>
<key>OnDemandRules</key>
<array>
<dict>
<key>Action</key>
<string>Disconnect</string>
<key>DNSServerAddressMatch</key>
<array>
<string>DNS_SERVER_IP</string>
</array>
<key>InterfaceTypeMatch</key>
<string>WiFi</string>
<key>SSIDMatch</key>
<array>
<string>SSID_NAME_HERE</string>
</array>
</dict>
<dict>
<key>Action</key>
<string>Connect</string>
<key>InterfaceTypeMatch</key>
<string>WiFi</string>
<key>URLStringProbe</key>
<string>https://vpncheck.domain.com</string>
</dict>
<dict>
<key>Action</key>
<string>Connect</string>
<key>InterfaceTypeMatch</key>
<string>Cellular</string>
<key>URLStringProbe</key>
<string>https://vpncheck.domain.com</string>
</dict>
<dict>
<key>Action</key>
<string>Disconnect</string>
</dict>
</array>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment