Creating policies for Linux endpoints

Create Linux firewall management policies to manage firewall settings on Linux endpoints.

Create the policy

  1. From the Main menu, go to Modules > Enforce > Policy Configurations > Create.
  2. Specify a Name and optional Description.
  3. Click Select Types.
  4. Select Linux as the Platform for the endpoints that you want to target with the policies.
  5. Select Firewall Management - Linux as the policy type.
    Note: Only Windows policies can include more than one policy type.
  6. Click Confirm.
  7. If you do not want to use the default content set for the policy, select a Content Set.

    Every policy requires a content set. The content set is configured by default to the platform for the selected policy types, provided that you have the necessary permissions for that content set. If no content set is available, you might need additional permissions. For more information, see Managing access to content through content sets.

  8. In the Default Chain Policies section, select Accept or Drop for the Input, Output, and Forward fields.
  9. In the Default Rules section, view the default input, output, and forward rules. You cannot edit these defaults.
  10. (Optional) To create a new Linux firewall rule, click Add Rule in the Firewall Rules section.

    Complete the following fields for the firewall rule:

    Field

    Description

    Name

    Enter a brief name for the rule.

    Table

    Filter is the only supported table at this time.

    Chain

    Select Input, Output, or Forward to specify where in a packet's delivery path a rule is evaluated.

    Target

    Select one of the following options:

    Accept: Allows the packet.

    Drop: Drops the packet.

    Queue: Pass the packet to userspace.

    Reject: Send a response back and drop the packet.

    Important: Ensure that rule configurations are supported by the Linux distributions and versions on endpoints where the policy is enforced. For example, the Queue target is not supported by default on RHEL and CentOS 7 and later. Refer to the documentation for a specific distribution and firewall for information about supported configurations.

    Network Protocol

    (Optional) Select the protocol of the rule or of the packet to check. The specified protocol can be one of the predefined options or it can be a numeric value, representing one of these protocols or a different one. Protocol all is the default when this option is omitted.

    Select the Inverse option to include everything except for the selected protocol.

    State

    (Optional) Select one of the following options:

    • New: The packet has started a new connection.

    • Established: The packet is associated with a connection which has seen packets in both directions.

    • Related: The packet is starting a new connection, but is associated with an existing connection.

    • Invalid: The packet could not be identified for some reason.

    Source Address

    (Optional) A comma separated list of network names, IP addresses with masks, plain IP addresses, or IP address ranges.

    Select the Inverse option to include everything except for addresses you entered.

    Destination Address

    (Optional) A comma separated list of network names, IP addresses with masks, plain IP addresses, or IP address ranges.

    Select the Inverse option to include everything except for addresses you entered.

    Optional fields that might appear depending on choices you make for some of the fields above:

    Source port(s)

    A comma separated list of ports or port ranges. If you are specifying port ranges, use a colon as a delimiter.

    Destination ports(s)

    A comma separated list of ports or port ranges. If you are specifying port ranges, use a colon as a delimiter.

    In Interface

    Name of an interface by which a packet was received.

    Out Interface

    Name of an interface by which a packet is going to be sent.

    Note: Depending on the choices you make for the Chain, Target, and Network Protocol fields, additional optional fields might appear that you can complete.
  11. Click Add Rule to add additional rules as necessary.
  12. (Optional) To Import Linux firewall rules from Tanium endpoints, click Import > Import Rules from Tanium endpoints in the Firewall Rules section.
    Note: Some rules might specify rule not supported. in the Table column, which means that Enforce does not support this rule. In this scenario, the rule configuration shows in the Table field so that you can configure it manually if needed.
    1. In the Import Rules from Tanium Endpoints window, select a Computer Group or Computer Name and select the existing rules on Tanium Client managed endpoints that you want to import.
    2. Click Import Rules.
Enforce the policy to apply the settings to targeted endpoints. Enforce all policies except remediation policies from the Enforcements tab of the Policy Configurations page. For more information, see Enforcing policies.
Note: Enforce remediation policies from the Enforcements tab of the Device Actions page. For more information, see Managing device actions.