Getting Started with the Linux Client

Prev Next

This article explains how to install and run the Cato Linux Client, including the graphical interface in Client v6.0 and the command-line interface.

Overview

Starting with version 5.1, the Linux Client supports Device Posture checks that can be included in your Client Connectivity and Security policies. This version also includes support for user awareness, automatic upgrades that are managed by Cato and SSO without a browser.

Linux Client v6.0 includes a graphical interface for managing connections, users, settings, and diagnostics. The command-line interface remains available. The command reference below is retained for existing deployments.

Prerequisites

  • Review the Prerequisites (especially the minimum device operating system) listed in Preparing to Install the Cato Client.

  • For SSO and GUI-based features:

    • For Client versions earlier than v6.0, all Linux desktop versions are supported (for example, GNOME and KDE). For Client v6.0, use the distribution, release, and GNOME environment listed in Preparing to Install the Cato Client.

    • Define a default browser for the device (generally the default setting is for GNOME)

    • Headless SSO is supported for Azure only. For more information on how to configure Azure SSO, see Configuring Azure SSO for Your Account

  • Open a terminal to install the Client package or run command-line actions. After installation, Client v6.0 also supports connections through the graphical interface.

Preparing Firefox for Authentication

Firefox uses its own certificate store. If you use Firefox for authentication, install the Cato CA certificate in Firefox's certificate manager before connecting. Otherwise, Firefox may display a certificate warning during sign-in.

To install the Cato certificate in Firefox:

  1. Download the certificate:

    1. Open the Client download portal

    2. Select Cato Client > Linux.

    3. Click Download Certificate.

  2. Install it in Firefox:

    1. From Firefox’s settings, find the Manage Certificates area (the exact settings location differs between Firefox versions).

    2. Import the downloaded file.

    3. Confirm that you trust the Cato Networks Root CA for both website and user identification

You can also distribute the certificate using your organization's device-management tools. The Cato certificate is separate from a device certificate used for Device Authentication.

Known Limitations

  • Automatic re-authentication is not supported. End-users must re-authenticate to the IdP in the browser.

Installing the Linux Client

Download the Client file and run it on your Linux device.

To install the Client on a Linux device:

  1. From the Client download portal, select the Linux tab and download the package for your supported distribution and processor architecture.

    The following file types are available:

    • .rpm (Red Hat Package Manager); for Client v6.0, use a supported Red Hat Enterprise Linux environment

    • Debian (.deb); for Client v6.0, use the Ubuntu package for your processor architecture

  2. Run the Client file:

    • For the .rpm file, enter the following command in the terminal: sudo rpm -i cato-client-install.rpm

    • For the Debian file, enter the following command in the terminal: sudo dpkg -i cato-client-install.deb

    • For the ARM64 Debian package, run sudo dpkg -i cato-client-install-arm64.deb

After installation: The graphical interface does not open automatically. Open the Cato Client from your desktop's application launcher.

Running the Linux Client

Connecting with the Graphical Interface in Client v6.0

To connect with the graphical interface:

  1. Open the Cato Client.

  2. Click Connect. If prompted, add a user and complete authentication in your default external browser.

  3. Return to the Client and check the connection status.

Managing Users

To add a user:

  1. Open the user-management screen using the person icon in the left sidebar, and choose the option to add a user.

  2. Complete authentication in your default external browser. Return to the Client, select the added user, and select Connect.

To switch users:

  1. Open the user-management screen and select the saved user you want to connect with.

  2. Select Connect and complete authentication if prompted.

Disconnecting and Changing PoPs

To disconnect from Cato, select Disconnect on the home screen. Select Connect when you want to connect again.

To change the PoP for a user:

  1. Open the required user's PoP configuration and set the PoP you want to use.

  2. Connect with that user and check the connection status.

The PoP configuration is saved separately for each user. Client v6.0 also supports switching users and PoPs while in Office Mode.

Configuring the Initial PoP

In Settings, enter the PoP address in Initial PoP Address and select Save. This address is used for the first connection of users you add to the Client.

Configuring Office Mode

In Settings, enable or disable Office Mode if your administrator allows you to change it. Office Mode lets the Client use the local Cato site connection instead of creating a separate tunnel.

