Debian Codegraph @

tests/shell/testcases/chains/0019masquerade_jump_1

raw
1 #!/bin/bash
2
3 set -e
4
5 $NFT add table t
6 $NFT add chain t input {type filter hook input priority 4 \; }
7 $NFT add chain t c1
8 $NFT add rule t input ip saddr vmap { 1.1.1.1 : jump c1 }
9
10 # kernel should return EOPNOTSUPP
11 $NFT add rule t c1 masquerade 2>/dev/null >&2 || exit 0
12 echo "E: accepted masquerade in chain from non-nat type basechain" 1>&2
13 exit 1