Manage the Tanium Client on Linux

The Tanium Client is installed as a system service on Linux endpoints. The default installation directory for Tanium Client files is /opt/Tanium/TaniumClient.

Manage Linux firewall rules

The 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.

The following subsections list example commands for managing Linux firewalls based on default distributions of Linux.

Amazon Linux

By default, the iptables utility for managing the firewall is not configured on Amazon Linux AMI (2016.09, 2017.09, 2018.3) or Amazon Linux 2 LTS. To add, remove, deny, or view the status of ports that the Tanium Client uses, check your Amazon Web Services (AWS) security group instead.

Debian

By default, the iptables utility for managing the firewall is not configured on Debian 6.x, 7.x, 8.x, or 9.x.

CentOS, AlmaLinux, Rocky Linux, Oracle Linux, Red Hat Linux

Version 7.x or later

The following table lists the commands for managing firewall rules for versions 7.x or later of CentOS, Oracle Linux, or Red Hat Linux, or version 8.x or later of AlmaLinux or Rocky Linux:

Table 1. Firewall commands for CentOS, Oracle Linux, or Red Hat Linux 7.x or later; AlmaLinux or Rocky Linux 8.x or later

Tasks

Commands

View rules for port 17472

sudo firewall-cmd --list-all-zones | grep 17472

Add or allow port 17472

  1. List the zones.

    sudo firewall-cmd --list-all-zones

  2. For each relevant <zone_name> (such as default and where ssh is present), run:

    sudo firewall-cmd --permanent --zone=<zone_name> --add-port=17472/tcp

  3. Restart the firewall.

    sudo systemctl restart firewalld

Remove or deny port 17472

  1. List the zones.

    sudo firewall-cmd --list-all-zones

  2. For each relevant <zone_name> where port 17472 is present, run:

    sudo firewall-cmd --permanent --zone=<zone_name> --remove-port=17472/tcp

  3. Restart the firewall.

    sudo systemctl restart firewalld

Versions 5.x and 6.x

The following table lists the commands for managing firewall rules for versions 5.x and 6.x of CentOS, Oracle Linux, and Red Hat Linux.

Note: The iptables command is for IPv4. For IPv6, use the ip6tables command.
Table 2. Firewall commands for CentOS, Oracle Linux, Red Hat Linux 5.x and 6.x

Tasks

Commands

Check the firewall status

iptables -L -n --line-numbers | egrep -i "^Chain|REJECT *all"

The firewall is enabled when a REJECT *all rule is present.

View rules for port 17472

sudo iptables -L -n | grep 17472

Add or allow port 17472

  1. Check the firewall status.

    sudo iptables -L -n --line-numbers | egrep -i "^Chain|REJECT *all"

  2. For each <chain_name> with a REJECT all rule, run the following command, where <line> is the line number of the rule.

    sudo iptables -I <chain_name> <line> -p tcp -m state --state NEW \ --dport 17472 -j ACCEPT

    For example, if the chain is RH-Firewall-1-INPUT and the REJECT all rule is on line 10, run:

    sudo iptables -I RH-Firewall-1-INPUT 10 -p tcp -m state --state NEW \ --dport 17472 -j ACCEPT

  3. Save your changes and restart the iptables service.

    sudo service iptables save

    sudo service iptables restart

Remove or deny port 17472

  1. List the chains.

    sudo iptables -L -n | egrep -i "^Chain|17472"

  2. For each <chain_name>, run:

    sudo iptables -D <chain_name> -p tcp -m state --state NEW --dport 17472 -j ACCEPT

  3. Save your changes and restart the iptables service.

    sudo service iptables save

    sudo service iptables restart

OpenSUSE and SLES

Version 15.x

The following table lists the commands for managing firewall rules for versions 15.x of OpenSUSE and SUSE Linux Enterprise Server (SLES):

Table 3. Firewall commands for OpenSUSE and SLES 15.x

Tasks

Commands

View rules for port 17472

sudo firewall-cmd --list-all-zones | grep 17472

Add or allow port 17472

  1. List the zones.

    sudo firewall-cmd --list-all-zones

  2. For each relevant <zone_name> (such as default and where ssh is present), run:

    sudo firewall-cmd --permanent --zone=<zone_name> --add-port=17472/tcp

  3. Restart the firewall.

    sudo systemctl restart firewalld

