add new test case to show serious bug
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 21 May 2014 07:35:23 +0000 (09:35 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 21 May 2014 07:35:23 +0000 (09:35 +0200)
test/test-errors3/100.fw [new file with mode: 0644]
test/test-errors3/host.fw [new file with mode: 0644]
test/test-errors3/tests [new file with mode: 0644]

diff --git a/test/test-errors3/100.fw b/test/test-errors3/100.fw
new file mode 100644 (file)
index 0000000..14a31cd
--- /dev/null
@@ -0,0 +1,8 @@
+[OPTIONS]
+
+enable: 1
+
+[RULES]
+
+IN ACCEPT -p tcp -dport 82
+
diff --git a/test/test-errors3/host.fw b/test/test-errors3/host.fw
new file mode 100644 (file)
index 0000000..3c68b3c
--- /dev/null
@@ -0,0 +1,5 @@
+[RULES]
+
+# rule without dport - should be skipped
+IN ACCEPT -dport 80
+
diff --git a/test/test-errors3/tests b/test/test-errors3/tests
new file mode 100644 (file)
index 0000000..aa9b4a9
--- /dev/null
@@ -0,0 +1,3 @@
+{ from => 'outside', to => 'host', dport => 80, action => 'DROP' }
+{ from => 'outside', to => 'vm100', dport => 80, action => 'DROP' }
+{ from => 'outside', to => 'vm100', dport => 82, action => 'ACCEPT' }