summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-10-10 18:31:17 +0200
committerGitHub <noreply@github.com>2019-10-10 18:31:17 +0200
commit07895e538741236ef3b727a7b7edff3842eba619 (patch)
treee85f3e883b011743b9e97db481ec13d8e419fb3d
parentc88ce1264a416ffa5793503605f2c793ed6e8dd3 (diff)
parent3092fe479b533329d59df5156fee6e8ace4059ba (diff)
downloadvyos-documentation-07895e538741236ef3b727a7b7edff3842eba619.tar.gz
vyos-documentation-07895e538741236ef3b727a7b7edff3842eba619.zip
Merge pull request #127 from currite/note-on-v4v6-groups
fw group names must be unique
-rw-r--r--docs/firewall.rst12
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 `-`.