diff --git a/nat/service_iptables.go b/nat/service_iptables.go index 04fe1f81d8..c803e56db0 100644 --- a/nat/service_iptables.go +++ b/nat/service_iptables.go @@ -36,15 +36,11 @@ func (service *serviceIPTables) Add(rule RuleForwarding) { func (service *serviceIPTables) Start() error { err := service.ipForward.Enable() if err != nil { - return err + log.Warn(natLogPrefix, "Failed to enable IP forwarding: ", err) } service.clearStaleRules() - err = service.enableRules() - if err != nil { - return err - } - return nil + return service.enableRules() } func (service *serviceIPTables) Stop() { diff --git a/nat/service_pfctl.go b/nat/service_pfctl.go index 0b7e438f44..0aabe0775b 100644 --- a/nat/service_pfctl.go +++ b/nat/service_pfctl.go @@ -38,7 +38,11 @@ func (service *servicePFCtl) Add(rule RuleForwarding) { } func (service *servicePFCtl) Start() error { - service.ipForward.Enable() + err := service.ipForward.Enable() + if err != nil { + log.Warn(natLogPrefix, "Failed to enable IP forwarding: ", err) + } + service.clearStaleRules() return service.enableRules() }