summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_REJECT.t
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-09-26 18:29:11 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-10-07 16:35:49 +0200
commit6326a9eb445aacf8c5186acc3de0aea7c903a0b7 (patch)
tree8b3becebecfc5325d7bcd15837e37c00425cbf31 /extensions/libip6t_REJECT.t
parent03aaf36d917029a50b93357b0f415ade38cc8148 (diff)
extensions: libip6t_REJECT: add unit test
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libip6t_REJECT.t')
-rw-r--r--extensions/libip6t_REJECT.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/extensions/libip6t_REJECT.t b/extensions/libip6t_REJECT.t
new file mode 100644
index 00000000..5a389420
--- /dev/null
+++ b/extensions/libip6t_REJECT.t
@@ -0,0 +1,9 @@
+:INPUT,FORWARD,OUTPUT
+-j REJECT;=;OK
+# manpage for IPv6 variant of REJECT does not show up for some reason?
+-j REJECT --reject-with icmp6-no-route;=;OK
+-j REJECT --reject-with icmp6-adm-prohibited;=;OK
+-j REJECT --reject-with icmp6-addr-unreachable;=;OK
+-j REJECT --reject-with icmp6-port-unreachable;=;OK
+-p tcp -j REJECT --reject-with tcp-reset;=;OK
+-j REJECT --reject-with tcp-reset;;FAIL