summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/snat.t
blob: 7281bf5fa7e0affb838114a90d7be84416afb53c (plain)
1
2
3
4
5
6
7
8
9
10
:postrouting;type nat hook postrouting priority 0

*ip;test-ip4;postrouting

iifname "eth0" tcp dport 80-90 snat to 192.168.3.2;ok
iifname "eth0" tcp dport != 80-90 snat to 192.168.3.2;ok
iifname "eth0" tcp dport {80, 90, 23} snat to 192.168.3.2;ok
iifname "eth0" tcp dport != {80, 90, 23} snat to 192.168.3.2;ok

iifname "eth0" tcp dport != 23-34 snat to 192.168.3.2;ok