blob: c9eb86830c8d7abf0a1a4fa1e2beb04eb31e17af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
set -e
RULESET="flush ruleset
add table inet t
add chain inet t c { type filter hook input priority 0 ; }
add rule inet t c tcp dport 1234 accept
add rule inet t c accept
insert rule inet t c index 1 udp dport 4321 accept"
$NFT -f - <<< "$RULESET"
|