summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/tcp.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/ip/tcp.t')
-rw-r--r--tests/py/ip/tcp.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/py/ip/tcp.t b/tests/py/ip/tcp.t
new file mode 100644
index 00000000..4dcfcb6b
--- /dev/null
+++ b/tests/py/ip/tcp.t
@@ -0,0 +1,6 @@
+:input;type filter hook input priority 0
+
+*ip;test-ip;input
+
+ip protocol tcp tcp dport ssh accept;ok;tcp dport 22 accept
+ip protocol ne tcp udp dport ssh accept;ok;ip protocol != 6 udp dport 22 accept