diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-07-28 20:03:53 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-18 03:14:57 +0200 |
commit | 850f0a56b6ad625d6c5d8ba28ec4f55ec02ff2a7 (patch) | |
tree | 6c6f18f7db5d12ed118ecca86deb40a763aaafa6 /tests/py/ip/dnat.t | |
parent | 788c986343bc24bd0272e8aa409121ffe51f1ef3 (diff) |
src: add 'to' for snat and dnat
This is extra syntaxtic sugar to get this consistent with other
statements such as redirect, masquerade, dup and fwd that indicates
where to go.
Existing syntax is still preserved, but the listing shows the one
including 'to'.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/dnat.t')
-rw-r--r-- | tests/py/ip/dnat.t | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/py/ip/dnat.t b/tests/py/ip/dnat.t index 28e658d3..d1ffdd71 100644 --- a/tests/py/ip/dnat.t +++ b/tests/py/ip/dnat.t @@ -2,15 +2,15 @@ *ip;test-ip4;prerouting -iifname "eth0" tcp dport 80-90 dnat 192.168.3.2;ok -iifname "eth0" tcp dport != 80-90 dnat 192.168.3.2;ok -iifname "eth0" tcp dport {80, 90, 23} dnat 192.168.3.2;ok -- iifname "eth0" tcp dport != {80, 90, 23} dnat 192.168.3.2;ok -- iifname "eth0" tcp dport != {80, 90, 23} dnat 192.168.3.2;ok +iifname "eth0" tcp dport 80-90 dnat to 192.168.3.2;ok +iifname "eth0" tcp dport != 80-90 dnat to 192.168.3.2;ok +iifname "eth0" tcp dport {80, 90, 23} dnat to 192.168.3.2;ok +- iifname "eth0" tcp dport != {80, 90, 23} dnat to 192.168.3.2;ok +- iifname "eth0" tcp dport != {80, 90, 23} dnat to 192.168.3.2;ok # BUG: invalid expression type set # nft: src/evaluate.c:975: expr_evaluate_relational: Assertion '0' failed. -iifname "eth0" tcp dport != 23-34 dnat 192.168.3.2;ok +iifname "eth0" tcp dport != 23-34 dnat to 192.168.3.2;ok -dnat ct mark map { 0x00000014 : 1.2.3.4};ok -dnat ct mark . ip daddr map { 0x00000014 . 1.1.1.1 : 1.2.3.4};ok +dnat to ct mark map { 0x00000014 : 1.2.3.4};ok +dnat to ct mark . ip daddr map { 0x00000014 . 1.1.1.1 : 1.2.3.4};ok |