From: Wolfgang Bumiller Date: Wed, 2 Mar 2016 11:59:16 +0000 (+0100) Subject: test: add test for implicitly allowed container IP X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=4a071299a37e9530f1205772deb4dd08094e9d2d test: add test for implicitly allowed container IP --- diff --git a/test/test-vm-ipfilter2/200.fw b/test/test-vm-ipfilter2/200.fw new file mode 100644 index 0000000..cb372f5 --- /dev/null +++ b/test/test-vm-ipfilter2/200.fw @@ -0,0 +1,4 @@ +[options] + +enable: 1 +ipfilter: 1 diff --git a/test/test-vm-ipfilter2/cluster.fw b/test/test-vm-ipfilter2/cluster.fw new file mode 100644 index 0000000..6e1f05e --- /dev/null +++ b/test/test-vm-ipfilter2/cluster.fw @@ -0,0 +1,7 @@ +[options] + +enable: 1 + +[rules] + +IN ACCEPT -p tcp -dport 80 diff --git a/test/test-vm-ipfilter2/tests b/test/test-vm-ipfilter2/tests new file mode 100644 index 0000000..d940c17 --- /dev/null +++ b/test/test-vm-ipfilter2/tests @@ -0,0 +1,3 @@ +{ from => 'ct200', source => '1.2.3.4', dport => 80, action => 'DROP' } +{ from => 'ct200', source => '10.0.200.1', dport => 80, action => 'ACCEPT' } +{ from => 'ct200', source => '10.0.200.2', dport => 80, action => 'DROP' }