Skip to content

Add guide: deploy Zscaler Client Connector with Fleet - #59754

Open
kitzy wants to merge 8 commits into
mainfrom
kitzy/zscaler-client-connector-guide
Open

kitzy wants to merge 8 commits into
mainfrom
kitzy/zscaler-client-connector-guide

Conversation

@kitzy

@kitzy kitzy commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Related issue: Resolves fleetdm/confidential#18407

Adds a guide for deploying Zscaler Client Connector on macOS and Windows as custom packages. Zscaler isn't in Homebrew or winget, so it can't be a Fleet-maintained app (see #51059).

The guide covers:

  • Downloading the installers from the Zscaler Admin Console
  • macOS configuration profiles: system extension and managed login items (team ID PCBCQZJ7S7), plus install parameters through the com.zscaler.installparams preference domain
  • Windows install parameters (CLOUDNAME, USERDOMAIN) passed as MSI properties in a custom install script
  • Adding both packages with Deploy in the UI, and the GitOps equivalent referencing the installers by hash_sha256
  • Install policies, updates through Zscaler's App Store, verification, and troubleshooting

Zscaler details come from Zscaler's help center (supported parameters for macOS and Windows, MSI install options, process allowlist).

macOS details were tested by alt-Rational on Client Connector 4.8.0.281 (see the comments below). Resolved:

  • The com.zscaler.installparams profile is picked up, and the service rereads it each time it starts.
  • If the app installs before the profiles, the install parameters don't apply. The install policy now waits for both profiles.
  • The .pkg includes an uninstaller app (com.zscaler.installer.uninstall). The install policy checks for com.zscaler.zscaler, so it doesn't matter which bundle ID Fleet picks.
  • Zscaler doesn't offer a public download URL, so the GitOps section references installers by hash_sha256.
  • If the app installs before the profile arrives, restarting the Zscaler service and app (launchctl kickstart plus pkill -x Zscaler) fixes it without a reinstall.
  • Fleet-hosted instances don't have static IPs (they're behind an AWS ALB), so the guide limits Destination Exclusions to 17.0.0.0/8 and static self-hosted servers, and relies on Do Not Inspect rules for Fleet traffic.
  • The Windows program name (Zscaler, publisher Zscaler Inc.) matches a customer's host running Client Connector 4.10. Zscaler's separate ZscalerEP program doesn't match the policy.

Once it's published, Zscaler can be added to fleetdm.com/integrations in a follow-up.

Checklist for submitter

Testing

  • QA'd all new/changed functionality manually

AI

AI: Claude Code (claude-opus-5-5)

Summary by CodeRabbit

  • New Features
    • Added macOS configuration profiles for Zscaler Client Connector, including system extension and service management settings.
    • Added installation options to configure the connector’s cloud environment, user domain, and menu bar launch behavior.

@alt-Rational

Copy link
Copy Markdown
Contributor

Thanks for this guide. We're rolling out Zscaler Client Connector with Fleet GitOps right now (macOS only, Client Connector 4.8.0.281), and our setup answers some of the open questions in the PR description. Here's what we found, plus some suggestions.

Answers to the open questions

1. Is com.zscaler.installparams picked up? Yes. ZscalerService reads it when it starts and logs Getting Install Parameters from Preference Profile in /Library/Application Support/Zscaler/ZSAService_*.log. Some things to know:

  • cloudName must not include the TLD. For ZIA cloud zscaler.net, use zscaler. If you include the TLD, the app shows Select a Cloud. It might be worth adding this to the guide, since admins often copy the full cloud domain.
  • Don't use a com.apple.ManagedClient.preferences payload for com.zscaler.Zscaler, which older community examples use. Only the tray app reads it. The service logs Could not find Parameters from Preference Profile com.zscaler.installparams.
  • launchTray = 1 works well with Fleet's silent install. The tray opens right away, so the user lands on the IdP sign-in.

