Skip to content

Commit

Permalink
Enable net.bridge.bridge-nf-call-ip6tables for IPv6. (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvinderpal authored and murali-reddy committed Dec 15, 2018
1 parent 48e2c7b commit c63e71a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/controllers/routing/network_routes_controller.go
Expand Up @@ -205,7 +205,13 @@ func (nrc *NetworkRoutingController) Run(healthChan chan<- *healthcheck.Controll
glog.Errorf("Failed to enable netfilter for bridge. Network policies and service proxy may not work: %s", err.Error())
}
if err = ioutil.WriteFile("/proc/sys/net/bridge/bridge-nf-call-iptables", []byte(strconv.Itoa(1)), 0640); err != nil {
glog.Errorf("Failed to enable netfilter for bridge. Network policies and service proxy may not work: %s", err.Error())
glog.Errorf("Failed to enable iptables for bridge. Network policies and service proxy may not work: %s", err.Error())
}
if nrc.isIpv6 {
if err = ioutil.WriteFile("/proc/sys/net/bridge/bridge-nf-call-ip6tables", []byte(strconv.Itoa(1)), 0640); err != nil {
glog.Errorf("Failed to enable ip6tables for bridge. Network policies and service proxy may not work: %s", err.Error())
}

}

t := time.NewTicker(nrc.syncPeriod)
Expand Down

0 comments on commit c63e71a

Please sign in to comment.