Skip to content

Instantly share code, notes, and snippets.

@michaeldavie
Last active April 4, 2023 08:27
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 michaeldavie/d78e3fa6268c88c4ead093f757016309 to your computer and use it in GitHub Desktop.
Save michaeldavie/d78e3fa6268c88c4ead093f757016309 to your computer and use it in GitHub Desktop.
Apple configuration for DNS-over-TLS to Canadian Shield, except when connected to a specific SSID or a captive portal
<?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">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>Name</key>
<string>Canadian Shield DNS over TLS</string>
<key>PayloadDescription</key>
<string>Configures device to use CIRA encrypted DNS over TLS</string>
<key>PayloadDisplayName</key>
<string>Canadian Shield DNS</string>
<key>PayloadIdentifier</key>
<string>com.apple.dnsSettings.managed.AFCA1444-5AEB-44CD-B23D-5D1B3ADCD1EE</string>
<key>PayloadType</key>
<string>com.apple.dnsSettings.managed</string>
<key>PayloadUUID</key>
<string>A6F9CB2D-F00E-4C3A-90EB-E19E5B872C4F</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>DNSSettings</key>
<dict>
<key>DNSProtocol</key>
<string>TLS</string>
<key>ServerName</key>
<string>protected.canadianshield.cira.ca</string>
</dict>
<key>OnDemandRules</key>
<array>
<dict>
<key>Action</key>
<string>Disconnect</string>
<key>SSIDMatch</key>
<array>
<string>*****HOME SSID*****</string>
</array>
</dict>
<dict>
<key>Action</key>
<string>Connect</string>
<key>InterfaceTypeMatch</key>
<string>Cellular</string>
</dict>
<dict>
<key>Action</key>
<string>Connect</string>
<key>URLStringProbe</key>
<string>http://neverssl.com</string>
</dict>
</array>
</dict>
</array>
<key>PayloadDescription</key>
<string>Adds Canadian Shield DNS to iOS</string>
<key>PayloadDisplayName</key>
<string>Canadian Shield DNS over TLS</string>
<key>PayloadIdentifier</key>
<string>r.macOSBeta.0BD60CF6-64B5-4D16-BEA4-7294E93BDD4C</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>01DA864C-C3AF-4039-A8D0-A00D982B1569</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