|
|
3730f4 |
From d58192a8d2810271d5c6525dc66ba1e1ec3fd2b7 Mon Sep 17 00:00:00 2001
|
|
|
3730f4 |
From: Phil Sutter <psutter@redhat.com>
|
|
|
3730f4 |
Date: Wed, 12 Feb 2020 22:39:44 +0100
|
|
|
3730f4 |
Subject: [PATCH] doc: nft.8: Mention wildcard interface matching
|
|
|
3730f4 |
|
|
|
3730f4 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1763652
|
|
|
3730f4 |
Upstream Status: nftables commit 03d45ad330a25
|
|
|
3730f4 |
|
|
|
3730f4 |
commit 03d45ad330a25323610648bb05f550e0fb9d65b2
|
|
|
3730f4 |
Author: Phil Sutter <phil@nwl.cc>
|
|
|
3730f4 |
Date: Thu Feb 6 12:24:51 2020 +0100
|
|
|
3730f4 |
|
|
|
3730f4 |
doc: nft.8: Mention wildcard interface matching
|
|
|
3730f4 |
|
|
|
3730f4 |
Special meaning of asterisk in interface names wasn't described
|
|
|
3730f4 |
anywhere.
|
|
|
3730f4 |
|
|
|
3730f4 |
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
|
3730f4 |
---
|
|
|
3730f4 |
doc/primary-expression.txt | 7 +++++++
|
|
|
3730f4 |
1 file changed, 7 insertions(+)
|
|
|
3730f4 |
|
|
|
3730f4 |
diff --git a/doc/primary-expression.txt b/doc/primary-expression.txt
|
|
|
3730f4 |
index 5473d59..a5cab9d 100644
|
|
|
3730f4 |
--- a/doc/primary-expression.txt
|
|
|
3730f4 |
+++ b/doc/primary-expression.txt
|
|
|
3730f4 |
@@ -36,6 +36,13 @@ add such a rule, it will stop matching if the interface gets renamed and it
|
|
|
3730f4 |
will match again in case interface gets deleted and later a new interface
|
|
|
3730f4 |
with the same name is created.
|
|
|
3730f4 |
|
|
|
3730f4 |
+Like with iptables, wildcard matching on interface name prefixes is available for
|
|
|
3730f4 |
+*iifname* and *oifname* matches by appending an asterisk (*) character. Note
|
|
|
3730f4 |
+however that unlike iptables, nftables does not accept interface names
|
|
|
3730f4 |
+consisting of the wildcard character only - users are supposed to just skip
|
|
|
3730f4 |
+those always matching expressions. In order to match on literal asterisk
|
|
|
3730f4 |
+character, one may escape it using backslash (\).
|
|
|
3730f4 |
+
|
|
|
3730f4 |
.Meta expression types
|
|
|
3730f4 |
[options="header"]
|
|
|
3730f4 |
|==================
|
|
|
3730f4 |
--
|
|
|
252916 |
2.31.1
|
|
|
3730f4 |
|