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