diff options
author | Florian Westphal <fw@strlen.de> | 2018-11-02 16:24:24 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-11-03 20:35:22 +0100 |
commit | cd90cef0c18a996f499c9e31fff7ee0554fe39f9 (patch) | |
tree | 225135e843d91e321e5de74af0c97e4765204188 /extensions/libebt_dnat.t | |
parent | fd95f1f0223f8e2ecf91aa8d1a4ba84576861082 (diff) |
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 <fw@strlen.de>
Diffstat (limited to 'extensions/libebt_dnat.t')
-rw-r--r-- | extensions/libebt_dnat.t | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/libebt_dnat.t b/extensions/libebt_dnat.t new file mode 100644 index 00000000..42f9bff2 --- /dev/null +++ b/extensions/libebt_dnat.t @@ -0,0 +1,5 @@ +:PREROUTING +*nat +-i someport -j dnat --to-dst de:ad:0:be:ee:ff;-i someport -j dnat --to-dst de:ad:0:be:ee:ff --dnat-target ACCEPT;OK +-j dnat --to-dst de:ad:0:be:ee:ff --dnat-target ACCEPT;=;OK +-j dnat --to-dst de:ad:0:be:ee:ff --dnat-target CONTINUE;=;OK |