5
0
mirror of git://git.proxmox.com/git/pve-firewall.git synced 2025-01-09 01:18:04 +03:00

add group tests for container

This commit is contained in:
Dietmar Maurer 2014-05-15 11:15:29 +02:00
parent f8b12fffb8
commit 97db66b2de
3 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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

View 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' }
{ 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' }