add test case to show serious bug
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 21 May 2014 06:39:33 +0000 (08:39 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 21 May 2014 06:39:33 +0000 (08:39 +0200)
test/test-errors1/100.fw [new file with mode: 0644]
test/test-errors1/tests [new file with mode: 0644]

diff --git a/test/test-errors1/100.fw b/test/test-errors1/100.fw
new file mode 100644 (file)
index 0000000..25d9a2c
--- /dev/null
@@ -0,0 +1,9 @@
+[OPTIONS]
+
+enable: 1
+
+[RULES]
+
+# rule with dport but missing protocol
+IN ACCEPT -dport 80
+
diff --git a/test/test-errors1/tests b/test/test-errors1/tests
new file mode 100644 (file)
index 0000000..4c4bf67
--- /dev/null
@@ -0,0 +1,2 @@
+{ from => 'outside', to => 'vm100', dport => 80, action => 'ACCEPT' }
+{ from => 'outside', to => 'vm100', dport => 81, action => 'DROP' }
\ No newline at end of file