blob: d914ba9846ca3e5b8e624a0ff3314b5356ca19c0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/bash
RULESET="add table ip x
add set x y {type ipv4_addr; flags interval;}
add element x y { 10.0.24.0/24 }
"
set -e
$NFT -f - <<< "$RULESET"
$NFT delete element x y { 10.0.24.0/24 }
|