]> git.proxmox.com Git - pve-firewall.git/blobdiff - test/test-vm-ipfilter1/tests
add regression tests for ipfilter
[pve-firewall.git] / test / test-vm-ipfilter1 / tests
diff --git a/test/test-vm-ipfilter1/tests b/test/test-vm-ipfilter1/tests
new file mode 100644 (file)
index 0000000..2554704
--- /dev/null
@@ -0,0 +1,15 @@
+{ from => 'vm100i1', source => '1.2.3.3', dport => 80, action => 'ACCEPT' }
+{ from => 'vm100i1', source => '1.2.3.4', dport => 80, action => 'ACCEPT' }
+{ from => 'vm100i1', source => '1.2.3.5', dport => 80, action => 'ACCEPT' }
+{ from => 'vm100i1', source => '1.2.3.6', dport => 80, action => 'ACCEPT' }
+
+
+{ from => 'vm100', source => '1.2.3.3', dport => 80, action => 'DROP' }
+{ from => 'vm100', source => '1.2.3.4', dport => 80, action => 'ACCEPT' }
+{ from => 'vm100', source => '1.2.3.5', dport => 80, action => 'ACCEPT' }
+{ from => 'vm100', source => '1.2.3.6', dport => 80, action => 'DROP' }
+
+{ from => 'vm100i2', source => '1.2.3.3', dport => 80, action => 'DROP' }
+{ from => 'vm100i2', source => '1.2.3.4', dport => 80, action => 'DROP' }
+{ from => 'vm100i2', source => '1.2.3.5', dport => 80, action => 'DROP' }
+{ from => 'vm100i2', source => '1.2.3.6', dport => 80, action => 'DROP' }