Cato Networks Knowledge Base

Configuring Network Rules

This article discusses how to use the Network Rules screen to manage and prioritize traffic in your account.

For more about network rules and Cato, see What is the Cato Network Rulebase.

Working with Multiple Objects in a Single Rule

The Source, App/Category and Destination columns form an AND relationship: the rule is triggered only if traffic matches the criteria defined in all three columns.

When there are multiple items within one column, there is an OR relationship: the rule is applied if traffic matches the criteria defined for any of the items. For example, a rule that defined App/Category as TCP with port 443, this rule matches all TCP traffic OR traffic that uses port 443 both TCP and UDP.

Creating a Network Rule

Network rules are evaluated according to their order of appearance in the network rules list, the best practice is to scroll through the list to the required position of the new rule and add it above or below an existing rule. Alternately, you can add a new rule to the end of the list and move it to the required position.

When you configure the Source (traffic type) for a network rule you can use global objects, such as application categories or global ranges, to define the type of traffic that matches the rule.

Note

Note: Selecting Any as the source for a rule, routes all traffic and can cause unpredictable performance.

NetworkRules.png

To create a WAN or Internet network rule:

  1. From the navigation menu, click Network > Network Rules.

  2. Click New. The Add Network Rule panel opens.

  3. From the General section, configure the following settings for the rule:

    1. Enter the Name for the rule.

    2. In the Rule Type drop-down menu, select if this rule is for WAN or Internet traffic.

    3. Enable or disable the rule using the slider (green is enabled, grey is disabled).

    4. Configure the Rule Order which defines where the rule appears in the network rule base.

      New rules are added to the bottom of the rulebase. You can change the order in which this rule is applied.

  4. Expand the Source section and select one or more objects for the traffic source for this rule (or you can enter an IP address).

    1. Select the type (for example: Host, Network Interface, IP, IP Range, or Any). The default value is Any.

    2. When needed, select a specific object from the drop-down list for that type.

  5. For WAN traffic rules, expand the Destination section and select one or more objects for the traffic destination for this rule.

  6. Expand the App/Category section and select one or more applications for the rule.

    When there is more than one App/Category object in a rule, there is an OR relationship between them. The default value is Any.

  7. In the Configuration section, you can configure the following settings for the network rule:

  8. Click Apply. The panel closes and the settings are updated in the rulebase.

  9. Click Save. The new network rule is saved.

Changing the Bandwidth Priorities (QoS) for a Rule

By default, new rules are assigned the default priority, which you can change according to the QoS needs of your network.

The lower the priority number, the higher the QoS priority for the rule. For example, a rule with priority 10, has a higher QoS priority than a rule with priority 40.

For more about defining the bandwidth policies for your account, see Configuring Bandwidth Management Profiles.

To change the bandwidth priority for a rule:

  1. From the navigation menu, click Network > Network Rules.

  2. Click the network rule. The Edit Network Rule panel opens.

  3. Expand the Configuration section.

  4. In the Bandwidth Management section, from the Bandwidth Priority drop-down menu, select the QoS priority for this rule.

  5. Click Apply. The panel closes and the settings are updated in the rulebase.

  6. Click Save. The bandwidth priority for the rule is saved.

Configuring the Transport and Routing Options

This section explains how to configure the transport options for a network rule and to egress traffic to a specific location or IP address.

Customizing the Transport Options for a Rule

Network Rules are configured globally. If a specific site does not have the specified transport, Cato Socket treats such a configuration as if was configured for Automatic.

If you select explicit transports/NICs, the QoS engine monitors packet loss, jitter and latency. if congestion occurs, packets are dropped. If you select automatic transports, the QoS engine monitors congestion in addition to packet loss, jitter and latency.

Alt-WAN isn’t supported for Off-Cloud as a secondary transport. You can’t configure a network rule with Alt-WAN as the primary transport that fails over to Off-Cloud.

TransportOptions.png
  • WAN rules have the following default settings:

    • Primary Transport: Cato.

    • Secondary Transport: Automatic (accounting for additional transports such as MPLS, if applicable).

    • Primary Interface Role: Automatic.

    • Secondary Interface Role: None (disabled as handled by the Automatic setting for Primary NIC).

    • Route/NAT: - (not applicable for WAN rules).

  • Internet rules have the following default settings:

    • Primary Transport: Cato.

    • Secondary Transport: None (other transports cannot be currently used).

    • Primary Interface Role: Automatic.

    • Secondary Interface Role: None (disabled as handled by the Automatic setting for Primary NIC).

    • Route/NAT: None.