2. What happens if the app installs before the profiles? The service reads the install parameters only when it starts after the install. If the profile arrives later, the parameters don't take effect until you reinstall. With Deploy, Fleet's automatic policy only checks for the app, so it can install before the profiles arrive. We gate the install policy on the profiles instead. The policy passes (and doesn't install) until both profiles are present:

- name: macOS - Zscaler Client Connector installed
  query: |
    SELECT 1
    WHERE (
      SELECT COUNT(*) FROM macos_profiles
      WHERE identifier IN ('com.example.zscaler.extensions', 'com.example.zscaler.installparams.profile')
    ) < 2
    OR (
      EXISTS (SELECT 1 FROM apps WHERE bundle_identifier = 'com.zscaler.zscaler')
      AND EXISTS (SELECT 1 FROM processes WHERE path LIKE '/Applications/Zscaler/Zscaler.app/%')
    );
  platform: darwin
  install_software:
    package_path: ../lib/macos/software/zscaler-client-connector.package.yml

We pair it with a second policy that fails while the profiles are missing, so a host that's stuck shows up. We also check that a Zscaler process is running, not just that the app is installed.

3. Bundle ID and the other identifiers. We read these from Client Connector 4.8.0.281 on a test host:

What Value
Team ID PCBCQZJ7S7
App /Applications/Zscaler/Zscaler.app, bundle ID com.zscaler.zscaler (lowercase)
System extensions com.zscaler.zscaler.pktfilter (packet filter), com.zscaler.zscaler.TRPTunnel (transparent proxy)
launchd labels com.zscaler.tray, com.zscaler.service, com.zscaler.tunnel, com.zscaler.UPMServiceController
Uninstaller in the .pkg com.zscaler.installer.uninstall

Because the .pkg also contains the uninstaller app, we don't rely on the policy that Deploy creates. We write our own install policy with bundle_identifier = 'com.zscaler.zscaler' (shown above) and reference the package from it, so the bundle ID Fleet picks from the package doesn't matter.

Here's the extensions profile we'd suggest instead of the one in the guide. It allows the two system extensions explicitly instead of the whole Team ID, approves the packet filter as a content filter (without that, users get the "would like to filter network content" prompt), keeps the background items and the login item from being turned off, and, optionally, grants Full Disk Access:

zscaler-client-connector-extensions.mobileconfig
<?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>
    <!-- Allow the system extensions. Merge into your existing system extension policy if you have one. -->
    <dict>
      <key>PayloadType</key>
      <string>com.apple.system-extension-policy</string>
      <key>PayloadIdentifier</key>
      <string>com.example.zscaler.system-extension-policy</string>
      <key>PayloadUUID</key>
      <string>AF3A0ABA-216B-412E-9E12-27EE59017E51</string>
      <key>PayloadVersion</key>
      <integer>1</integer>
      <key>AllowUserOverrides</key>
      <false/>
      <key>AllowedSystemExtensions</key>
      <dict>
        <key>PCBCQZJ7S7</key>
        <array>
          <string>com.zscaler.zscaler.pktfilter</string>
          <string>com.zscaler.zscaler.TRPTunnel</string>
        </array>
      </dict>
    </dict>
    <!-- Approve the packet filter as a content filter, so the user isn't prompted. -->
    <dict>
      <key>PayloadType</key>
      <string>com.apple.webcontent-filter</string>
      <key>PayloadIdentifier</key>
      <string>com.example.zscaler.webcontent-filter</string>
      <key>PayloadUUID</key>
      <string>EF036CD7-B7FC-4C6F-96AE-0FA3B7067678</string>
      <key>PayloadVersion</key>
      <integer>1</integer>
      <key>UserDefinedName</key>
      <string>Zscaler Network Extension</string>
      <key>FilterType</key>
      <string>Plugin</string>
      <key>PluginBundleID</key>
      <string>com.zscaler.zscaler</string>
      <key>FilterDataProviderBundleIdentifier</key>
      <string>com.zscaler.zscaler.pktfilter</string>
      <key>FilterDataProviderDesignatedRequirement</key>
      <string>anchor apple generic and identifier "com.zscaler.zscaler.pktfilter" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = PCBCQZJ7S7)</string>
      <key>FilterGrade</key>
      <string>firewall</string>
      <key>FilterSockets</key>
      <true/>
      <key>FilterPackets</key>
      <false/>
    </dict>
    <!-- Keep the background items and the login item from being turned off. -->
    <dict>
      <key>PayloadType</key>
      <string>com.apple.servicemanagement</string>
      <key>PayloadIdentifier</key>
      <string>com.example.zscaler.servicemanagement</string>
      <key>PayloadUUID</key>
      <string>96194957-48A8-4C9A-B060-4B9F90E40219</string>
      <key>PayloadVersion</key>
      <integer>1</integer>
      <key>Rules</key>
      <array>
        <dict>
          <key>RuleType</key>
          <string>LabelPrefix</string>
          <key>RuleValue</key>
          <string>com.zscaler</string>
          <key>TeamIdentifier</key>
          <string>PCBCQZJ7S7</string>
          <key>Comment</key>
          <string>Zscaler tray, tunnel and service background items</string>
        </dict>
        <dict>
          <key>RuleType</key>
          <string>BundleIdentifier</string>
          <key>RuleValue</key>
          <string>com.zscaler.zscaler</string>
          <key>TeamIdentifier</key>
          <string>PCBCQZJ7S7</string>
          <key>Comment</key>
          <string>Zscaler Client Connector login item</string>
        </dict>
      </array>
    </dict>
    <!-- Optional: Full Disk Access without a user prompt. -->
    <dict>
      <key>PayloadType</key>
      <string>com.apple.TCC.configuration-profile-policy</string>
      <key>PayloadIdentifier</key>
      <string>com.example.zscaler.tcc</string>
      <key>PayloadUUID</key>
      <string>D6F4FE72-26CF-4E96-8DEA-DF8433F2AA92</string>
      <key>PayloadVersion</key>
      <integer>1</integer>
      <key>Services</key>
      <dict>
        <key>SystemPolicyAllFiles</key>
        <array>
          <dict>
            <key>Identifier</key>
            <string>com.zscaler.zscaler</string>
            <key>IdentifierType</key>
            <string>bundleID</string>
            <key>CodeRequirement</key>
            <string>anchor apple generic and identifier "com.zscaler.zscaler" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "PCBCQZJ7S7")</string>
            <key>StaticCode</key>
            <false/>
            <key>Allowed</key>
            <true/>
          </dict>
        </array>
      </dict>
    </dict>
  </array>
  <key>PayloadDisplayName</key>
  <string>Zscaler Client Connector extensions</string>
  <key>PayloadIdentifier</key>
  <string>com.example.zscaler.extensions</string>
  <key>PayloadType</key>
  <string>Configuration</string>
  <key>PayloadScope</key>
  <string>System</string>
  <key>PayloadUUID</key>
  <string>E3C3DC7B-FD23-4B1A-A85D-59EE63FB2A1C</string>
  <key>PayloadVersion</key>
  <integer>1</integer>
