tests/shell/testcases/chains/0009masquerade_jump_1
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | $NFT add table t |
| 6 | $NFT add chain t output {type nat hook output priority 0 \; } |
| 7 | $NFT add chain t c1 |
| 8 | $NFT add rule t c1 masquerade |
| 9 | |
| 10 | # kernel should return EOPNOTSUPP |
| 11 | $NFT add rule t output tcp dport vmap {1 :jump c1 } 2>/dev/null || exit 0 |
| 12 | echo "E: accepted masquerade in output hook in a vmap" >&2 |
| 13 | exit 1 |