---
title: Network Rules
slug: network-rules
createdAt: 2026-02-07T06:49:06.941Z
---

# Overview

Rules define behavior for incoming and outgoing traffic in the network, providing the functionality traditionally provided by firewalls, routers, and switches.

***

# Rule Types

### Firewall

(action = Accept / Drop / Reject)

Allows controlling the network's traffic by filtering both packets in and out - only allowing packets to pass through if matching established rules. These rules are typically related to securing the network.



### NAT / PAT

(action = Translate)

Provides Network Address/Port Translation - commonly used to conserve external/internal IP addresses by translating public addresses through to private IP addresses. NAT/PAT also allows "hiding" true addresses of network computers, with the translation of external IP/port to internal address/port.



### Static Routes

(action = Route)

Allows controlling traffic paths from the network. A common use would be to provide a default gateway which allows routing traffic out of a private network through an external network for Internet access.

***

# Order of Rules

**Rules are evaluated from top to bottom**, and the order directly affects behavior. In some cases, changing the sequence can produce different outcomes. For example, a NAT or PAT rule that translates traffic to a new port may interact differently with a rule that blocks traffic by port, depending on which one is applied first. Because of this, rule ordering should be treated as a deliberate and important part of network design.

## Modify Rule Order

Rule ordering is controlled by relative placement rather than direct repositioning. Instead of dragging a rule to a specific position, you select one or more rules and then choose which existing rule they should execute before. The system then reorders the selected rules accordingly.

1. From the **Top Menu**, click **Networks** -> **List**
2. Select the desired network
3. From the **left menu**<u>,</u> click **View**
4. From the **left menu**, click **Rules**
5. Select the desired rule
6. Determine the rule the desired rule should be moved above
7. Click the **🡐 Move** icon on the far right of the rule you wish to move



## Pin a Rule

Pinning a rule will ensure the rule is always at the top or bottom of the ruleset.

1. From the **Top Menu**, click **Networks** -> **List**
2. Select the desired network
3. From the **left menu**<u>,</u> click **View**
4. From the **left menu**, click **Rules**
5. Select the desired rule
6. From the **left menu**, click **Edit**
7. Select **Pin**
   - **Bottom** - Pin the rule to the very bottom of the ruleset
   - **No** (default) - Does not pin the rule
   - **Top** - Pin the rule to the very top of the ruleset
8. Click **Submit**

***

# Rule Fields

**Alias&#x20;**- Selects an Alias IP defined on the selected network

**Any/None** - Any source address; no filter on source addresses

**Custom&#x20;**- Provides a text input field where a specific filter can be entered

- **Individual IP Address** - 192.168.1.200
- **CIDR Network** - 10.10.4.0/27
- **IP Range** - 192.168.1.50-192.168.1.55

:::hint{type="info"}
Any specific IP address or network can be entered using the custom option; however, it's typically best to use one of the helper options to select a variable. Using a helper option rather than specifying static addresses allows the rule to continue working even when specific addresses are modified and allows for efficient cloning and recipe templates that include these network rules.
:::

**My Current IP Address** - The source IP address that is accessing the UI

**My DMZ IP** - The DMZ (external-facing) IP assigned to the selected network

**My IP Addresses** - Helper option to select an IP address defined on the selected network

**My Network Address** - Helper option to use the selected network (entire subnet)

**My Router IP** - Helper option to use the selected network's router IP (default gateway)

**Network Block** - The full IP block assigned to the selected network

**Other IP Address** - Helper option to select a different network and use one of that network's individual IP addresses

**Other Network Address** - Helper option to select a different network and use that networks (entire subnet)

**Other Network Block** - The full IP block assigned to a different network

**Other Network DMZ IP** - The DMZ (external-facing) IP assigned to another network

**Other Router IP&#x20;**- Helper option to select a different network and use that network's router IP (default gateway)



:::hint{type="info"}
Only applicable for TCP / UDP protocols
:::

**Source&#x20;**&#x6F;r **Destination Ports/Ranges** - Multiple options can be combined with commas

- **Individual Port** - 80
- **Multiple Ports** - 80,443
- **Port Range** - 1000-1005

***

# Network Rules

## Create New Rule

1. From the **Top Menu**, click **Networks** -> **List**
2. Select the desired network
3. From the **left menu**<u>,</u> click **View**
4. From the **left menu**, click **Rules**
5. From the **left menu**, click **New**
6. Enter a **Name** for the rule
7. (Optional), enter a **Description**
8. Select **Action**
   - **Accept** - allows packets that meet the rule criteria
   - **Drop** - deny packets that meet the rule criteria
   - **Reject** - deny specified packets and send ICMP destination unreachable back to the source, when permitted
   - **Route** - routes/forwards packets that meet the rule criteria
   - **Translate** - maps an address/port outside the selected network with an address/port within the selected network
9. Select **Protocol**
10. Select **Direction**
    - **Incoming** - packets coming into the firewall
    - **Outgoing** - packets going out of the firewall
11. Select **Interface** (typically **Auto**)
12. (Optional), **Pin** the rule to the top or bottom of the ruleset
13. Configure any additional options, if desired
    - **Enable Throttle** - set a traffic rate limit
    - **Track Rule Statistics** - allows viewing total number of packets processed
    - **Trace/Debug Rule** - enables tracing packets for diagnostic purposes
14. Select **Source**
    - See [Rule Fields](https://docs.korgrid.com/network-rules#rule-fields) for descriptions of each field option
15. Select **Destination**
    - See [Rule Fields](https://docs.korgrid.com/network-rules#rule-fields) for descriptions of each field option
16. Select **Target** (route and translate actions only), directs where to send the traffic
    - See [Rule Fields](https://docs.korgrid.com/network-rules#rule-fields) for descriptions of each field option
17. Click **Submit**

⚠️ Click **Apply Rules** to apply the changes.



## Copy Rule (Clone)

1. From the **Top Menu**, click **Networks** -> **List**
2. Select the desired network
3. From the **left menu**<u>,</u> click **View**
4. From the **left menu**, click **Rules**
5. Select the desired rule
6. Click the 📋 **Copy** icon on the far right of the selected line
7. Enter a **Name** for the rule
8. Modify desired fields
9. Click **Submit**

⚠️ Click **Apply Rules** to apply the changes.



## View Existing Rules

1. From the **Top Menu**, click **Networks** -> **List**
2. Select the desired network
3. From the **left menu**<u>,</u> click **View**
4. From the **left menu**, click **Rules**



## Modify Existing Rule

1. From the **Top Menu**, click **Networks** -> **List**
2. Select the desired network
3. From the **left menu**<u>,</u> click **View**
4. From the **left menu**, click **Rules**
5. Select the desired rule
6. From the **left menu**, click **Edit**
7. Modify desired settings
8. Click **Submit**

⚠️ Click **Apply Rules** to apply the changes.
