Firewall marks
Firewall marks tag the packets that match a given set of ports and protocols with a mark number, so that the traffic can be handled as a group. The mark is used as a match condition in routing - both Local Routes and Policy Based Routing (PBR) routes offer a Match firewall mark field.
Firewall marks are not used to define a service. To load balance several ports as a single service, for example HTTP on port 80 and HTTPS on port 443, specify all of the ports on the service’s frontend instead - see Layer 4 Services and Layer 7 Services.
The Firewall marks list shows the following information for each mark:
| Column | Description |
|---|---|
Name |
The name of the firewall mark. |
Number |
The mark value applied to matching packets. |
Usage |
Whether the mark is currently referenced by any other object, with |
To add a firewall mark:
-
Using the WebUI, navigate to Network > Firewall marks and click Add firewall mark.
-
Specify a relevant Name.
-
Specify the Number - the firewall mark value to apply to matching packets.
-
Select the required Protocol, the options are None, TCP, UDP and TCP + UDP. Selecting any option other than None reveals additional Source port(s) and Destination port(s) sections.
-
In each of those sections, choose how the ports are matched. Individual port(s) and Port range(s) are checkboxes, and each one enables its own fields:
-
Individual port(s) is selected by default, and its first Port field is pre-filled with 80 - change it as required, and click Add another for each further port.
-
Port range(s) reveals From and To fields when it is selected. From is pre-filled with the next port after the individual port above it, and To shows the lowest value it will accept. Click Add another for each further range.
-
-
Configure the traffic to match. At least one source or destination IP/subnet, or a source or destination port with a protocol other than None, is required. For each IP/subnet, select the Type and specify the Value:
Type Value Manual IP
A single IP address entered manually.
Manual Subnet
A subnet in CIDR notation entered manually.
Floating IP
An existing Floating IP, selected from a drop-down.
IP Group (Subnet)
An existing IP group, selected from a drop-down.
-
To match on more than one address, click Add another under the relevant section. To remove an entry, click Delete.
-
Click Submit.
The Firewall marks list shows each mark’s Name, its Number and its Usage - the objects that reference it. The Usage column is blank for a mark that is not referenced.
To change or remove a mark, click the Actions menu at the end of its row and choose:
-
Duplicate - opens the Add firewall mark page pre-filled with a copy of the mark’s settings, named
<mark name> (duplicate). Nothing is saved until Submit is clicked. -
Edit - reopens the mark so that any of its settings can be changed.
-
Delete - removes the mark.