summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/snat.t
blob: 1caf7c76bee441f92b7f4b18d42d0f11207a886f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
*ip;test-ip4
:postrouting;type nat hook postrouting priority 0

iifname "eth0" tcp dport 80-90 snat 192.168.3.2;ok
iifname "eth0" tcp dport != 80-90 snat 192.168.3.2;ok
iifname "eth0" tcp dport {80, 90, 23} snat 192.168.3.2;ok
- iifname "eth0" tcp dport != {80, 90, 23} snat 192.168.3.2;ok
- iifname "eth0" tcp dport != {80, 90, 23} snat 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 snat 192.168.3.2;ok