| 1 | #!/bin/bash |
| 2 | |
| 3 | $NFT add table t || exit 1 |
| 4 | $NFT add chain t c || exit 1 |
| 5 | $NFT add rule t c 'ip saddr 01 continue comment "0.0.0.1"' || exit 1 |
| 6 | $NFT add rule t c 'ip saddr 08 continue comment "error"' && { |
| 7 | echo "'"ip saddr 08"'" not rejected 1>&2 |
| 8 | exit 1 |
| 9 | } |
| 10 | $NFT delete table t || exit 1 |
| 11 | |
| 12 | exit 0 |
| 13 |