]> git.proxmox.com Git - pve-firewall.git/blobdiff - test/test-group1/tests
add security group tests
[pve-firewall.git] / test / test-group1 / tests
diff --git a/test/test-group1/tests b/test/test-group1/tests
new file mode 100644 (file)
index 0000000..d7413cc
--- /dev/null
@@ -0,0 +1,8 @@
+{ from => 'host', source => '192.168.2.1', dport => 22, action => 'ACCEPT' }
+{ from => 'host', source => '192.168.2.1', dport => 443, action => 'REJECT' }
+{ from => 'host', source => '192.168.2.1', dport => 80, action => 'REJECT' }
+{ from => 'host', source => '127.0.0.1', dport => 80, action => 'ACCEPT' }
+
+{ to => 'host', source => '127.0.0.1', dport => 22, action => 'DROP' }
+{ to => 'host', source => '192.168.2.1', dport => 22, action => 'ACCEPT' }
+{ to => 'host', source => '192.168.2.1', dport => 80, action => 'REJECT' }