To customize the transport options for a network rule:

  1. From the navigation menu, click Network > Network Rules.

  2. Click the network rule. The Edit Network Rule panel opens.

  3. Expand the Configuration section.

  4. Configure the transport fields as required: to route traffic via a specific transport, you can configure your primary and secondary transports.

    The primary transport will be used as long as it is up and available as determined by the Cato QoS engine. If the primary transport is not available, the secondary transport is used.

  5. Configure the Interface Role fields (applicable only for traffic routed via Cato Cloud) as required.

    To route traffic via a specific link, you can configure your primary and secondary NICs. The primary Interface Role will be used as long as it is up and available as determined by the Cato QoS engine. If the primary Interface Role is not available, the secondary Interface Role is used.

  6. Click Apply. The panel closes and the settings are updated in the rulebase.

  7. Click Save. The transport options for the rule are saved to the account.

Setting the Routing Method for an Internet Network Rule

You can configure an Internet network rule with different options to egress the traffic.

  • Route via - Allows you to select the egress PoP location from which the traffic will be sent to the Internet

  • NAT - Allows you to egress the traffic using one fo the allocated public IP address for your account

    For more information, see Allocating IP Addresses for the Account.

  • Backhaul via - Egresses the Internet traffic via one or backauling gateway sites

    For more information, see .

Routing Method NAT - Preserving the Source Port

By default the when the PoP performs NAT on the Internet traffic, it modifies the source port and source IP in the IP header. In some cases, an application requires preserving the original source port in the IP header, for example SIP traffic. When you select the Preserve source port option, the PoP preserves the original source port in the translated packet's IP header.

Routing_Method_Preserve_Source_Port.png

To set the Routing Method for an Internet network rule:

  1. From the navigation menu, click Network > Network Rules.

  2. Click the network rule. The Edit Network Rule panel opens.

  3. Expand the Configuration section.

  4. From the Route/NAT drop-down menu, then select the routing option for traffic that matches the rule:

    • Route Via - to route traffic via a specific Cato Cloud PoP location, enter the click Domain_plus.png and select the locations that you are egressing traffic from.

    • NAT - to egress traffic for this rule via a specific IP, click Domain_plus.png and select the allocated IPs that you are egressing traffic from.

  5. (Optional) To use the original source port for the translated traffic, select Preserve source port.

  6. Click Apply. The panel closes and the settings are updated in the rulebase.

  7. Click Save. The routing options for the rule are saved.

Customizing the Acceleration & Optimization for a Rule

  • TCP acceleration does not affect non-TCP traffic (UDP-based traffic) that is part of a network rule.

  • When Route/NAT settings or TLS inspection is in effect, it implies that Cato enables TCP proxy on the traffic.

  • The implicit network default rule for the Cato Cloud is to act as a TCP proxy. As such, if no prior rule matched the traffic, the TCP proxy is applied.

  • TCP Acceleration is disabled (grayed out) for rules that use Alternative WAN as the primary or secondary transport.

For more about accelerating traffic in the Cato Cloud, see .

For more about packet loss mitigation, see Packet Loss Mitigation for Multi-Tunnel Links.

To set the acceleration and optimization for a rule:

  1. From the navigation menu, click Network > Network Rules.

  2. Click the network rule. The Edit Network Rule panel opens.

  3. Expand the Configuration section.

  4. Select Active TCP Acceleration to enable the PoP to act as a TCP proxy server for traffic that matches this rule.

  5. Select Packet Loss Mitigation, to enable packet duplication to help mitigate the impact of packet loss for traffic that matches this rule.

  6. Click Apply. The panel closes and the settings are updated in the rulebase.

  7. Click Save. The acceleration and optimization settings are saved.

Adding an Exception

You define traffic that is an exception for the network rule and the rule is not applied to the exception. Define the traffic exception with the object (entity) for the Source, App/Category, and Destination. Exceptions with multiple objects have the same behavior as network rules, see above Working with Multiple Objects in a Single Rule.

NetworkRuleExceptions.png

The example above has a network rule for any traffic that matches the VoIP Video category. There is an exception for this rule for traffic that matches BOTH of these conditions:

  • Source is the sample 1500 site

  • Application is Skype and MS Teams

To add an exception to a network rule:

  1. From the navigation menu, click Network > Network Rules.

  2. Click the network rule. The Edit Network Rule panel opens.

  3. Expand the Source, App/Category or Destination section, and click Add Exceptions.

    Network_Source_Exception.png
  4. Define the exceptions for the section:

    1. From the drop-down menu, select the traffic type for the exception.

      The screenshot above, shows adding an exception for a specific host.

    2. Select a specific object from the drop-down list for that type.

    3. Repeat the previous two steps to define additional objects for the exception.

      Multiple objects in one section have an OR relationship.

  5. If necessary, repeat step 4 to define exceptions for the other sections.

    Objects in multiple sections have an AND relationship.

  6. Click Apply. The panel closes and the settings are updated in the rulebase.

  7. Click Save. The exceptions for the rule are saved.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.