add test for aliases inside vm firewall configuration
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 27 May 2014 05:57:16 +0000 (07:57 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 27 May 2014 05:57:16 +0000 (07:57 +0200)
test/test-vm-aliases1/100.fw [new file with mode: 0644]
test/test-vm-aliases1/tests [new file with mode: 0644]

diff --git a/test/test-vm-aliases1/100.fw b/test/test-vm-aliases1/100.fw
new file mode 100644 (file)
index 0000000..64153ad
--- /dev/null
@@ -0,0 +1,13 @@
+[OPTIONS]
+
+enable: 1
+
+[ALIASES]
+
+testip1 1.2.3.4
+testip2 1.2.3.5
+
+[RULES]
+
+OUT DROP -source testip1
+OUT DROP -dest testip2
diff --git a/test/test-vm-aliases1/tests b/test/test-vm-aliases1/tests
new file mode 100644 (file)
index 0000000..6fca89d
--- /dev/null
@@ -0,0 +1,4 @@
+{ from => 'vm100', to => 'outside', source => '1.2.3.4', action => 'DROP' }
+{ from => 'vm100', to => 'outside', source => '1.2.3.5', action => 'ACCEPT' }
+{ from => 'vm100', to => 'outside', dest => '1.2.3.4', action => 'ACCEPT' }
+{ from => 'vm100', to => 'outside', dest => '1.2.3.5', action => 'DROP' }