Changing the setting does not move an active connection out of Office Mode. The setting takes effect when the Client next connects.

For administrator configuration and requirements, see Configuring Office Mode.

Installing a Device Certificate

If your organization requires a device certificate, use the .p12 certificate file. This file includes the device certificate and its private key.

To install a device certificate from the graphical interface:

  1. Open Settings and locate the device certificate setting.

  2. Select Install and choose the .p12 file provided by your administrator.

For certificate prerequisites and command-line installation, see Installing Device Certificates on Linux Devices.

The device certificate is separate from the Cato CA certificate used by Firefox for authentication.

Sleep or suspend interrupts the VPN tunnel. After the device resumes, check the connection status and reconnect if necessary.

Connecting with the Command Line

To connect the Client to the Cato Cloud on a browser based device, run the command: cato-sdp start

To connect the Client to the Cato Cloud on a headless (without a browser) based device, run the command: cato-sdp start --account <account name> --user <remote user's email address>

Note: The account name is the account Subdomain. To find the Subdomain, navigate to Access > Single Sign-On.

Browser Authentication

When browser authentication is required, the Client opens your default external browser. Complete authentication using the method configured for your account. Client v6.0 does not support an embedded authentication browser.

Headless SSO (Authentication Without a Browser)

To authenticate with SSO on devices without a browser, you can use a different device that has a browser to authenticate on behalf of the headless device.

Overview of Headless SSO

You can use headless SSO to authenticate remote users in non-browser environments, for example, a command line tool or a printer, without requiring a browser. With headless SSO, you can use a different device that has a browser to authenticate on behalf of the non-browser device. After successfully authenticating through the browser, the non-browser device connects to the Cato Cloud.

Silent re-authentication is not possible with headless SSO. After the token expires, remote users are required to re-authenticate.

Authenticating with Headless SSO

Headless SSO lets you authenticate on devices without a browser.

To authenticate on a headless device:

  1. On the headless device, run the command: cato-sdp start --account <account name>.

    A unique code and URL are returned.

    Note:

    - The account name is the account Subdomain. To find the Subdomain, navigate to Access > Single Sign-On.

    - For authentication without SSO, add the parameter --no-sso

    - The --headless parameter is not required in version 5.1.0.21 and higher

  2. On a device that has a browser, access the URL and enter the unique code.

  3. Sign in with your SSO credentials.

    The headless device is connected to the Cato Cloud.

Using Support and Diagnostics in Client v6.0

From the Support screen, you can view support information, download Client logs, send logs to Support, and run diagnostics.

The diagnostic checks depend on the Client's connection state. Additional checks are available while the VPN is disconnected.

Upgrading the Linux Client

For Client-managed upgrades, first connect at least one user so the Client receives the account's upgrade configuration. The Client cannot update through this mechanism before a user has connected.

After that initial connection, upgrades can run while the Client is connected or disconnected, according to the configured upgrade policy.

After an upgrade, the graphical interface does not open automatically. Open the Cato Client manually and check that the version number matches the latest build. A successful upgrade does not display a separate completion notification. You can also run cato-sdp version to verify the installed version.

Actions for the Linux OS Client

These are the actions that you can use in the Linux Client. Precede each parameter with cato-sdp.

Parameter

Description

start

The Client connects to the Cato Cloud

stop

The Client disconnects from the Cato Cloud

help

Displays the list of available arguments

status

Displays the connectivity status

version

Display the Client version

Support

Contact Technical Support

Update

Update the Client to the latest version

import-cert

Import device certificate

Arguments for the Linux OS Client

These are the optional arguments that you can use for different features and settings when you run the Client. Each parameter should be preceded by cato-sdp start.

Parameter

Description

--address<PoP IP address>

The Client connects to a specific Cato PoP (contact Support for the specific IP address). The default behavior is that the Client automatically connects to the best PoP in the Cato Cloud.

--append {head|tail}

Preserves the existing configuration in /etc/resolv.conf.

