mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
19 lines
346 B
Go
19 lines
346 B
Go
|
package syssetup
|
||
|
|
||
|
import (
|
||
|
"io/ioutil"
|
||
|
|
||
|
"github.com/sirupsen/logrus"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
callIPTablesFile = "/proc/sys/net/bridge/bridge-nf-call-iptables"
|
||
|
)
|
||
|
|
||
|
func Configure() error {
|
||
|
if err := ioutil.WriteFile(callIPTablesFile, []byte("1"), 0640); err != nil {
|
||
|
logrus.Warnf("failed to write value 1 at %s: %v", callIPTablesFile, err)
|
||
|
}
|
||
|
return nil
|
||
|
}
|