From cd90cef0c18a996f499c9e31fff7ee0554fe39f9 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 2 Nov 2018 16:24:24 +0100 Subject: ebtables: relax -t table restriction, add snat/dnat test cases Its artificial and prevents test cases that need to add rules to a different table from working. The test script generates: -A PREROUTING -t nat ... which works fine for iptables and ip6tables. Just accept it for ebtables too and add test cases for snat and dnat. Signed-off-by: Florian Westphal --- extensions/libebt_snat.t | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 extensions/libebt_snat.t (limited to 'extensions/libebt_snat.t') diff --git a/extensions/libebt_snat.t b/extensions/libebt_snat.t new file mode 100644 index 00000000..bb42e758 --- /dev/null +++ b/extensions/libebt_snat.t @@ -0,0 +1,4 @@ +:POSTROUTING +*nat +-o someport -j snat --to-source a:b:c:d:e:f;-o someport -j snat --to-src a:b:c:d:e:f --snat-target ACCEPT;OK +-o someport+ -j snat --to-src de:ad:0:be:ee:ff --snat-target CONTINUE;=;OK -- cgit v1.2.3