You can configure firewall rules when creating a new firewall or when editing an existing firewall.
If the Allow traffic option is selected, only traffic that matches the rule will be allowed. All other traffic will be blocked.
If the Deny traffic option is selected, all traffic will be allowed except traffic specified by the rules.
To create a new rule when creating a new firewall:
Choose what you want to do: allow or deny certain traffic.
Click Add Rule in the Incoming Traffic or Outgoing Traffic block.
Specify the parameters:
Subnet or address. You can specify a specific IP, subnet, or the value 0.0.0.0/0
to allow/deny all addresses and subnets, or you can select For all addresses.
Type. You can set your own rule or choose one of the ready-made types. In this case, the protocol and port will be filled in automatically.
Protocol. You can select TCP, UDP or ICMP.
Port. You can specify a port or a range of ports.
Click Add.
You can also add new rules to existing firewalls. To do this:
Go to the Networks → Firewall section.
Click on the rule group.
Click Add in the desired block.
Set the rule parameters and save the changes.
To make changes to an already created rule:
Go to the Networks → Firewall section.
Click on the rule group.
Click on the rule.
Make your edits and save the changes.
To delete a rule:
Go to the Networks → Firewall section.
Click on the rule group.
Click on the three dots next to the desired rule and click Delete rule.