mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Merge pull request #955 from btashton/servicelb-sysctl
Enable ip forwarding on both all and default net config
This commit is contained in:
commit
814c302d7c
@ -30,8 +30,13 @@ func Configure() {
|
|||||||
loadKernelModule("nf_conntrack")
|
loadKernelModule("nf_conntrack")
|
||||||
loadKernelModule("br_netfilter")
|
loadKernelModule("br_netfilter")
|
||||||
|
|
||||||
enableSystemControl("/proc/sys/net/ipv4/ip_forward")
|
// Kernel is inconsistent about how devconf is configured for
|
||||||
|
// new network namespaces between ipv4 and ipv6. Make sure to
|
||||||
|
// enable forwarding on all and default for both ipv4 and ipv8.
|
||||||
|
enableSystemControl("/proc/sys/net/ipv4/conf/all/forwarding")
|
||||||
|
enableSystemControl("/proc/sys/net/ipv4/conf/default/forwarding")
|
||||||
enableSystemControl("/proc/sys/net/ipv6/conf/all/forwarding")
|
enableSystemControl("/proc/sys/net/ipv6/conf/all/forwarding")
|
||||||
|
enableSystemControl("/proc/sys/net/ipv6/conf/default/forwarding")
|
||||||
enableSystemControl("/proc/sys/net/bridge/bridge-nf-call-iptables")
|
enableSystemControl("/proc/sys/net/bridge/bridge-nf-call-iptables")
|
||||||
enableSystemControl("/proc/sys/net/bridge/bridge-nf-call-ip6tables")
|
enableSystemControl("/proc/sys/net/bridge/bridge-nf-call-ip6tables")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user