summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0025anonymous_set_0
blob: 93a7c02255cbca3da0a2497aeae21f32dc110dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Adding anonymous sets

set -e

$NFT add table t
$NFT add chain t c { type filter hook output priority 0 \; }
# set: IP addresses
$NFT add rule t c ip daddr { \
        192.168.0.1, \
        192.168.0.2, \
        192.168.0.3, \
}

#set : tcp ports
$NFT add rule t c tcp dport { 22, 23 } counter