Skip to content

Instantly share code, notes, and snippets.

@noestreich
Last active April 7, 2024 23:20
Show Gist options
  • Save noestreich/92542e41e4dcf7758c054cf3638a5583 to your computer and use it in GitHub Desktop.
Save noestreich/92542e41e4dcf7758c054cf3638a5583 to your computer and use it in GitHub Desktop.
Der VPN-On-Demand Codeblock zur Integration in eine Profildatei. Siehe: http://www.iphone-ticker.de/?p=97462
<!-- VPN-On-Demand Codeblock -->
<key>OnDemandEnabled</key>
<integer>1</integer>
<key>OnDemandRules</key>
<array>
<!-- VPN beim Zugriff auf Heimnetz-Adressen aufbauen -->
<dict>
<key>Action</key>
<string>EvaluateConnection</string>
<key>ActionParameters</key>
<array>
<dict>
<key>Domains</key>
<array>
<string>*.local</string>
<string>*.fritz.box</string>
<string>fritz.box</string>
</array>
<key>DomainAction</key>
<string>ConnectIfNeeded</string>
</dict>
</array>
</dict>
<dict>
<!-- VPN bei ausgewählten WLAN-Netzen deaktivieren -->
<key>InterfaceTypeMatch</key>
<string>WiFi</string>
<key>SSIDMatch</key>
<array>
<string>Name of my Home Network</string>
<string>Company WiFi</string>
</array>
<key>Action</key>
<string>Disconnect</string>
</dict>
<dict>
<!-- VPN bei aktiver WLAN-Verbindung aktivieren -->
<key>InterfaceTypeMatch</key>
<string>WiFi</string>
<key>Action</key>
<string>Connect</string>
</dict>
<dict>
<!-- VPN im Mobilfunknetz nicht aktivieren -->
<key>InterfaceTypeMatch</key>
<string>Cellular</string>
<key>Action</key>
<string>Disconnect</string>
</dict>
<dict>
<!-- VPN Default state -->
<key>Action</key>
<string>Disconnect</string>
</dict>
</array>
<!-- VPN-On-Demand Codeblock ENDE-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment