blob: 4cd586755e7f17c45af0c983a016a15964a87b5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Create a set
0 ipset -N test nethash --hashsize 128
# Add first random network
0 ipset -A test 2.0.0.1/24
# Add second random network
0 ipset -A test 192.168.68.69/27
# Test first random value
0 ipset -T test 2.0.0.255
# Test second random value
0 ipset -T test 192.168.68.95
# Test value not added to the set
1 ipset -T test 2.0.1.0
# Delete test set
0 ipset -X test
# eof
|