Exclude SSID in .mobileconfig file for Apple profiles doesn't work anymore
I used to rely on excluding SSID's when devices are on the local LAN. By doing that I could manage the DNS routing of my clients on the DNS server at home via DHCP. I opted for the Apple Profile option because that is an app less, and it does the job very well (nice walktrough by NextDNS by the way). But since a couple of months it doesn't seem to work anymore, although I've looked on the Apple Developer site and found out the SSIDmatch is still a valid value. So it's not that apple has changed the rules, or is it a bug?
I read a lot of help center tickets but they all seem to rely on the NextDNS app. I downloaded the app but I cannot find the option to exclude SSID either. Is something changed, did I miss something?
Next to iOS profiles, MacOS is not working either. All clients are on the latest OS.
14 replies
-
Having the same issue. Hopefully it gets fixed soon.
-
I believe exclude SSIDs AND DOMAINS aren't working anymore.
macOS Ventura 13.5.1
-
I did some research and found a couple of different things that I think are driving this ... firstly, on demand rules process first in order, so the odd default orange.fr and t-mobile.com domains at the top of the list seem to be preventing it from getting to the SSIDMatch section. Additionally it appears to be missing the InterfaceTypeMatch key as well as the OnDemandEnabled Key. I was able to get it working correctly by downloading an unsigned report and updating the file. Removing everything after the </dict> relating to <Key>DNSSettings</key> up until the </array> right before <key>Payload Type</key> and replacing it with this:
<key>OnDemandEnabled</key>
<integer>1</integer>
<key>OnDemandRules</key>
<array>
<dict>
<key>InterfaceTypeMatch</key>
<string>WiFi</string>
<key>SSIDMatch</key>
<array>
<string>SSID_1</string> <!-- Replace SSID_1 with your network SSID -->
<string>SSID_2</string> <!-- Replace SSID_2 with your network SSID, if applicable -->
<!-- More lines can be added of SSIDs as required -->
</array>
<key>Action</key>
<string>Disconnect</string>
</dict>
<!-- Enable if on any other WiFi network -->
<dict>
<key>Action</key>
<string>Connect</string>
<key>InterfaceTypeMatch</key>
<string>WiFi</string>
</dict>
<!-- Enable if on cellular network -->
<dict>
<key>Action</key>
<string>Connect</string>
<key>InterfaceTypeMatch</key>
<string>Cellular</string>
</dict>
<!-- Disable if on ethernet -->
<dict>
<key>Action</key>
<string>Disconnect</string>
<key>InterfaceTypeMatch</key>
<string>Ethernet</string>
</dict>
Hope this helps.
-
How do you edit the profile? I tried the Apple tool and that didn't seem to work.
-
I'm rather surprised nextdns is not only not fixing this, but not commenting on this (at least that I can find.) I don't doubt the problem might have been introduced by Apple or someone else, but at least acknowledging the issue and putting out a plan (or a plan for a plan) by now is really essential.
-
I just used TextEdit on the Mac to do it. As long as unsigned version it will be readable and easy to do. I can’t get Apple Configurator to work.
Content aside
- Status Fixed
-
3
Likes
- 1 yr agoLast active
- 14Replies
- 733Views
-
7
Following