Debian Codegraph @

tests/shell/testcases/sets/0026named_limit_0

raw
1 #!/bin/bash
2
3 # This is the testscase:
4 # * creating valid named limits
5 # * referencing them from a valid rule
6
7 RULESET="
8 table ip filter {
9 limit http-traffic {
10 rate 1/second
11 }
12 chain input {
13 type filter hook input priority 0; policy accept;
14 limit name tcp dport map { 80 : "http-traffic", 443 : "http-traffic"}
15 }
16 }"
17
18 set -e
19 $NFT -f - <<< "$RULESET"