]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: libxt_limit: add unit test
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 24 Sep 2012 14:01:38 +0000 (16:01 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 7 Oct 2013 14:35:49 +0000 (16:35 +0200)
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_limit.t [new file with mode: 0644]

diff --git a/extensions/libxt_limit.t b/extensions/libxt_limit.t
new file mode 100644 (file)
index 0000000..b0af653
--- /dev/null
@@ -0,0 +1,6 @@
+:INPUT,FORWARD,OUTPUT
+-m limit --limit 1/sec;=;OK
+-m limit --limit 1/min;=;OK
+-m limit --limit 1000/hour;=;OK
+-m limit --limit 1000/day;=;OK
+-m limit --limit 1/sec --limit-burst 1;=;OK