Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda SecureEdge
Results will update as you type.
  • Release and Migration Notes
  • Getting Started
  • Infrastructure
    • Edge Services
    • T/VT Sites
    • Other Deployments
      • Barracuda CloudGen Firewall
      • IPsec VPN
      • SecureEdge Connector
      • SecureEdge IoT Devices
      • DNS Locations
        • How to Add a DNS Location in SecureEdge
        • How to Configure DNS over HTTPS (User Context) with Microsoft Intune
        • Installing the DNS-over-HTTPS (User Context) Tool on Windows
        • How to Deploy the DoH (User Context) Profile on Apple Mobile Devices Using Microsoft Intune
        • How to Configure Disable Agent by Location in SecureEdge
  • SecureEdge Manager
  • Identity Management
  • SD-WAN
  • Secure Web Gateway (SWG)
  • SecureEdge Access
  • Policies
  • Common Configurations
  • Monitoring & Reporting
  • Hardware Models
  • Maintenance
  • Integration Guides
  • Miscellaneous Settings
  • Troubleshooting & FAQs

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    How to Deploy the DoH (User Context) Profile on Apple Mobile Devices Using Microsoft Intune
    Published Oct 23

    How to Deploy the DoH (User Context) Profile on Apple Mobile Devices Using Microsoft Intune

    Subscribe

    This article explains how to deploy the SecureEdge DNS-over-HTTPS (DoH) configuration profile to iPhone and iPad devices using Microsoft Intune. It covers how to customize the provided .mobileconfig file for your tenant, create and assign an iOS/iPadOS Custom configuration profile, and verify the deployment on a device. Once the profile is installed, iOS applies a system-wide DoH configuration, ensuring that DNS requests from all applications and browsers, including Safari, Chrome, Edge, and Firefox, are securely resolved through your SecureEdge DoH service.

    MDM-enforced DNS over HTTPS (DoH) requires a supervised device:

    • Enroll the device via Automated Device Enrollment (Apple Business Manager/DEP) to enable supervision and activate MDM-enforced DoH.

    • Alternatively, supervise the device using Apple Configurator; this process requires erasing the device first.

    Profile File

    Profile file

    How it works

    Profile file

    How it works

    SecureEdge-DoH.mobileconfig

    Per-user profile

    • uses {{userprincipalname}}. For user-affinity enrollments.

    • You need to replace <user_email> in the template with {{userprincipalname}}.

    Device/Static profile

    • Uses one fixed URL, no per-user token. For shared iPads / device enrollment. Includes a commented example corporate-SSID bypass rule.

    Choose the Appropriate DoH Profile

    Deployment Scenario

    Profile to Use

    Notes

    Deployment Scenario

    Profile to Use

    Notes

    User devices enrolled through Company Portal or ADE with user affinity

    Per-user profile

    Intune automatically populates the signed-in user's UPN.

    Shared iPads or devices enrolled without a dedicated user

    Device/static profile

    Configure the ServerURL to use your SecureEdge Device Context (location) DoH URL before deployment.

    Important

    Deploy only one SecureEdge DoH profile per device. iOS supports a single managed DNS resolver at a time. The deployment steps in this article apply to both profile types; upload and assign the profile that matches your deployment scenario.

    Before You Begin

    • Download the profile files (SecureEdge-DoH.mobileconfig and SecureEdge-DoH-DeviceStatic.mobileconfig) from the Barracuda Networks download portal.

    • Microsoft Intune admin rights are required to create and assign configuration profiles.

    • Devices must be enrolled with user affinity (Company Portal or Automated Device Enrollment with user affinity) when using the per-user profile. User affinity is required for the per-user {{userprincipalname}} token to resolve.

    • You must obtain your DoH URL:

      • In SecureEdge Manager, go to Infrastructure > DNS Locations, open your DNS location, and select View DNS Setup. Copy the DNS over HTTPS URL (User Context) value. This URL contains a {{userprincipalname}} placeholder that Intune fills in per user at delivery time. For more information, see How to Add a DNS Location in SecureEdge.

    • Supervised devices are recommended if you want the profile locked (tamperproof).

     

    Step 1. Prepare the .mobileconfig file

    Open SecureEdge-DoH.mobileconfig in a text editor and update the following two fields for your tenant before uploading it to Intune.

    Set the ServerURL

    Replace the host and tenant ID placeholder with your SecureEdge DNS over HTTPS URL (User Context), keeping {{userprincipalname}} exactly as shown:

    https://<your-doh-host>/dns/<id>/user/{{userprincipalname}}/dns-query

    Note

    {{userprincipalname}} is an Intune substitution token that uses double curly braces. When Intune deploys the profile, it automatically replaces the token with each user's UPN. This is the iOS equivalent of the win32 {user_email} runtime substitution. Do not pre-fill this value with a user's email address.

    Set the ServerAddresses

    In the ServerAddresses array, enter the fallback resolver IP address or addresses used to bootstrap the DoH connection. Use the DNS Server IP value from the same DNS Location in SecureEdge Manager.

    On-Demand Rules

    The profile includes built-in on-demand rules that always bypass DoH for captive.apple.com (required for Wi-Fi captive portal detection) and Barracuda service domains. All other DNS traffic is routed through DoH.

    The profile is removable by users (ProhibitDisablement / PayloadRemovalDisallowed = false).

     

    Step 2. Prepare the Certificate

    A trusted certificate (.cer) must be pushed to devices alongside the DoH profile so that iOS trusts the SecureEdge TLS inspection chain.

    1. In SecureEdge Manager, go to Security > TLS Inspection > Certificates.

    2. Download the TLS inspection certificate. The file downloads as a .pem file.

    3. Convert the .pem to a .cer file using the following OpenSSL command:

    openssl x509 -inform PEM -in certificate.pem -outform PEM -out certificate.cer

    For more information, see TLS Inspection.

     

    Step. 3 Create the iOS/iPadOS custom configuration profile in Intune

    1. Open the Microsoft Intune admin center and go to Devices > Apple mobile.

      apple-mob.png
    2. In the left menu, select Manage devices and click Configuration.

    3. Select + Create > + New Policy.

    4. The Create a profile window opens. Specify the values for the following:

      • Platform – Select iOS/iPadOS from the drop-down menu.

      • Profile type – Select Templates from the drop-down menu.

        • Template name – Select Custom.

          profile.png
    5. Click Create.

    6. On the Basics tab, enter a name, for example SecureEdge DoH .

      basic-tab.png
    7. Click Next.

    8. On the Configuration settings tab, specify the values for the following:

      • Custom configuration profile name – Enter a name, e.g. SecureEdge DoH. Note: this name appears on the device.

      • Configuration profile file – Upload the SecureEdge-DoH.mobileconfig file you prepared in Step 1.

      conf-tab.png
    9. Click Next.

    10. On the Assignments tab, assign the profile to a user group. Assigning the profile to users rather than devices allows Intune to resolve the {{userprincipalname}} variable for each user. To validate the deployment, assign the profile to a pilot group before rolling it out to all users.

    11. Click +Add group, add the group and click Select.

      assignment-tab.png
    12. Click Next.

    13. On the Review + create tab, review the configuration, and click Create.

    14. You can see profile “SecureEdge DoH ” created successfully.

     

    Step 4. Create the Trusted Certificate Policy

    1. In the Microsoft Intune admin center, go to Devices > Apple mobile.

    2. In the left menu, select Manage devices and click Configuration.

    3. Select + Create > + New Policy.

    4. The Create a profile window opens. Specify the values for the following:

      • Platform – Select iOS/iPadOS from the drop-down menu.

      • Profile type – Select Templates from the drop-down menu.

        • Template name – Select Trusted certificate.

          trusted-cert.png
    5. Click Create.

    6. On the Basics tab, enter a name, for example SecureEdge DoH Certificate.

    7. On the Configuration settings tab, specify the value for the following:

      • Certificate file – Upload the SecureEdge-DoH.cer file you generated in Step 2.

    8. Click Next.

    9. On the Assignments tab, assign to the same user group.

    10. Click Next.

    11. On the Review + create tab, review the configuration, and click Create.

     

    Step 5. Verify the Deployment on the Device

    After Intune delivers the profiles, sync the device. On the device, go to Settings > General > VPN & Device Management and tap Sync, or initiate a sync from the Intune admin center.

    • Confirm the Profile is Installed

      • On the device, go to Settings > General > VPN & Device Management and verify that the SecureEdge DoH profile is installed and shows a DNS configuration.

     

    9bcec004-5b21-4244-ae92-91704e00171a.png

      

    dns01.png

     

    dns02.png

     

    • Verify the per-user URL Resolved Correctly

      • Open the profile details and confirm that the DNS configuration contains the user's actual email address rather than the {{userprincipalname}} placeholder. This confirms that Intune successfully resolved the user identity during deployment.

    • Confirm DNS-over-HTTPS is Active

      • Generate normal web traffic from the device and verify that DNS requests appear in the SecureEdge Manager DNS logs for the assigned user. The queries should be associated with the user's identity. Because iOS does not provide a built-in interface to display the active DNS resolver, SecureEdge Manager DNS logs or a DNS leak test website are the recommended methods for verifying that DNS-over-HTTPS is active.

        access-block.png

    Note

    iOS has no built-in interface that identifies the active DNS resolver by name. If queries do not appear in SecureEdge Manager DNS log after a few minutes, confirm the device is supervised, the profile shows as installed (not just downloaded), and the certificate is trusted under Settings > General > VPN & Device Management.

    Expected Result

    The SecureEdge DoH profile is installed and verified, the DNS configuration contains the signed-in user's UPN, and DNS activity from the device is visible in SecureEdge Manager under that user.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 31, "requestCorrelationId": "96f9d23ce1004c2ab85d031f438f1bff"}