summaryrefslogtreecommitdiffstats
path: root/tests/iptables.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/iptables.sh')
-rwxr-xr-xtests/iptables.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/iptables.sh b/tests/iptables.sh
index c5b9bf7..7ea90e0 100755
--- a/tests/iptables.sh
+++ b/tests/iptables.sh
@@ -95,6 +95,11 @@ del)
$cmd -F INPUT
$cmd -A INPUT -j SET --del-set ipport src,src
;;
+add)
+ $ipset n test hash:net $family 2>/dev/null
+ $cmd -F INPUT
+ $cmd -A INPUT -j SET --add-set test src
+ ;;
timeout)
$ipset n test hash:ip,port timeout 2
$cmd -A INPUT -j SET --add-set test src,src --timeout 10 --exist