From: Dietmar Maurer Date: Thu, 15 May 2014 09:15:29 +0000 (+0200) Subject: add group tests for container X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=97db66b2dea7a1184daf83655b7821276aa892cd;hp=f8b12fffb88e199f4641278bbd66efb1e99ac389;p=pve-firewall.git add group tests for container --- diff --git a/test/test-group1/200.fw b/test/test-group1/200.fw index aa1dee8..b83456a 100644 --- a/test/test-group1/200.fw +++ b/test/test-group1/200.fw @@ -1,4 +1,7 @@ [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 diff --git a/test/test-group1/cluster.fw b/test/test-group1/cluster.fw index c520a74..0b24d0e 100644 --- a/test/test-group1/cluster.fw +++ b/test/test-group1/cluster.fw @@ -12,3 +12,7 @@ OUT REJECT - - tcp 443 [GROUP group2] IN ACCEPT 192.168.3.0/24 - tcp 22 + +[GROUP group3] + +IN ACCEPT 192.168.6.0/24 - tcp 22 diff --git a/test/test-group1/tests b/test/test-group1/tests index d9e327b..22c837a 100644 --- a/test/test-group1/tests +++ b/test/test-group1/tests @@ -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' } +{ 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' } + +