X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=blobdiff_plain;f=src%2FPVE%2FFirewall.pm;fp=src%2FPVE%2FFirewall.pm;h=3b67186ed35c18ca7ed62c0f2001c5dbb0e649bb;hp=96c45e93845255b28dcfca656278cb6c0965213e;hb=0e8af63ddb8a58ff2cda9d8595478a673f563d06;hpb=9e01d77d0ea8ce7a6fc2fab61865d3187c7573af diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index 96c45e9..3b67186 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -4269,6 +4269,7 @@ sub remove_pvefw_chains { PVE::Firewall::remove_pvefw_chains_iptables("iptables"); PVE::Firewall::remove_pvefw_chains_iptables("ip6tables"); PVE::Firewall::remove_pvefw_chains_ipset(); + PVE::Firewall::remove_pvefw_chains_ebtables(); } @@ -4314,6 +4315,11 @@ sub remove_pvefw_chains_ipset { ipset_restore_cmdlist($cmdlist) if $cmdlist; } +sub remove_pvefw_chains_ebtables { + # apply empty ruleset = remove all our chains + ebtables_restore_cmdlist(get_ebtables_cmdlist({})); +} + sub init { my $cluster_conf = load_clusterfw_conf(); my $cluster_options = $cluster_conf->{options};