Remove or deny port 17472

  1. List the zones.

    sudo firewall-cmd --list-all-zones

  2. For each relevant <zone_name> where port 17472 is present, run:

    sudo firewall-cmd --permanent --zone=<zone_name> --remove-port=17472/tcp

  3. Restart the firewall.

    sudo systemctl restart firewalld

Version 11.x and 12.X

The following table lists the commands for managing firewall rules for versions 11.x and 12.x of OpenSUSE and SUSE Linux Enterprise Server (SLES):

Table 4. Firewall commands for OpenSUSE and SLES 11.x and 12.x

Tasks

Commands

View rules for port 17472

sudo grep "FW_SERVICES_EXT_TCP=" /etc/sysconfig/SuSEfirewall2 | egrep "[ \"]17472[ \"]"

Add or allow port 17472

  1. Open the /etc/sysconfig/SuSEfirewall2 file for editing, add port 17472 to the line FW_SERVICES_EXT_TCP=, and save your changes.

  2. Restart the firewall.

    sudo SuSEfirewall2 start

Remove or deny port 17472

  1. Open the /etc/sysconfig/SuSEfirewall2 file for editing, remove port 17472 from the line FW_SERVICES_EXT_TCP=, and save your changes.

  2. Restart the firewall.

    sudo SuSEfirewall2 start

Ubuntu

The following table lists the commands for managing firewall rules for Ubuntu:

Table 5. Firewall commands for Ubuntu

Tasks

Commands

View port 17472 status

sudo ufw status | grep 17472

or

sudo iptables -L -n | grep 17472

Allow port 17472

sudo ufw allow 17472/tcp

Remove port 17472

sudo ufw delete allow 17472/tcp

Deny port 17472

sudo ufw deny 17472/tcp

Manage the Tanium Client service on Linux

Linux service commands vary according to Linux distribution. This documentation provides examples but is not a reference for each Linux distribution. If you are not already familiar with installing and managing services on your target Linux distribution, review the documentation for the particular Linux operating system before you begin.

Table 6. Tanium Client service commands by Linux distribution

Linux distributions and versions

Typical commands

Versions that use the systemd daemon (all distributions)

  • Amazon Linux (all supported versions)

  • Debian (all supported versions)

  • Oracle Linux (version 7 and later)

  • Red Hat / CentOS (version 7 and later)

  • AlmaLinux / Rocky Linux (all supported versions)

  • SUSE / OpenSUSE (version 12 and later)

  • Ubuntu (version 16 and later)

systemctl start taniumclient

systemctl stop taniumclient

systemctl status taniumclient

Versions that use the init daemon (Debian-based distributions)

  • Ubuntu (version 14)

service taniumclient start

service taniumclient stop

service taniumClient status

Versions that use the init daemon (RPM-based distributions)

  • Oracle Linux (versions 5, 6)

  • Red Hat / CentOS (versions 5, 6)

  • SUSE / OpenSUSE (versions 11.3, 11.4)

service TaniumClient start

service TaniumClient stop

service TaniumClient status

Move an existing installation of the Tanium Client on Linux

The Tanium Client must store data in the default installation directory. For this reason, in some environments, the size of the /opt/Tanium directory might exceed the space allowed within the /opt directory. If there is not enough space in the default directory, use a symbolic link to move the Client and data to another directory.

  1. Sign in to the endpoint using an account that has administrative privileges, or that is listed in the sudoers file to allow the account you are using to use sudo.
  2. Stop the Tanium Client service. For more information, see Manage the Tanium Client service on Linux.
  3. Move the Tanium Client to a new directory. For example, to move the Tanium Client from the default installation directory to the /appbin/Tanium directory, run the following command:
    CODE
    mv /opt/Tanium /appbin
    Important: The new directory must be located on a local fixed drive.
  4. Create a symbolic link. For example, if you want to use the directory /appbin/Tanium, run the following command:
    CODE
    ln -s /appbin/Tanium /opt/Tanium
  5. Start the Tanium Client service. For more information, see Manage the Tanium Client service on Linux.