Skip to content

Commit

Permalink
Disabling ipv6 accept_ra explicitely on the created interface
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrNull committed Jun 5, 2020
1 parent 4856497 commit e2f31ac
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/vxlan/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/vishvananda/netlink"

"github.com/coreos/flannel/pkg/ip"
"github.com/containernetworking/plugins/pkg/utils/sysctl"
)

type vxlanDeviceAttrs struct {
Expand Down Expand Up @@ -60,6 +61,9 @@ func newVXLANDevice(devAttrs *vxlanDeviceAttrs) (*vxlanDevice, error) {
if err != nil {
return nil, err
}

_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv6/conf/%s/accept_ra", devAttrs.name), "0")

return &vxlanDevice{
link: link,
}, nil
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e2f31ac

Please sign in to comment.