k3s/pkg/agent
Brennan Ashton a952d5c32a Default device net config enables ip forwarding
The Linux kernel is inconsistent about how devconf is configured for new
network namespaces between ipv4 and ipv6. The behavior can also be
controlled via net.core.devconf_inherit_init_net in Linux 5.1+ so make
sure to enable forwarding on all and default for both ipv6 and ipv4.

This issue first came up testing on a yocto kernel that had this patch:
 ipv4: net namespace does not inherit network configurations

[0] https://www.kernel.org/doc/html/latest/admin-guide/sysctl/net.html#devconf-inherit-init-net
[1] https://lkml.org/lkml/2014/7/29/119

Signed-off-by: Brennan Ashton <brennana@jfrog.com>
2019-12-10 16:29:59 -08:00
..
config Download cert/key to agent with single HTTP request 2019-11-15 21:51:51 -07:00
containerd remove []byte trans, handle func error 2019-11-28 19:26:45 +08:00
flannel Refactor tokens, bootstrap, and cli args 2019-10-30 19:06:49 -07:00
loadbalancer Change load balancer logging to debug 2019-08-08 10:48:11 -07:00
netpol remove []byte trans, handle func error 2019-11-28 19:26:45 +08:00
syssetup Default device net config enables ip forwarding 2019-12-10 16:29:59 -08:00
templates Update base pause image to rancher repo 2019-11-25 16:09:05 +08:00
tunnel Refactor tokens, bootstrap, and cli args 2019-10-30 19:06:49 -07:00
util Continued refactoring 2019-01-11 21:52:30 -07:00
run.go Merge pull request #1008 from erikwilson/ip6-system-setup 2019-11-04 14:24:55 -07:00