Network Rules
Create and manage VergeOS network rules for firewall filtering, NAT/PAT translation, and static routing, including rule ordering, modification, and copying.
Rules define behavior for incoming and outgoing traffic in a 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 input and output packets - 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 which can also provide security aspects.
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 processed from the top of list to the bottom. There are situations where the order in which rules are processed can change behavior For example: a NAT/PAT rule to translate incoming traffic to a different port, while another rule that blocks traffic based on port; there could be different results depending upon which rule runs before the other. Therefore, it may be important to consider the order of your network rules. See the instructions below to Change the Order of Rules.
View Existing Rules for a Network
A network's rules can be accessed by:
From the network's dashboard, click Rules. All existing rules for the network are listed.
!!! success "To access a particular network's dashboard: Navigate to Networks > List-OR- Navigate to Networks > Dashboard, click on the network-type card (Externals/Internals/Tenants/VPN) , locate and double-click the target network in the list.
For long rule lists, it may be helpful to filter the list (e.g. display Incoming only; only Reject rules, etc) or search on specific criteria such as Name, assigned IP, etc.
Create a New Firewall Rule (to explicitly allow or deny particular traffic)
From the network's dashboard, click Rules.
Click New on the left menu.
Enter a Name for the new rule. (Name should be something helpful for future administration.)
Optionally enter a Description for the rule.
Select Accept/Drop/Reject from the Action dropdown list.
Accept: allow packets through that meet the defined criteria
Drop: do not allow packets that meet the defined criteria
Reject: do not allow specified traffic and send ICMP destination unreachable back to the source, when permitted
Optionally specify the Connection Tracking State
Select Protocol from the Protocol dropdown list. (ANY option will apply this rule to all protocols.)
Select Incoming or Outgoing from the Direction dropdown list.
Select a specific Interface or Any from the Interface dropdown menu.
Optionally pin the rule to the Top or Bottom of the rules list.
Select Enable Throttle to set a traffic rate limit.
The Track Rule Statistics checkbox can be selected to amass totals of the traffic that is processed through this rule. See Tracking Network Statistics for more information.
Select Trace/Debug Rule to be able to trace packets for diagnostic purposes.
Select Source (where traffic comes from) and Destination (where traffic is addressed to go) and Target (target IP for Route and Translate Actions) from the dropdown list:
Alias: to select an Alias IP defined on this network
Any/None: any source address; no filter on source address
Custom: provides a text input field where a specific filter can be entered. Custom entries can include individual IP address(ex: 192.168.1.200), CIDR network(ex: 10.10.4.0/28), or IP range(ex: 192.168.1.50-192.168.1.100)
My IP Addresses: helper option to select an IP address defined on this network (from virtual IPs, static IPs, IP Aliases)
Default: (destination/route rule) - helper option, defines default route
My Network Address: helper option, to use this network (entire segment)
My Router IP: helper option to use this network's IP address (single IP address)
Other IP Address: helper option, to select a different network and one of that network's particular addresses
Other Network Address: helper option, to select a different network and use that network's address (entire segment)
Other Router IP: helper option, to select a different network and use that network's IP address (single IP address)
Other Network DMZ IP: helper option, to select the DMZ IP address of another network
Click Submit to save the new rule.
Create a Route or Translate (NAT/PAT) Rule
From the network's dashboard, click Rules on the left menu.
Click New on the left menu.
Enter a Name for the new rule. (Name should be something helpful for future administration.)
Select Route or Translate from the Action dropdown list:
Route: to define a routing rule
Translate: to define a rule that maps an address/port outside this network with an address/port within this network
Select Protocol from the Protocol dropdown list to apply this rule only to specific protocols. Select ANY to apply this rule to all protocols
Select Direction from the Direction dropdown list (Incoming or Outgoing)
Optionally pin the rule to the Top or Bottom of the rules list.
The Track Rule Statistics checkbox can be selected to amass totals of the traffic that is processed through this rule. See Tracking Network Statistics for more information.
Select Trace/Debug Rule to be able to trace packets for diagnostic purposes.
Select Source (where traffic comes from), Destination (where traffic is addressed to go), and Target (where to actually direct the traffic):
Alias: to select an Alias IP defined on this network
Any/None: any source address; no filter on source address
Custom: provides a text input field where a specific filter can be entered (individual IP address; CIDR network, IP range) ex: 192.168.0.55; 10.10.10.0/24; 192.168.0.20-192.168.0.30
Default: (destination/route rule) - defines default route
My IP Addresses: to select an IP address defined on this network (from virtual IPs, static IPs, IP Aliases)
My Network Address: to use this network (entire segment)
My Router IP: to use this network's IP address (single IP address)
Other IP Address: to select a different network and one of that network's particular addresses
Other Network Address: to select a different network and use that network's address (entire segment)
Other Router IP: to select a different network and use that network's IP address (single IP address)
Other Network DMZ IP: to select the DMZ IP address of another network
Specify ports/ranges in Source/Destination/Target Ports/Ranges (only applies to TCP/UDP protocols). Ports can be individual ports (with multiple individual ports separated by commas ex: 8080,8088) and port ranges ex: 1000-1005
Click Submit to save the new rule.
Create a New Rule Based on an Existing Rule
From the network's dashboard, click Rules.
Select the rule from the list and click the copy icon on the far right of the selected line.
The new rule Name will default to the name of the source rule with "(copy)" appended to the end. Change the name to something helpful for future administration.
Fields are pre-populated with the values of the source rule, alter as needed for the new rule.
When fields are changed as needed, click Submit to save the new rule.
Modify Existing Network Rule
From the network's dashboard, click Rules.
Select the rule from the list and click Edit on the left menu.
Make changes and click Submit.
Click Apply Rules on the left menu to put the change into effect.
Pin a Firewall Rule to Top or Bottom
Rule processing order is from top to bottom
From the network's dashboard, click Rules.
Select the rule to pin.
Click Edit on the left.
In the Pin field, select Top (to pin to the top of the un-pinned list) or Bottom (to pin to the very end of the list)
Click Submit to save the change.
A right-side-up pin icon indicates the rule is pinned to the top
An upside-down pin icon indicates the rule is pinned to the bottom

Change the Order of Rules
Rule processing order is from top to bottom
From the network's dashboard, click Rules.
Select the rule(s) to move up in the list. (Make sure the desired rules are checked on the left.)
Determine the rule the selected ones should be moved above (meaning the selected rules should execute before this one) and click the move icon on that line. The selected rules are moved up the list.
Continue this process until all are in the desired sequence.
Click Apply Rules on the left menu to put the changes into effect.
Last updated
Was this helpful?