enable net.ipv4.ip_forward in plugins that need it
This commit is contained in:
@ -212,6 +212,10 @@ func cmdAdd(args *skel.CmdArgs) error {
|
||||
if err = ensureBridgeAddr(br, gwn); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := ip.EnableIP4Forward(); err != nil {
|
||||
return fmt.Errorf("failed to enable forwarding: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
if n.IPMasq {
|
||||
|
Reference in New Issue
Block a user