From 97db66b2dea7a1184daf83655b7821276aa892cd Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 15 May 2014 11:15:29 +0200 Subject: [PATCH] add group tests for container --- test/test-group1/200.fw | 7 +++++-- test/test-group1/cluster.fw | 4 ++++ test/test-group1/tests | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) 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' } + + -- 2.39.2