Skip to content

Instantly share code, notes, and snippets.

@wzxjohn
Last active August 31, 2016 09:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save wzxjohn/715f7e6ce84f415f9623 to your computer and use it in GitHub Desktop.
Save wzxjohn/715f7e6ce84f415f9623 to your computer and use it in GitHub Desktop.
iOS 8 On-Demand IKEv2 VPN Profile
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>IKEv2</key>
<dict>
<key>AuthName</key>
<string>user1</string>
<key>AuthPassword</key>
<string>topsecretpassword</string>
<key>AuthenticationMethod</key>
<string>Certificate</string>
<key>ExtendedAuthEnabled</key>
<integer>1</integer>
<key>LocalIdentifier</key>
<string>user1@every.string.you.want</string>
<key>OnDemandEnabled</key>
<integer>0</integer>
<key>OnDemandRules</key>
<array>
<dict>
<key>Action</key>
<string>Connect</string>
</dict>
</array>
<key>RemoteAddress</key>
<string>your.server.domain</string>
<key>RemoteIdentifier</key>
<string>your.server.domain</string>
</dict>
<key>IPv4</key>
<dict>
<key>OverridePrimary</key>
<integer>1</integer>
</dict>
<key>PayloadDescription</key>
<string>Configures VPN settings, including authentication.</string>
<key>PayloadDisplayName</key>
<string>VPN</string>
<key>PayloadIdentifier</key>
<string>de.maoxian.ikev2.com.apple.vpn.managed.47B147B1-47B1-47B1-AE7F-47B196ACF67A</string>
<key>PayloadOrganization</key>
<string>maoxian.de</string>
<key>PayloadType</key>
<string>com.apple.vpn.managed</string>
<key>PayloadUUID</key>
<string>47B147B1-47B1-47B1-AE7F-47B196ACF67A</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>Proxies</key>
<dict>
<key>HTTPEnable</key>
<integer>0</integer>
<key>HTTPSEnable</key>
<integer>0</integer>
<key>ProxyAutoConfigEnable</key>
<integer>0</integer>
<key>ProxyAutoDiscoveryEnable</key>
<integer>0</integer>
</dict>
<key>UserDefinedName</key>
<string>VPN</string>
<key>VPNType</key>
<string>IKEv2</string>
</dict>
</array>
<key>PayloadDescription</key>
<string>Connection profiles for Orange VPN.</string>
<key>PayloadDisplayName</key>
<string>IKEV2 VPN Test</string>
<key>PayloadIdentifier</key>
<string>de.maoxian.ikev2</string>
<key>PayloadOrganization</key>
<string>OrangeVPN</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>B995B995-B995-43D6-B995-B995139131BD</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment