]> git.proxmox.com Git - pve-firewall.git/blobdiff - PVE/Firewall.pm
split compile from apply
[pve-firewall.git] / PVE / Firewall.pm
index 47862f19a004f041c08e59dae1462e4a1a12ab0e..2de83345d49e6d8ccd246a12d37a0b0a17eced4b 100644 (file)
@@ -702,10 +702,10 @@ sub print_sig_rule {
     return "-A $chain -j LOG --log-prefix \"PVESIG:$sig\" -p tcp -s \"127.128.129.130\" --dport 1\n";
 }
 
-sub compile_and_start {
-    my ($verbose) = @_;
+sub apply_ruleset {
+    my ($ruleset, $verbose) = @_;
 
-    my $ruleset = compile();
+    enable_bridge_firewall();
 
     my $cmdlist = "*filter\n"; # we pass this to iptables-restore;