When connected, the Client replaces /etc/resolv.conf with the DNS configuration received from Cato. Using this parameter appends the Cato configuration to the existing configuration.

  • head - adds the DNS configuration from Cato before the existing configuration, giving preference to the Cato configuration.

  • tail - adds the DNS configuration from Cato after the existing configuration, giving preference to the existing configuration. In both cases, /etc/resolv.conf is restored to its original contents on disconnection.

If Split Tunnel is enabled in the Cato Management Application, this parameter is ignored, and the Client always replaces the contents of /etc/resolv.conf

--cato-sdp support

Download Client logs or send them directly to the Technical support team.

--floglevel

--gloglevel

Sets the file (floglevel) or global (gloglevel) logging settings for the Client:

  • 0 - verbose

  • 1 - debug

  • 2 - info

  • 3 - warning

  • 4 - error

  • 5 - none

--headless

--no-sso

The Client runs in headless mode.

no-sso prompts the remote user for a password. Use this argument on a headless device in accounts with no SSO authentication configured.

--help

Shows the help screen.

--metric _metric_

The route created for VPN traffic (see --route).

If not specified, this route has the highest priority on the system (identical to specifying --metric 0).

--port

Changes the DTLS port (443 or 1337), port 443 is the default setting.

--reconn _seconds_

Following a disconnect, the number of seconds the Client waits before attempting to reconnect. The Client attempts to reconnect at this interval until a connection is established or the client is stopped externally.

If this parameter is not specified, the client attempts to reconnect once and if unsuccessful, exits immediately.

--reg_code

Uses a registration code to authenticate to the Client.

--route

A single subnet that is routed to the tunnel instead of the default route. For example: --route 10.24.0.0/16 creates a specific route so only this subnet is routed through the encrypted tunnel.

If not specified, the Client adds a default route so all traffic is routed through the VPN on the device (identical to specifying --route 0.0.0.0/0).

--user, --account, --password, --reset-password, --reset-cred

Cato user credentials. These values are optional for users that authenticate with the web browser.

password is optional. When a password is required, the user is prompted to add a new one.

reset-cred resets all the user credentials and removes the authentication token (supported on v5.0 and higher).

--use-systemd-resolv

Uses systemd-resolv (instead of editing /dev/resolv.conf directly). The values for this parameter are:

  • 1 - true

  • 0 - false (default value)

When using the --use-systemd-resolv parameter with the Client, do NOT use the append parameter.

Note: We don't recommend using the --password argument.

--version

Shows information about the Client version.

--pin

Enter a MFA code

Arguments for Client File Parameters

You can save the arguments for the Linux Client to a file, and then load the parameters when you start the Client. These are the arguments for the Client file:

Parameter

Description

--load_file_

Uses the parameter values stored in the file previously with --save.

You can override any stored setting by specifying it on the command line.

Since the credentials are also stored in this file, make sure you keep it private, as anyone can use this file to connect with the saved credentials.

Alternately, you can store an empty or incorrect password in the file and specify the correct one on the command line. For example: --load _file_ --password '******'

--save_file_

Saves all arguments passed on the command line to the given file for use with the --load parameter.

--show_file_

Displays the settings stored in the file using --save.

Arguments for Device Authentication with Certificates

This section contains arguments that are used for the Linux Clients that use Device Authentication with a device certificate. For more information, see Distributing and Installing Device Certificates.

Parameter

Description

--cert <certificate path>

Path to the certificate file for Device Authentication. The default path is: /opt/cato/client_cert/device_cert.p12

Uninstalling the Client

If you no longer need the Client on a device, you can uninstall it. Once the Client is uninstalled, there is no way for network rules or security policies to be applied to the device.

To uninstall the Client:

  1. In the terminal, run the command for the file type that was installed:

    • .rpm sudo rpm -e cato-client-install

    • .deb sudo dpkg -r cato-linux-install

  2. (Optional) After the uninstallation process is complete, remove the remaining configuration files in these locations

    • sudo rm -rf /opt/cato

    • sudo rm -rf /usr/lib/cato/

    • sudo rm -rf /var/log/cato*.log

    • sudo rm -rf ~/.cato/

  3. Reboot your device.

If you made changes to your system's network configuration during the Cato client installation, you may need to revert those changes manually.