Skip to content

Commit c63e71a

Browse files
Arvinderpalmurali-reddy
authored andcommitted
Enable net.bridge.bridge-nf-call-ip6tables for IPv6. (#608)
#607
1 parent 48e2c7b commit c63e71a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/controllers/routing/network_routes_controller.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,13 @@ func (nrc *NetworkRoutingController) Run(healthChan chan<- *healthcheck.Controll
205205
glog.Errorf("Failed to enable netfilter for bridge. Network policies and service proxy may not work: %s", err.Error())
206206
}
207207
if err = ioutil.WriteFile("/proc/sys/net/bridge/bridge-nf-call-iptables", []byte(strconv.Itoa(1)), 0640); err != nil {
208-
glog.Errorf("Failed to enable netfilter for bridge. Network policies and service proxy may not work: %s", err.Error())
208+
glog.Errorf("Failed to enable iptables for bridge. Network policies and service proxy may not work: %s", err.Error())
209+
}
210+
if nrc.isIpv6 {
211+
if err = ioutil.WriteFile("/proc/sys/net/bridge/bridge-nf-call-ip6tables", []byte(strconv.Itoa(1)), 0640); err != nil {
212+
glog.Errorf("Failed to enable ip6tables for bridge. Network policies and service proxy may not work: %s", err.Error())
213+
}
214+
209215
}
210216

211217
t := time.NewTicker(nrc.syncPeriod)

0 commit comments

Comments
 (0)