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