| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
# handles are not shown if not asked for them |
| 4 |
|
| 5 |
$NFT add table test |
| 6 |
$NFT add chain test test |
| 7 |
$NFT add rule test test tcp dport 22 counter accept |
| 8 |
( $NFT list table test | grep 'accept # handle '[[:digit:]]$ >/dev/null ) && exit 1 |
| 9 |
|
| 10 |
exit 0 |