Manage the Tanium Client on macOS

The Tanium Client is installed as a system service on macOS endpoints. The Client files are located in the /Library/Tanium/TaniumClient directory.

Manage macOS firewall rules

The Tanium Client service is signed to automatically allow communication through the default macOS firewall. The Client installation process does not modify any host-based firewall that might be in use. A network security administrator must ensure that host and network firewalls are configured to allow inbound and outbound TCP traffic on the ports that the Client uses for Tanium traffic (default 17472).

Note: For more information about port and firewall requirements for the Tanium Client, see Network connectivity, ports, and firewalls.
Table 1. Firewall commands for macOS

Tasks

Commands

View port 17472 status

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --listapps | awk \ '/TaniumClient/ {getline; print $0}'

Add Tanium Client to firewall

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add \

/Library/Tanium/TaniumClient/TaniumClient

Unblock Tanium Client in firewall

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --unblockapp \

/Library/Tanium/TaniumClient/TaniumClient

Remove Tanium Client from firewall

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --remove \

/Library/Tanium/TaniumClient/TaniumClient

Block Tanium Client in firewall

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --blockapp \

/Library/Tanium/TaniumClient/TaniumClient

Manage pop-ups for Tanium Client upgrades

When you upgrade the Tanium Client on endpoints that have a firewall enabled on macOS 10.14 (Mojave) or later, end users might see a pop-up prompting them to allow connections for the Tanium Client. To prevent the pop-up, either configure a firewall rule (best practice) or configure the System Settings on the endpoints. You can perform this task for multiple endpoints by configuring a policy or profile through a User Approved Mobile Device Management (UAMDM) tool. Contact Tanium Support if you need help ensuring that an environment is ready before the Tanium Client upgrade.

Note: For increased security, configuring a firewall rule to prevent the connections pop-up is preferable to configuring the System Settings. However, only endpoints running macOS 10.14.4 or later support this method.

Configure an MDM policy or profile for multiple endpoints

When you configure a firewall rule or System Settings through a policy or profile, the specific steps depend on your UAMDM. Contact Tanium Support for the procedure. The general steps are as follows:

  1. Create the policy or profile.
  2. Add a firewall or security setting to the policy or profile.
  3. Add com.tanium.taniumclient.plist to the allowed connections.
    Note: Users cannot see that the Tanium Client is allowed in the firewall unless you provide those users access to the Tanium Client installation directory.

Configure a firewall rule on a single endpoint

You require read-only access to the /Library/Tanium/TaniumClient directory to perform this task.

  1. On the macOS endpoint, go to System Settings > Network > Firewall.
  2. If necessary, click Unlock Unlock, enter administrator credentials, and click Unlock.
  3. Add a firewall rule: Click Options, click Add +, navigate to the /Library/Tanium/TaniumClient/ directory, select taniumclient, and click Add.
  4. Click OK to apply the rule.

Configure the System Settings on a single endpoint

All endpoints that run macOS 10.14.x or later support configuring System Settings to prevent the connections pop-up.

  1. On the macOS endpoint, go to System Settings > Network > Firewall.
  2. If necessary, click Unlock Unlock, enter administrator credentials, and click Unlock.
  3. Click Options, select Automatically allow downloaded signed software to receive incoming connections, and click OK.

Manage the Tanium Client service on macOS

On the macOS endpoint, open Terminal and use the listed launchctl commands to complete the following actions:

  • Start the Tanium Client service:

    sudo launchctl load /Library/LaunchDaemons/com.tanium.taniumclient.plist

  • Stop the Tanium Client service:

    sudo launchctl unload /Library/LaunchDaemons/com.tanium.taniumclient.plist

  • Remove the Tanium Client from the launch list:

    sudo launchctl remove com.tanium.taniumclient