diff --git a/README.md b/README.md index 42ae0cf..527fbff 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,10 @@ Previous signatures by: To verify resolver IPs and hostnames, compare mobileconfig files to their documentation URLs. Internal workings of the profiles are described on [developer.apple.com](https://developer.apple.com/documentation/devicemanagement/dnssettings). In order to verify signed mobileconfigs, you will need to download them to your computer and open them in a text editor, because signing profiles makes GitHub think that they are binary files. +## On demand activation + +You can optionally exclude some trusted Wi-Fi networks where you don't want to use encrypted DNS. To do so, add your SSIDs in the [OnDemandRules](https://github.com/paulmillr/encrypted-dns/blob/master/profiles/template-on-demand.mobileconfig#L22-L38) section inside the `PayloadContent` dictionary of a profile. Note: you can't edit signed profiles. + ## Contributing a new profile Profiles are basically text files. Copy an existing one and change its UUID, make sure you update README with new profile's info. diff --git a/profiles/template-on-demand.mobileconfig b/profiles/template-on-demand.mobileconfig new file mode 100644 index 0000000..7bb5f1c --- /dev/null +++ b/profiles/template-on-demand.mobileconfig @@ -0,0 +1,70 @@ + + + + + PayloadContent + + + DNSSettings + + DNSProtocol + HTTPS + ServerAddresses + + 2001:db8::1 + 2001:db8::2 + 192.0.0.1 + 192.0.0.2 + + ServerURL + https://dns.example/dns-query + + OnDemandRules + + + Action + Disconnect + SSIDMatch + + TRUSTED_NETWORK_1 + TRUSTED_NETWORK_2 + TRUSTED_NETWORK_3 + + + + Action + Connect + + + PayloadDescription + Configures device to use Example Encrypted DNS over HTTPS + PayloadDisplayName + Example DNS over HTTPS + PayloadIdentifier + com.apple.dnsSettings.managed.f0ffd552-7183-4f2e-86e5-ee1ecad2a53a + PayloadType + com.apple.dnsSettings.managed + PayloadUUID + 556aa9a6-04bb-4144-9a1b-e1b20cda3b46 + PayloadVersion + 1 + ProhibitDisablement + + + + PayloadDescription + Adds the Example DNS to Big Sur and iOS 14 based systems + PayloadDisplayName + Example Encrypted DNS over HTTPS + PayloadIdentifier + com.paulmillr.apple-dns + PayloadRemovalDisallowed + + PayloadType + Configuration + PayloadUUID + B27E8E10-697D-4938-8745-7FFEEEED57A0 + PayloadVersion + 1 + +