remove TODOs: the sysctls have reasonable defaults
This commit is contained in:
parent
bf2c12a69d
commit
3886367a32
@ -558,8 +558,6 @@ func applyFirewall(dir string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func applySysctl() error {
|
func applySysctl() error {
|
||||||
// TODO: increase NAT table size
|
|
||||||
// TODO: increase keepalive to 7200(?)
|
|
||||||
if err := ioutil.WriteFile("/proc/sys/net/ipv4/ip_forward", []byte("1"), 0644); err != nil {
|
if err := ioutil.WriteFile("/proc/sys/net/ipv4/ip_forward", []byte("1"), 0644); err != nil {
|
||||||
return fmt.Errorf("sysctl(net.ipv4.ip_forward=1): %v", err)
|
return fmt.Errorf("sysctl(net.ipv4.ip_forward=1): %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user