</dict>
</plist>

To re-check the values after an upgrade:

pkgutil --expand-full Zscaler-osx-*-installer.pkg /tmp/zscaler-pkg
codesign -dv --verbose=2 /tmp/zscaler-pkg/*/Payload/Applications/Zscaler/Zscaler.app 2>&1 | grep -E 'Identifier|TeamIdentifier'
find /tmp/zscaler-pkg -name '*.systemextension' -o -name '*.appex'

Suggested additions to the macOS profiles

Only one system extension policy

Many orgs already have a com.apple.system-extension-policy payload, for example for Microsoft Defender. Several of these payloads on one device can conflict. It'd help to tell readers to add the Zscaler entry (PCBCQZJ7S7 → com.zscaler.zscaler.pktfilter, com.zscaler.zscaler.TRPTunnel) to their existing payload and to leave that payload out of the profile above. That's how we do it.

Zscaler root certificates (SSL inspection)

Most Zscaler deployments use SSL inspection. Without the Zscaler root CA in the System keychain, every inspected HTTPS connection fails with a certificate error, often right after the first sign-in. We'd suggest making this part of the core profile set instead of an optional feature, since it has to be in place before the tunnel starts inspecting traffic.

We deliver both Zscaler root CAs as com.apple.security.root payloads in the same profile. They're trusted for all users without a prompt:

<dict>
  <key>PayloadType</key>
  <string>com.apple.security.root</string>
  <key>PayloadIdentifier</key>
  <string>com.example.zscaler.root-ca</string>
  <key>PayloadUUID</key>
  <string>REPLACE-WITH-UUID</string>
  <key>PayloadVersion</key>
  <integer>1</integer>
  <key>PayloadDisplayName</key>
  <string>Zscaler Root CA</string>
  <key>PayloadCertificateFileName</key>
  <string>ZscalerRootCA.crt</string>
  <key>PayloadContent</key>
  <data>
  <!-- base64 DER of the certificate, without the BEGIN/END lines -->
  </data>
</dict>
<!-- Repeat for ZscalerRootCertificate-2048-SHA256.crt -->
Certificate SHA-256 fingerprint Valid until
Zscaler Root CA (ZscalerRootCA.crt) F3:D8:8E:5E:73:A9:FA:A8:7E:03:08:01:13:A3:9A:8B:A4:C5:27:5E:39:1C:27:30:3B:33:75:C3:6F:C6:FF:D4 2040-11-09
Zscaler Root CA, 2048 SHA256 (ZscalerRootCertificate-2048-SHA256.crt) 04:F6:1F:1D:13:AA:E1:D1:65:73:DC:2C:37:F7:96:FD:F4:AC:97:71:3A:69:59:EB:B1:1D:24:73:95:8B:1A:53 2042-05-06

Some notes that could go into the guide:

  • Download the certificates in the Zscaler Admin Console (Policy > SSL Inspection). If the org uses its own intermediate CA for inspection instead of Zscaler's default, deploy that root instead of, or in addition to, the Zscaler roots.
  • Admins can check the fingerprint before uploading with openssl x509 -in ZscalerRootCA.crt -noout -fingerprint -sha256.
  • macOS profiles only cover apps that use the System keychain. Tools with their own CA bundles, like Node.js, Python requests, the Git and curl bundled with Homebrew, Java and Docker containers, still fail under SSL inspection. They need the CA through their own settings (NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE, SSL_CERT_FILE and so on) or a Do Not Inspect rule for their hosts. A short mention would save developer-heavy fleets a lot of tickets.
  • To check that the profile is installed on a host: security find-certificate -a -c "Zscaler Root CA" /Library/Keychains/System.keychain.

Platform SSO: AppPrefixAllowList for Client Connector

If the org uses Microsoft Entra ID with the Microsoft Enterprise SSO plug-in or Platform SSO (Company Portal's SSO extension), Client Connector's Entra ID sign-in can use the extension, so the user is signed in without entering credentials again. By default, the plug-in only handles apps that use MSAL and a few allowed apps. Client Connector isn't one of them, so it needs to be added with AppPrefixAllowList in the ExtensionData of the com.apple.extensiblesso payload:

<dict>
  <key>PayloadType</key>
  <string>com.apple.extensiblesso</string>
  <key>PayloadIdentifier</key>
  <string>com.example.psso</string>
  <key>PayloadUUID</key>
  <string>REPLACE-WITH-UUID</string>
  <key>PayloadVersion</key>
  <integer>1</integer>
  <key>ExtensionIdentifier</key>
  <string>com.microsoft.CompanyPortalMac.ssoextension</string>
  <key>TeamIdentifier</key>
  <string>UBF8T346G9</string>
  <key>Type</key>
  <string>Redirect</string>
  <key>URLs</key>
  <array>
    <string>https://login.microsoftonline.com</string>
    <string>https://login.microsoft.com</string>
    <string>https://sts.windows.net</string>
  </array>
  <key>ExtensionData</key>
  <dict>
    <key>AppPrefixAllowList</key>
    <string>com.zscaler.</string>
  </dict>
  <!-- Keep your existing PlatformSSO dictionary, AuthenticationMethod, ScreenLockedBehavior, etc. -->
</dict>

Some details:

  • AppPrefixAllowList is one comma-separated string, not an array. If the org already allows other prefixes, append Zscaler, for example com.zscaler.,com.example.app.
  • The prefix com.zscaler. covers com.zscaler.zscaler and Zscaler's helper apps. The trailing dot keeps it from matching other vendors' bundle IDs that start with com.zscaler.
  • Add the key to the existing SSO extension payload instead of a second Zscaler profile. A device should have only one com.apple.extensiblesso payload per extension, and a second one can stop the Platform SSO registration from working.
  • This only works when Client Connector signs in with Entra ID (SAML IdP set to Entra ID in ZIA, and userDomain matching the Entra ID tenant domain), and when the extension's URLs include the Entra ID sign-in endpoints.
  • To check: after the profile is installed, app-sso platform -s shows the SSO extension as registered. When Client Connector opens, the Entra ID sign-in completes without a password prompt.

Keeping Fleet MDM working through Zscaler

This is the part we'd most like to see in the guide. With Tunnel 2.0 and SSL inspection, Zscaler can break APNs and MDM traffic. Then the host stops receiving MDM commands and profiles from Fleet. Apple's MDM check-in also uses mutual TLS with the device identity certificate, which doesn't work when the connection is inspected, even with the Zscaler root CA trusted.

  1. App Profile → Destination Exclusions (Tunnel 2.0): add 17.0.0.0/8 (Apple's network, as Apple and Zscaler recommend for APNs and MDM) and your Fleet server, either the FQDN (for example fleet.example.com) or its IP. Client Connector resolves hostname exclusions, as we saw in its logs for captive.apple.com.
  2. ZIA → SSL Inspection → Do Not Inspect:
    • Apple MDM: .push.apple.com, deviceenrollment.apple.com, deviceservices-external.apple.com, mdmenrollment.apple.com, iprofiles.apple.com, gdmf.apple.com, albert.apple.com, identity.apple.com, .business.apple.com, axm-adm-*.apple.com
    • Fleet: your Fleet server FQDN and updates.fleetdm.com (fleetd updates)
  3. ZIA Firewall: allow TCP 443, 2197 and 5223 to 17.0.0.0/8 (APNs).

A short "Verify" step for this could also help: after Zscaler connects, send an MDM command from Fleet (for example, refetch the host) and confirm the host acknowledges it.

@kitzy

kitzy commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

@alt-Rational this is super helpful! Thank you for the detailed write up.

@alt-Rational

Copy link
Copy Markdown
Contributor

@kitzy No worries, happy to help. Let me know if you need more details for some of the points.

@kitzy

kitzy commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@alt-Rational thanks again, this answered most of the open questions on the PR. I've worked a lot of it into the draft: the root CA, Do Not Inspect rules, gating the install on the profiles, the reinstall warning, and the cloudName tip.

A few follow-up questions:

  1. How are you hosting the .pkg behind zscaler-client-connector.package.yml? Does Zscaler give you a public download URL, or do you host it yourselves? That's the last open question for the GitOps section.
  2. Which interception mode are you using? Zscaler's Jamf guide sets up both extensions as VPN payloads (Packet-tunnel for pktfilter, App-proxy for TRPTunnel), not a content filter. When you saw the "filter network content" prompt, were those VPN payloads on the host?
  3. When the install parameters profile shows up after the app, did you try restarting the service (sudo launchctl kickstart -k system/com.zscaler.service) instead of reinstalling? If that works, it's an easier fix to recommend.
  4. What cloudName value got you Select a Cloud? Zscaler's docs say zscalertwo and zscalertwo.net both work, so I want to know if this is specific to the zscaler.net cloud or to 4.8.
  5. Have you confirmed Client Connector signs in silently with AppPrefixAllowList? Microsoft's docs say the SSO plug-in doesn't support apps with their own network stack, so I want to be sure before it goes in the guide.

A few things I'm leaving out for now:

  • Mutual TLS on MDM check-in. Fleet's enrollment profile sets SignMessage to true, so hosts sign their requests instead of using a client cert. If you saw MDM commands fail under inspection with the root CA trusted, send me the details. Something else would be going on.
  • One system extension policy per device. Apple's docs say macOS combines multiple payloads. The only conflict they call out is the same team ID in both AllowedTeamIdentifiers and AllowedSystemExtensions. Is that what you hit?
  • Process check in the install policy. If a user quits the app or the service crashes, the policy fails and Fleet reinstalls Zscaler. A separate report-only policy seems safer. What were you trying to catch?
  • Excluding 17.0.0.0/8 from Z-Tunnel 2.0. Apple's guidance is clear, but I couldn't find Zscaler's. Do you have a link?

Let me know if I got any of this wrong.

…ting

- Hold the macOS install until both Zscaler profiles are on the host
- Add optional root certificate and Entra ID SSO sections
- Add Do Not Inspect and APNs guidance for Fleet and Apple traffic
- Cover the packet filter VPN payload alongside the transparent proxy one
- Expand verify and troubleshooting steps
@alt-Rational

Copy link
Copy Markdown
Contributor

@kitzy Thanks for working it in! We tested the open points on our PoC host (macOS 27.2, Client Connector 4.8.0.281, Z-Tunnel 2.0, Entra ID with Platform SSO). Here's everything we could confirm with logs or packet captures. Three things I told you earlier turned out to be wrong; they're corrected below.

Your questions

1. Where the .pkg comes from

We host it ourselves. We download the installer from the Zscaler Admin Console and upload it to our own package registry. Our CI then uploads it to Fleet (POST /api/v1/fleet/software/package) and the fleet YAML references it by hash_sha256, so we don't depend on a public download URL. We checked and also asked Zscaler but sadly never got a response for any public download url.

2. Interception mode

Our forwarding profile uses Z-Tunnel 2.0 in route-based tunnel mode:

  • Traffic goes through a utun interface (100.64.0.1) with an include of 0.0.0.0/0, over TLS with fallback.
  • There are no VPN payloads on the host.
  • Neither com.zscaler.zscaler.pktfilter nor com.zscaler.zscaler.TRPTunnel is loaded (systemextensionsctl list), even though both are allowed.

So the content-filter payload has no effect in this mode, and please disregard what I said about the "filter network content" prompt. We can't reproduce it with this driver. The Jamf-style VPN payloads only matter for the packet filter-based or transparent proxy-based driver.

3. Restart the service instead of reinstalling

Partly confirmed:

  • ZscalerService reads com.zscaler.installparams every time it starts, not only after an install. After sudo launchctl kickstart -k system/com.zscaler.service, the log shows Getting Install Parameters from Preference Profile again, with no Could not find Parameters….
  • The kickstart restarts only the service; ZscalerTunnel keeps running with the same PID.
  • What we didn't test: whether a restart fixes a host where the app was installed before the profile arrived. That needs removing the profile and reinstalling, so we haven't done it yet. (I will test this later this week with a test machine)

For the guide, I'd still gate the install on the profiles and mention the restart as something to try first.

4. cloudName

Please disregard my earlier claim. With cloudName = zscaler.net, our tray logged install param cloud name: zscaler.net, then using cloud: zscaler from configuration, and downloaded policy from mobile.zscaler.net. That matches Zscaler's docs: both forms work. We only tested the zscaler.net cloud.

5. Silent sign-in with AppPrefixAllowList

Confirmed:

  • Client Connector does its Entra ID SAML sign-in in an embedded WKWebView (tray log: Attempt to perform SAML based ZIA authentication via embedded webview). Microsoft lists apps that use Apple's web view APIs as eligible for the allowlist (Microsoft Learn).
  • With com.zscaler. in AppPrefixAllowList, we logged out of Client Connector and signed in again while watching the SSO extension log (~/Library/Containers/com.microsoft.CompanyPortalMac.ssoextension/Data/Library/Caches/Logs/Microsoft/SSOExtension/). It shows Created Browser SSO request for bundle identifier com.zscaler.zscaler, then Executing without UI, SSO response is successful 1 and Sending check UI response == NO.
  • There were two requests (ZIA and ZPA), both handled silently with the Platform SSO token. The user didn't have to enter anything.

The items you're leaving out

Mutual TLS on MDM check-in: You're right. The enrollment profile on our host has SignMessage set to true. Please disregard that point.

One system extension policy: We never saw an actual conflict. Keeping all vendors in one com.apple.system-extension-policy payload was a precaution, because we had an issue at one time but that was related to same team ids you are right.

Process check in the install policy: Agreed. We split it into an install policy that only checks the app, and a report-only policy that checks for /Applications/Zscaler/Zscaler.app/Contents/PlugIns/ZscalerTunnel. What we found:

  • Quitting the app doesn't stop the tunnel. ZscalerService starts the tray again within about 2 seconds (Exit is not in progress and machine user is logged in. Relaunch tray).
  • Logging out of Client Connector stops ZscalerTunnel and removes the utun interface. Traffic then goes directly, and that's the case the report policy catches.

Excluding 17.0.0.0/8: Please keep this, and add the Fleet server. This reverses what I wrote before:

  • We had Fleet, updates.fleetdm.com, .apple.com, .push.apple.com and the Apple MDM hosts as hostname exclusions, and no IP exclusion for 17.0.0.0/8.
  • Once Z-Tunnel 2.0 is up, packet captures on the physical interface show no direct traffic to the Fleet server, iprofiles.apple.com, gdmf.apple.com or APNs on 5223. All of it goes through the tunnel to the Zscaler Service Edge.
  • The capture does work: Microsoft ranges configured as VPN gateway bypasses show up directly on en0 in the same capture.
  • ZCC logs Skipping sending dns packet to dns proxy it is not destined to tun dns, so it never sees the DNS answers that hostname exclusions depend on.
  • In the first ~2 seconds after the tunnel starts, a local proxy sends non-web flows such as APNs directly (is V4 traffic excluded from tunnel: 1) and web flows such as Fleet through the ZIA proxy. After that, everything goes through the tunnel.

So IP-based Destination Exclusions are the reliable way to keep MDM traffic out of Zscaler: 17.0.0.0/8 plus the Fleet server's IP. The range itself is Apple's guidance (Use Apple products on enterprise networks). I couldn't find a Zscaler article that recommends it specifically; Zscaler's Z-Tunnel 2.0 bypass best practices only covers how to add exclusions.

MDM does work through the tunnel when SSL inspection is off for the user:

  • After a Refetch in Fleet, mdmclient logged APS: Received push message for topic: com.apple.mgmt.External…, then MDM_Connect <PushNotification>, and the check-in to the Fleet server returned HTTP 200.
  • Caveat: that APNs connection had been opened during the 2-second startup window, so the push itself came in directly. A new TCP connection to 1-courier.push.apple.com:5223 through the tunnel also succeeded.

With SSL inspection on, the guide should require Do Not Inspect rules for the Apple MDM hosts and the Fleet server, since nothing else keeps that traffic away from inspection.

Suggestions for the guide

  • Mention that hostname exclusions may not take effect with Z-Tunnel 2.0 in route-based mode, and use IP Destination Exclusions for 17.0.0.0/8 and the Fleet server.
  • For a "Verify" step, run route -n get <fleet-server-ip> and check curl https://ip.zscaler.com. Then send a Refetch from Fleet and confirm the host checks in.
  • To confirm silent sign-in: log out of Client Connector, sign in again, and check the SSO extension log for com.zscaler.zscaler with Executing without UI.
  • Quitting the app doesn't stop the tunnel; logging out does. A report-only "tunnel running" policy is enough, and the install policy should only check for the app.

Let me know if you'd like the log excerpts or the policy YAML.

- Scope the VPN payload note to packet filter and transparent proxy modes
- Recommend IP-based Destination Exclusions for Z-Tunnel 2.0
- Restart the Zscaler service before reinstalling for late install params
- Drop the cloudName suffix tip
- Reference installers by hash_sha256 in GitOps
- Add tunnel and SSO verify steps and a report-only tunnel policy
@kitzy

kitzy commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@alt-Rational this is fantastic, thank you. The logs and packet captures made this easy to act on. I pushed an update that includes:

  • The VPN payload note now applies only to packet filter and transparent proxy modes. Route-based Z-Tunnel 2.0 doesn't need it.
  • A Destination Exclusions step for 17.0.0.0/8 and the Fleet server's IP, with a note that hostname exclusions may not take effect in route-based mode.
  • Troubleshooting now says to restart the service with launchctl kickstart first, and to reinstall only if that doesn't work. The install stays gated on the profiles.
  • The cloudName tip is gone.
  • GitOps now references the installers by hash_sha256, since there's no public download URL.
  • Verify steps for the route check and silent sign-in, and a report-only policy for ZscalerTunnel.

One call I made: IP exclusions are recommended, not required. You showed MDM works through the tunnel as long as the Do Not Inspect rules are in place, so those rules are the hard requirement. Let me know if you think that's too soft.

Two things still open:

  1. Your late-profile test this week. If a service restart fixes a host where the app was installed before the profile arrived, I'll make that the main fix in the guide.
  2. Whether Fleet managed cloud instances have stable IPs for the exclusion. I'm checking with our infra team, and will update the guide accordingly once I have an answer.

Thanks again for all the testing.

@kitzy
kitzy removed the request for review from adriant172 December 1, 2026 13:03
- Move traffic exclusions ahead of deployment
- Turn the VPN payload note into an optional step
- Move verification commands into Verify
- Add Fleet UI steps for the tunnel policy
- Split long sentences and fix style nits
Link to the profiles from the guide instead of embedding the XML.
@alt-Rational

Copy link
Copy Markdown
Contributor

@kitzy Thanks for the update, that all looks good to me.

1. Late-profile test: Done. A service restart on its own isn't enough; the tray app also has to restart, because the tray is what does the enrollment and sign-in. This fixes a host where the app was installed before the profile arrived:

sudo launchctl kickstart -k system/com.zscaler.service && pkill -x Zscaler
  • The kickstart makes ZscalerService read com.zscaler.installparams again (Getting Install Parameters from Preference Profile).
  • The enrollment runs in the tray (Zscaler.app). A tray that was already running when the profile arrived doesn't pick it up. After pkill, the service starts the tray again within about 2 seconds (Relaunch tray). The new tray auto-enrolls: AutoEnrol: … → username is empty but domain exists → username:<user>@<userDomain> → SAML sign-in through the SSO extension, with no user input.

This is the same path as a fresh install. We uninstalled completely and let Fleet reinstall with the profiles already in place: the token arrived 8 s after the install and Z-Tunnel 2.0 was up after 22 s, with no user input. So I'd make the two commands above the main fix and keep reinstalling as the fallback.

One addition for troubleshooting: the auto-enrollment only runs when the tray starts. If a user logged out manually in the app, they have to click Login once (or you restart the tray as above). The username is pre-filled and the sign-in itself is silent.

Recommended vs. required: I agree. Our MDM test through the tunnel ran with SSL inspection off, so the hard requirement is that MDM and Fleet traffic isn't inspected, whether through Do Not Inspect rules or inspection being off for those users. IP exclusions are the more robust way to take that traffic out of Zscaler altogether, so "recommended" fits.

- Restart both the Zscaler service and app when install params arrive late
- Add troubleshooting for users who sign out
- Make Destination Exclusions optional and limit them to static IPs
- Note that Fleet-hosted and load-balanced servers rely on Do Not Inspect
@kitzy

kitzy commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

@alt-Rational thanks for running that test. The kickstart + pkill combo is now the main fix in troubleshooting, with reinstalling as the fallback. I also added an entry for users who sign out manually.

Our infra team got back to me on IPs too: Fleet-hosted instances sit behind an AWS ALB, so their IPs aren't static. The guide now limits Destination Exclusions to 17.0.0.0/8 and self-hosted servers with a static IP, and relies on Do Not Inspect for everything else.

I also added a thank-you to you in the guide. Let me know if I missed anything.

@kitzy
kitzy marked this pull request as ready for review December 2, 2026 02:40
Copilot AI balanced review requested due to automatic review settings December 2, 2026 02:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check your content exclusion settings, including inherited policies.

@kitzy
kitzy requested a review from allenhouchins December 2, 2026 02:42
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Adds two macOS configuration profiles for Zscaler Client Connector. One sets installation parameters for the cloud name, user domain, and tray launch. The other allows a specified team identifier in system-extension and service-management policies and disables user overrides.

Merge Risk: Minimal · up to e2005 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Add guide: deploy Zscaler Client Connector with Fleet" names the main change. The PR adds a guide for deploying Zscaler Client Connector on macOS and Windows as Fleet custom packages, and t…
Description check Passed The description follows the repository template in substance. It links the related issue (Resolves fleetdm/confidential#18407), explains the guide's scope for macOS and Windows, and records macOS test…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Add guide: deploy Zscaler Client Connector with Fleet" names the main change. The PR adds a guide for deploying Zscaler Client Connector on macOS and Windows as Fleet custom packages, and the changeset adds macOS configuration profiles that support that guide. The title is concise and specific, and it does not describe anything missing from the changeset.

Full details: Description check

Explanation

The description follows the repository template in substance. It links the related issue (Resolves fleetdm/confidential#18407), explains the guide's scope for macOS and Windows, and records macOS testing on Client Connector 4.8.0.281. It also has a Testing checklist and an AI section in the required format. Several template items are missing or unchecked. The Changes file checkbox is not marked, and the template's Frontend, Database migrations, Apple MDM commands, GitOps, and fleetd checklists are absent. The Testing section does not show the automated-test checkboxes. The description says that Zscaler will be added to fleetdm.com/integrations in a follow-up. Those gaps are minor for a documentation-only change, so the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 49b8a32 and e200551.

Files ignored due to path filters: 1

  • articles/deploy-zscaler-client-connector.md is excluded by !**/*.md
Files selected for processing: 2

  • docs/solutions/macos/configuration-profiles/zscaler-client-connector-extensions.mobileconfig
  • docs/solutions/macos/configuration-profiles/zscaler-client-connector-install-parameters.mobileconfig

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@alt-Rational

Copy link
Copy Markdown
Contributor

Had a look at the guide, looks great. Nothing that is missing :) Thank you

This branch was previously deployed

1 inactive deployment
Docker Hub — e200551d Deployed Dec 2, 2026 by kitzy via publish #118532
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants