X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=test%2Ftest-vm-ipfilter1%2Ftests;fp=test%2Ftest-vm-ipfilter1%2Ftests;h=255470451cafc56e18ad453419387530a0248248;hp=0000000000000000000000000000000000000000;hb=a306a176c417e30d635b137d6ec155c49df794cd;hpb=66f33d78ed9028e1aabaea5aafb89e8d66880730 diff --git a/test/test-vm-ipfilter1/tests b/test/test-vm-ipfilter1/tests new file mode 100644 index 0000000..2554704 --- /dev/null +++ b/test/test-vm-ipfilter1/tests @@ -0,0 +1,15 @@ +{ from => 'vm100i1', source => '1.2.3.3', dport => 80, action => 'ACCEPT' } +{ from => 'vm100i1', source => '1.2.3.4', dport => 80, action => 'ACCEPT' } +{ from => 'vm100i1', source => '1.2.3.5', dport => 80, action => 'ACCEPT' } +{ from => 'vm100i1', source => '1.2.3.6', dport => 80, action => 'ACCEPT' } + + +{ from => 'vm100', source => '1.2.3.3', dport => 80, action => 'DROP' } +{ from => 'vm100', source => '1.2.3.4', dport => 80, action => 'ACCEPT' } +{ from => 'vm100', source => '1.2.3.5', dport => 80, action => 'ACCEPT' } +{ from => 'vm100', source => '1.2.3.6', dport => 80, action => 'DROP' } + +{ from => 'vm100i2', source => '1.2.3.3', dport => 80, action => 'DROP' } +{ from => 'vm100i2', source => '1.2.3.4', dport => 80, action => 'DROP' } +{ from => 'vm100i2', source => '1.2.3.5', dport => 80, action => 'DROP' } +{ from => 'vm100i2', source => '1.2.3.6', dport => 80, action => 'DROP' }