Firewall Rule

The Firewall Rules tab is used to allow or deny traffic between interfaces and networks, based on IP addresses, subnets, domains, ports and protocols. Firewall rules can be added and managed from the KonnectOpen device for all licences, including Standard Router Captive. Rules can also be configured from the Kognitive Cloud portal, and the rules configured there are shown on the device.

Firewall Rules Table

  • Select the Firewall option from the side bar. The Firewall Rules tab is selected by default.

fw-oe-firewall-rules (1)-20261202-095223.png
Firewall Rules

Point to the ⓘ icon next to the Firewall title to view the description of the screen: "Control network traffic by defining allow or deny policies based on IPs, ports, and protocols."

The Firewall Rules table has the following columns:

  • Rule # – the priority of the rule. By default, the highest priority is assigned to the top rule and the priority decreases down the list.

  • Rule Name – the name of the rule.

  • Protocol – the protocol the rule applies to.

  • Source Interface, Source and Source Port – the interface, IP address or subnet, and port from which the traffic originates.

  • Destination Interface, Destination and Destination Port – the interface, IP address, subnet or domain, and port to which the traffic is sent. When a rule has multiple destination entries, they are listed in the Destination column.

  • Type – Allow or Deny.

  • Number of Flows – the number of traffic flows that matched the rule.

  • Actions – the Enable/Disable toggle, and the Edit, Clone and Delete icons.

The following options are available at the top right of the table:

  • Save Rule Order – saves the new priority of the rules after they are reordered, see section Defining New Priority of the Firewall Rules.

  • Add Firewall Rule – adds a new firewall rule, see section Adding a Firewall Rule.

Note: The Bi-Directional option is no longer available, because the Source and Destination of a rule now have different options. To allow traffic in both directions, create a rule for each direction. Uploading or downloading the complete set of firewall rules as a CSV file is not available on the device. Use the Bulk add option to add multiple destination entries to a rule.

Adding a Firewall Rule

  1. Click Add Firewall Rule at the top right of the Firewall Rules table. The Add Firewall Rule pop-up appears.

  2. In the Rule Name field, enter a unique name for the rule. The name can include alphanumeric and special characters.

  3. In Action, click Allow (default) to allow the matching traffic, or Deny to block it. The selected action is shown in the Type column of the table.

  4. To create a rule for management access to the device, select the Management Rule check box, see section Management Rule. Otherwise, leave it cleared.

  5. In the Match By list, select IP/Subnet or Domain. The fields of the pop-up change based on this selection, see the sections below.

  6. Click Save. The rule is displayed in the Firewall Rules table.

Match By IP/Subnet

Select IP/Subnet to match the traffic by IP address or subnet. In this mode, the protocol is selected together with the destination port.

fw-oe-add-rule-ip-subnet.png
Add Firewall Rule - Match By IP/Subnet

Fields

Configuration

Source – Interface

Select the source interface. All the LAN and WAN interfaces are listed. By default, All is selected.

Source – IP/Subnet

Enter the source IP address or subnet (for example, 192.168.1.10 or 192.168.1.0/24).

Source – Port

Enter the source port. Leave it as any to match all ports.

Destination – Interface

Select the destination interface. All the LAN and WAN interfaces are listed. By default, All is selected.

Destination – IP/Subnet

Enter the destination IP address or subnet.

Destination – Protocol:Port

Select the protocol from the list and enter the destination port. Leave them as any to match all protocols and ports.

Bulk add (IP/Subnet:Protocol:Port list)

To add multiple destination entries to the rule at once, click + Bulk add (IP/Subnet:Protocol:Port list). A text box opens below the link.

  1. Enter one entry per line, or separate the entries with a semicolon (;), in the format IP/Subnet:Protocol:Port. For example:

    • 10.0.1.0/24:tcp:80-443

    • 10.0.1.5:tcp:22

    • 172.16.0.0/16 (protocol and port are Any)

  2. To add the entries from a file instead, click Upload list (.csv/.txt) and select the file.

  3. Click Add to rule. The entries are added to the destination of the rule.

fw-oe-bulk-add.png
Bulk add (IP/Subnet:Protocol:Port list)

Match By Domain

Select Domain to match the traffic by the destination domain name. The pop-up shows the note "Domain match: Source is limited to LAN interfaces and Destination to WAN interfaces."

fw-oe-add-rule-domain.png
Add Firewall Rule - Match By Domain

Fields

Configuration

Protocol

Select the protocol the rule applies to. By default, any is selected.

Source – Interface

Select the source interface. Only the LAN interfaces are listed. By default, All LAN is selected.

Source – IP/Subnet

Enter the source IP address or subnet.

Source – Port

Enter the source port. Leave it as any to match all ports.

Destination – Interface

Select the destination interface. Only the WAN interfaces are listed. By default, All WAN is selected.

Destination – Domain

Enter one or more domain names, separated by commas (for example, www.example.com, example.com, api.vendor.io). Domains are matched exactly as entered. Wildcard domains (for example, *.example.com) are not supported.

To add multiple domains at once, click + Bulk add (paste or upload a list) and paste the list or upload it as a file.

Destination – Port

