diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-13 14:31:02 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-13 14:31:02 +0100 |
commit | fbac282bdc7e7ad3a3234dbd82a2b41817fbdf61 (patch) | |
tree | 895f6c21579a22215d5a34e1df2b578b6aac612d /MOBILECONFIG.md | |
parent | .mobileconfig: note keychain limitation (diff) | |
download | wireguard-apple-fbac282bdc7e7ad3a3234dbd82a2b41817fbdf61.tar.xz wireguard-apple-fbac282bdc7e7ad3a3234dbd82a2b41817fbdf61.zip |
.mobileconfig: fix formatting
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'MOBILECONFIG.md')
-rw-r--r-- | MOBILECONFIG.md | 90 |
1 files changed, 45 insertions, 45 deletions
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 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> @@ -48,7 +48,7 @@ Here's an example .mobileconfig with the above fields filled in: </array> </dict> </plist> -~~~ +``` ### WireGuard payload entries @@ -93,49 +93,49 @@ keys: Here's an example WireGuard configuration payload dictionary: -~~~ - <!-- A WireGuard configuration payload dictionary --> - <dict> - <key>PayloadDisplayName</key> - <string>VPN</string> - <key>PayloadType</key> - <string>com.apple.vpn.managed</string> - <key>PayloadVersion</key> - <integer>1</integer> - <key>PayloadIdentifier</key> - <string>com.your-org.wireguard.demo-profile-1.demo-tunnel</string> - <key>PayloadUUID</key> - <string>44CDFE9F-4DC7-472A-956F-61C68055117C</string> - <key>UserDefinedName</key> - <string>Demo from MobileConfig file</string> - <key>VPNType</key> - <string>VPN</string> - <key>VPNSubType</key> - <string>com.wireguard.ios</string> - <key>VendorConfig</key> - <dict> - <key>WgQuickConfig</key> - <string> - [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 - </string> - </dict> - <key>VPN</key> - <dict> - <key>RemoteAddress</key> - <string>demo.wireguard.com:12912</string> - <key>AuthenticationMethod</key> - <string>Password</string> - </dict> - </dict> -~~~ +```xml +<!-- A WireGuard configuration payload dictionary --> +<dict> + <key>PayloadDisplayName</key> + <string>VPN</string> + <key>PayloadType</key> + <string>com.apple.vpn.managed</string> + <key>PayloadVersion</key> + <integer>1</integer> + <key>PayloadIdentifier</key> + <string>com.your-org.wireguard.demo-profile-1.demo-tunnel</string> + <key>PayloadUUID</key> + <string>44CDFE9F-4DC7-472A-956F-61C68055117C</string> + <key>UserDefinedName</key> + <string>Demo from MobileConfig file</string> + <key>VPNType</key> + <string>VPN</string> + <key>VPNSubType</key> + <string>com.wireguard.ios</string> + <key>VendorConfig</key> + <dict> + <key>WgQuickConfig</key> + <string> + [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 + </string> + </dict> + <key>VPN</key> + <dict> + <key>RemoteAddress</key> + <string>demo.wireguard.com:12912</string> + <key>AuthenticationMethod</key> + <string>Password</string> + </dict> +</dict> +``` ### Caveats |