9 if [ $# -eq 1 -a "x$1" = "xremove" ]
11 $IPTABLES -D INPUT
-m set --match-set "${set_name}" src
-j ACCEPT
|| echo "no rule '${set_name}' to remove"
12 $IP6TABLES -D INPUT
-m set --match-set "${set_name}6" src
-j ACCEPT
|| echo "no rule '${set_name}6' to remove"
13 $IPSET destroy
"${set_name}" || echo "no set '${set_name}' to remove"
14 $IPSET destroy
"${set_name}6" || echo "no set '${set_name}6' to remove"
18 create_set
"${set_name}" hash:net
19 create_set
"${set_name}6" hash:net family inet6
21 insert_setmatch_rules
"${set_name}" -j ACCEPT
23 reload_cidr_sets
"${set_name}"