Enter the destination port. Leave it as any to match all ports.

Note: A domain can be used only in the Destination of a firewall rule. The Source is always an IP address or subnet.

Management Rule

A management rule allows or denies access to the device's own management pages and SSH. Earlier, a management rule was created by selecting Management in the Protocol list. It is now created with the Management Rule check box.

  1. In the Add Firewall Rule pop-up, enter the Rule Name and select the Action.

  2. Select the Management Rule check box. The Match By, Source and Destination fields are replaced by the Management Access section.

  3. In the Management Interface list, select the interface the management traffic comes in on. By default, All is selected.

  4. In the Subnet IP (optional) field, enter the source IP address or subnet the rule applies to (for example, 192.168.0.0/16). If this field is empty, the rule applies to any source.

  5. Click Save.

fw-oe-management-rule.png
Add Firewall Rule - Management Rule

When the check box is cleared, the pop-up works as a normal firewall rule.

Modifying a Firewall Rule

  1. Click the Edit (pencil) icon of the firewall rule to be modified. The rule opens in a pop-up with the same fields as the Add Firewall Rule pop-up.

  2. Modify the fields, see section Adding a Firewall Rule.

  3. Click Save.

Cloning a Firewall Rule

Click the Clone (copy) icon of a firewall rule to create a copy of it. The copy can then be modified as required.

Enabling or Disabling a Firewall Rule

By default, a firewall rule is enabled. Click the Enable/Disable toggle switch of the rule to disable it, and click it again to enable it. Confirm the action when prompted.

Deleting a Firewall Rule

Click the Delete icon of the firewall rule to be deleted, and confirm the action when prompted. The firewall rule is deleted.

Defining New Priority of the Firewall Rules

  1. Click and hold the drag icon next to the Rule # of the rule whose priority is to be changed.

  2. Drag the rule to the required position. Rules higher in the list have a higher priority.

  3. Click Save Rule Order at the top right of the table to save the new order.

Resetting the Number of Flows

Click the ⟳ (Reset) icon in the Number of Flows column header and confirm the action to reset the flow counters of all the rules.

Firewall Reports

The Firewall activity can be viewed in real time using the Firewall Reports screen in Kognitive Cloud.

  • Login to Kognitive Cloud with valid credentials.

  • Select Reports from the left menu bar.

1 (18)-20240815-143018.png
Reports - Kognitive Cloud
  • Click Firewall tab in the Reports screen.

  • The Firewall tab enables the user to view reports about the Firewall rules set for the selected organization.

  • Users can view information such as:

    • The Top Denied rule

    • The Top Allowed rule

    • Percentage of allowed and denied rules

    • The most utilized rules

    • List of all rules set for the organization

  • In the Organization field, select the Organization or sub-organization from the dropdown menu. The logged in admin Organization is populated by default here. This is the organization corresponding to the email ID used to login.

  • The dropdown list consists of all the sub-organizations under logged in admin organization.

  • Select the Sites from the dropdown menu.

  • Select the Period from the dropdown menu.

  • By default, the time interval selected is last one hr. The user can also select a custom time interval using the From and To fields.

  • The Firewall tab shows the data as shown in the below figure.

5 (2)-20240524-153152.png
Firewall
  • Click the Generate Report button to download the Firewall reports in PDF format.

Headers

The headers show the following information:

  • Top Denied - The Firewall rule that was used to deny the maximum number of packets. The Site name and number of packets is also shown.

  • Top Allowed - The Firewall rule that was used to allow the maximum number of packets. The Site name and number of packets is also shown.

image-20240524-154221.png
Headers

Firewall Actions

The Firewall Actions pie chart groups the firewall rules set by the users into Allowed and Denied categories and shows the percentage of each category. Hovering on any item on the pie chart highlights the category and shows number of rules in that category.

image-20240524-160819.png
Firewall Actions

Top Rules

The Top Rules pie chart shows the most used Firewall Rules and shows their percentage. Hovering on any item on the pie chart highlights the category and shows number of packets in that category.

image-20240524-161021.png
Top Rules

The line chart shows the amount of allowed and denied packets at different time instances. The horizontal axis contains the time instances, and the vertical axis contains the amount of packets. The graph between these two axes gives the user a clear understanding of how the firewall rules have been utilized over the selected time period.

Select the dropdown menu at the top right corner of the chart to change the time interval on the chart.

image-20240524-161433.png
Line Chart
  • All the blue highlighted text in the Firewall screen is clickable. It can be the name of a site, name of a rule, or rule category. Clicking it filters the entire screen and displays the firewall rules information corresponding only to that site, rule, or rule category.

Firewall Table

The Firewall section shows a table that lists all the rules set under the selected organization. The Table shows the following information:

  • Rule Name - Name of the rule.

  • Site Name – Name of the Site.

  • Protocol

  • Source Interface

  • Source IP Domain

  • Source Port

  • Destination Interface

  • Destination IP Domain

  • Destination Port

  • No of Packets– Total number of packets used for the rule.

  • Action – Type of rule (Allowed/Denied)

Click the Download button to download the Firewall rules data locally in CSV format.

6 (3)-20240524-162042.png
Firewall Table