diff --git a/MOBILECONFIG.md b/MOBILECONFIG.md index f40286a..e637867 100644 --- a/MOBILECONFIG.md +++ b/MOBILECONFIG.md @@ -27,7 +27,7 @@ A .mobileconfig file is a plist file in XML format. The top-level XML item is a Here's an example .mobileconfig with the above fields filled in: -~~~ +```xml @@ -48,7 +48,7 @@ Here's an example .mobileconfig with the above fields filled in: -~~~ +``` ### WireGuard payload entries @@ -93,49 +93,49 @@ keys: Here's an example WireGuard configuration payload dictionary: -~~~ - - - PayloadDisplayName - VPN - PayloadType - com.apple.vpn.managed - PayloadVersion - 1 - PayloadIdentifier - com.your-org.wireguard.demo-profile-1.demo-tunnel - PayloadUUID - 44CDFE9F-4DC7-472A-956F-61C68055117C - UserDefinedName - Demo from MobileConfig file - VPNType - VPN - VPNSubType - com.wireguard.ios - VendorConfig - - WgQuickConfig - - [Interface] - PrivateKey = mInDaw06K0NgfULRObHJjkWD3ahUC8XC1tVjIf6W+Vo= - Address = 10.10.1.0/24 - DNS = 1.1.1.1, 1.0.0.1 +```xml + + + PayloadDisplayName + VPN + PayloadType + com.apple.vpn.managed + PayloadVersion + 1 + PayloadIdentifier + com.your-org.wireguard.demo-profile-1.demo-tunnel + PayloadUUID + 44CDFE9F-4DC7-472A-956F-61C68055117C + UserDefinedName + Demo from MobileConfig file + VPNType + VPN + VPNSubType + com.wireguard.ios + VendorConfig + + WgQuickConfig + + [Interface] + PrivateKey = mInDaw06K0NgfULRObHJjkWD3ahUC8XC1tVjIf6W+Vo= + Address = 10.10.1.0/24 + DNS = 1.1.1.1, 1.0.0.1 - [Peer] - PublicKey = JRI8Xc0zKP9kXk8qP84NdUQA04h6DLfFbwJn4g+/PFs= - Endpoint = demo.wireguard.com:12912 - AllowedIPs = 0.0.0.0/0 - - - VPN - - RemoteAddress - demo.wireguard.com:12912 - AuthenticationMethod - Password - - -~~~ + [Peer] + PublicKey = JRI8Xc0zKP9kXk8qP84NdUQA04h6DLfFbwJn4g+/PFs= + Endpoint = demo.wireguard.com:12912 + AllowedIPs = 0.0.0.0/0 + + + VPN + + RemoteAddress + demo.wireguard.com:12912 + AuthenticationMethod + Password + + +``` ### Caveats