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

$NFT -f - <<EOF
table inet t {
	set s {
		type ipv4_addr . inet_service
		size 65536
		flags dynamic,timeout
		elements = { 192.168.7.1 . 22 }
	}

	chain c {
		tcp dport 21 add @s { ip saddr . 22 timeout 60s }
	}
}
EOF