Debian Codegraph @

tests/shell/testcases/chains/0007masquerade_1

raw
1 #!/bin/bash
2
3 set -e
4
5 $NFT add table t
6 $NFT add chain t c1 {type filter hook output priority 0 \; }
7
8 # wrong hook output, only postrouting is valid
9 $NFT add rule t c1 masquerade 2>/dev/null || exit 0
10 echo "E: accepted masquerade in output hook" >&2
11 exit 1