X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=PVE%2FFirewall.pm;h=8d56ab04a927e24e7a21d6ac04158d19b86bb6c5;hb=2cfe0eb1659fe3e1e625c4612df22f9805c43a6e;hp=19314ad5da3cd1659fbceb4c620f731d1804996c;hpb=06320eb0823c756df8dc836ecd4325839fb768e2;p=pve-firewall.git diff --git a/PVE/Firewall.pm b/PVE/Firewall.pm index 19314ad..8d56ab0 100644 --- a/PVE/Firewall.pm +++ b/PVE/Firewall.pm @@ -152,7 +152,7 @@ sub iptables_restore { my $cmdlist = join("\n", @ruleset); - run_command("echo '$cmdlist' | /sbin/iptables-restore -n", outfunc => sub {}); + run_command("/sbin/iptables-restore -n", input => $cmdlist, outfunc => sub {}); } sub iptables_addrule {