]> git.proxmox.com Git - pve-firewall.git/commitdiff
add group tests for container
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 15 May 2014 09:15:29 +0000 (11:15 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 15 May 2014 09:15:29 +0000 (11:15 +0200)
test/test-group1/200.fw
test/test-group1/cluster.fw
test/test-group1/tests

index aa1dee869fefa7ffc2cad5d391bdb28eb2dfff34..b83456a16a048b51b89b2c5a39f735e9a9f35d98 100644 (file)
@@ -1,4 +1,7 @@
 [RULES]
 
 [RULES]
 
-IN ACCEPT - - - tcp 22 
-IN ACCEPT - - - tcp 80
+IN ACCEPT - 192.168.2.1 - tcp 22 
+IN ACCEPT - 192.168.2.1 - tcp 80
+IN ACCEPT - 127.0.0.1 - tcp 80
+
+GROUP group3 venet
\ No newline at end of file
index c520a7400015eec9d8a3eeb3b38dcd1602b140a6..0b24d0e9d1cb00aea2fc3a2daa9c34a9af036833 100644 (file)
@@ -12,3 +12,7 @@ OUT REJECT - - tcp 443
 [GROUP group2]
 
 IN ACCEPT 192.168.3.0/24 - tcp 22
 [GROUP group2]
 
 IN ACCEPT 192.168.3.0/24 - tcp 22
+
+[GROUP group3]
+
+IN ACCEPT 192.168.6.0/24 - tcp 22
index d9e327b470eb307d5f34f67e80c74f6da81e9abc..22c837a05a331cedcdbd49088043475a77f76161 100644 (file)
@@ -13,4 +13,8 @@
 { to => 'vm100', source => '192.168.3.1', dport => 22, action => 'ACCEPT' }
 { to => 'vm100', source => '192.168.4.1', dport => 22, action => 'DROP' }
 
 { to => 'vm100', source => '192.168.3.1', dport => 22, action => 'ACCEPT' }
 { to => 'vm100', source => '192.168.4.1', dport => 22, action => 'DROP' }
 
+{ from => 'outside', to => 'ct200', source => '192.168.6.1', dport => 22, action => 'ACCEPT' }
+{ from => 'outside', to => 'ct200', source => '192.168.7.1', dport => 22, action => 'DROP' }
+
+