diff options
author | Phil Sutter <phil@nwl.cc> | 2024-07-26 20:05:48 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2024-07-31 23:13:55 +0200 |
commit | 95cdf550cf1c8dfba4fd7af19e5cadc10daead9f (patch) | |
tree | 5273fb7f78983cd03ef7a4f58020cdb4fa8e6fba /extensions | |
parent | 25d4d341af5972b5560b31fa5dea72de057cb430 (diff) |
xshared: Do not omit all-wildcard interface spec when inverted
The rule parses correctly, but the (never matching) part is lost on
output.
Looks like a day-1 bug, make it fix the change after which it applies
cleanly.
Fixes: b2197e7834f77 ("xshared: Entirely ignore interface masks when saving rules")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/iptables.t | 2 | ||||
-rw-r--r-- | extensions/libarpt_standard.t | 2 | ||||
-rw-r--r-- | extensions/libebt_standard.t | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/extensions/iptables.t b/extensions/iptables.t index 5d6d3d15..2817c3fb 100644 --- a/extensions/iptables.t +++ b/extensions/iptables.t @@ -4,6 +4,8 @@ -i eth+ -o alongifacename+;=;OK ! -i eth0;=;OK ! -o eth+;=;OK +-i + -j ACCEPT;-j ACCEPT;OK +! -i +;=;OK -c "";;FAIL -c ,3;;FAIL -c 3,;;FAIL diff --git a/extensions/libarpt_standard.t b/extensions/libarpt_standard.t index 15354090..d6eaced3 100644 --- a/extensions/libarpt_standard.t +++ b/extensions/libarpt_standard.t @@ -9,6 +9,8 @@ -j ACCEPT ! -i lo;=;OK -i ppp+;=;OK ! -i ppp+;=;OK +-i + -j ACCEPT;-j ACCEPT;OK +! -i +;=;OK -i lo --destination-mac 11:22:33:44:55:66;-i lo --dst-mac 11:22:33:44:55:66;OK --source-mac Unicast;--src-mac 00:00:00:00:00:00/01:00:00:00:00:00;OK ! --src-mac Multicast;! --src-mac 01:00:00:00:00:00/01:00:00:00:00:00;OK diff --git a/extensions/libebt_standard.t b/extensions/libebt_standard.t index 3f1a459c..4cf1f4cf 100644 --- a/extensions/libebt_standard.t +++ b/extensions/libebt_standard.t @@ -17,8 +17,10 @@ --logical-out br1;=;FAIL -i + -d 00:0f:ee:d0:ba:be;-d 00:0f:ee:d0:ba:be;OK -i + -p ip;-p IPv4;OK +! -i +;=;OK --logical-in + -d 00:0f:ee:d0:ba:be;-d 00:0f:ee:d0:ba:be;OK --logical-in + -p ip;-p IPv4;OK +! --logical-in +;=;OK :FORWARD -i foobar;=;OK -o foobar;=;OK |