diff options
author | currite <sll@disroot.org> | 2019-10-10 17:27:38 +0200 |
---|---|---|
committer | currite <sll@disroot.org> | 2019-10-10 17:27:38 +0200 |
commit | 3092fe479b533329d59df5156fee6e8ace4059ba (patch) | |
tree | b60b7414291a730a70be85b5804e2a44527154b9 | |
parent | c0f31dbdf6f5dba2182dfcb26bf1ba904506f8ff (diff) | |
download | vyos-documentation-3092fe479b533329d59df5156fee6e8ace4059ba.tar.gz vyos-documentation-3092fe479b533329d59df5156fee6e8ace4059ba.zip |
fw group names must be unique
-rw-r--r-- | docs/firewall.rst | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/firewall.rst b/docs/firewall.rst index f875ad12..f4708b2a 100644 --- a/docs/firewall.rst +++ b/docs/firewall.rst @@ -37,7 +37,7 @@ or the need to reload individual firewall rules. .. note:: Groups can also be referenced by NAT configuration. -While network groups accept IP networks in CIDR notation, specific IP addresses +While **network groups** accept IP networks in CIDR notation, specific IP addresses can be added as a 32-bit prefix. If you foresee the need to add a mix of addresses and networks, the network group is recommended. @@ -49,7 +49,15 @@ internal network: set firewall group network-group NET-INSIDE network 192.168.0.0/24 set firewall group network-group NET-INSIDE network 192.168.1.0/24 -A port group represents only port numbers, not the protocol. Port groups can +Groups need to have unique names. Even though some contain IPv4 addresses and others contain IPv6 addresses, they still need to have unique names, so you may want to append "-v4" or "-v6" to your group names. + +.. code-block:: sh + + set firewall group network-group NET-INSIDE-v4 network 192.168.1.0/24 + set firewall group ipv6-network-group NET-INSIDE-v6 network 2001:db8::/64 + + +A **port group** represents only port numbers, not the protocol. Port groups can be referenced for either TCP or UDP. It is recommended that TCP and UDP groups are created separately to avoid accidentally filtering unnecessary ports. Ranges of ports can be specified by using `-`. |