From 63514b27490517bf2b7acd1867d33c32bebb535e Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Thu, 11 Jun 2015 11:00:36 -0700 Subject: [PATCH] Resurrect firewalld support Signed-off-by: Alexander Morozov --- libnetwork/drivers/bridge/bridge.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libnetwork/drivers/bridge/bridge.go b/libnetwork/drivers/bridge/bridge.go index b1fedd4463..b850030816 100644 --- a/libnetwork/drivers/bridge/bridge.go +++ b/libnetwork/drivers/bridge/bridge.go @@ -111,6 +111,9 @@ func Init(dc driverapi.DriverCallback) error { if out, err := exec.Command("modprobe", "-va", "bridge", "nf_nat", "br_netfilter").Output(); err != nil { logrus.Warnf("Running modprobe bridge nf_nat failed with message: %s, error: %v", out, err) } + if err := iptables.FirewalldInit(); err != nil { + logrus.Debugf("Fail to initialize firewalld: %v, using raw iptables instead", err) + } if err := iptables.RemoveExistingChain(DockerChain, iptables.Nat); err != nil { logrus.Warnf("Failed to remove existing iptables entries in %s : %v", DockerChain, err) }