]> git.proxmox.com Git - pve-firewall.git/blobdiff - test/test-group1/tests
Introduce new management ipset
[pve-firewall.git] / test / test-group1 / tests
index d7413cc87f69280bc6ceef3f68a311ddab57774e..6b2252d64c336ae93086e524122f1556dd8fc000 100644 (file)
@@ -1,8 +1,20 @@
+{ from => 'outside', to => 'vm100', source => '192.168.4.1', dport => 22, action => 'DROP' }
+{ from => 'outside', to => 'vm100', source => '192.168.3.1', dport => 22, action => 'ACCEPT' }
+
 { from => 'host', source => '192.168.2.1', dport => 22, action => 'ACCEPT' }
 { from => 'host', source => '192.168.2.1', dport => 443, action => 'REJECT' }
 { from => 'host', source => '192.168.2.1', dport => 80, action => 'REJECT' }
 { from => 'host', source => '127.0.0.1', dport => 80, action => 'ACCEPT' }
 
 { from => 'host', source => '192.168.2.1', dport => 22, action => 'ACCEPT' }
 { from => 'host', source => '192.168.2.1', dport => 443, action => 'REJECT' }
 { from => 'host', source => '192.168.2.1', dport => 80, action => 'REJECT' }
 { from => 'host', source => '127.0.0.1', dport => 80, action => 'ACCEPT' }
 
-{ to => 'host', source => '127.0.0.1', dport => 22, action => 'DROP' }
+{ to => 'host', source => '1.2.3.4', dport => 22, action => 'DROP' }
 { to => 'host', source => '192.168.2.1', dport => 22, action => 'ACCEPT' }
 { to => 'host', source => '192.168.2.1', dport => 80, action => 'REJECT' }
 { to => 'host', source => '192.168.2.1', dport => 22, action => 'ACCEPT' }
 { to => 'host', source => '192.168.2.1', dport => 80, action => 'REJECT' }
+
+{ 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' }
+
+
+