summaryrefslogtreecommitdiffstats
path: root/tests/iptables.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/iptables.sh')
-rwxr-xr-xtests/iptables.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/iptables.sh b/tests/iptables.sh
index b5b82e4..9b1c90c 100755
--- a/tests/iptables.sh
+++ b/tests/iptables.sh
@@ -64,6 +64,10 @@ del)
$cmd -F INPUT
$cmd -A INPUT -j SET --del-set ipport src,src
;;
+timeout)
+ ../src/ipset n test hash:ip,port timeout 2
+ $cmd -A INPUT -j SET --add-set test src,src --timeout 10 --exist
+ ;;
stop)
$cmd -F
$cmd -X