[pve-devel] [PATCH 2/2] bridge rules : -j ACCEPT for physical interfaces

Alexandre Derumier aderumier at odiso.com
Tue Feb 25 13:24:07 CET 2014


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Firewall.pm |    1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/Firewall.pm b/PVE/Firewall.pm
index ea24cfb..343f60c 100644
--- a/PVE/Firewall.pm
+++ b/PVE/Firewall.pm
@@ -653,6 +653,7 @@ sub generate_bridge_chains {
     if (!ruleset_chain_exist($ruleset, "$bridge-IN")) {
 	ruleset_create_chain($ruleset, "$bridge-IN");
 	ruleset_addrule($ruleset, "$bridge-FW", "-m physdev --physdev-is-bridged --physdev-is-out -j $bridge-IN");
+	ruleset_addrule($ruleset, "$bridge-FW", "-j ACCEPT");
     }
 }
 
-- 
1.7.10.4




More information about the pve-devel mailing list