blob: 0f2f27c640583d096334fc31f3248f58c39d4bda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
# This is like "flush ruleset" except only flushes THIS ruleset, not ALL rulesets.
# In particular, it leaves the dynamic sshguard/fail2ban deny lists untouched.
RULESET="add table A
delete table A
table A {
chain B {
tcp dport {1,2} accept
}
}
list ruleset"
exec $NFT -f - <<< "$RULESET"
|