blob: 0630595f1599dc6ace85c6ad37bc464f4b741cbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
set -e
EXPECTED="flush ruleset
add table inet filter
add map inet filter testmap { type ipv4_addr : counter; flags interval;}
add counter inet filter TEST
add element inet filter testmap { 192.168.0.0/24 : \"TEST\" }"
$NFT -f - <<< "$EXPECTED"
|