blob: 80f3c5b226e6fac160501b93e094f77c9f78d2ee (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
# handles are shown last
$NFT add table test
$NFT add chain test test
$NFT add rule test test tcp dport 22 counter accept
$NFT -a list table test | grep 'accept # handle '[[:digit:]]$ >/dev/null
|