diff --git a/hosts/containers/dn42/default.nix b/hosts/containers/dn42/default.nix index f0ed15c3..12c2a777 100644 --- a/hosts/containers/dn42/default.nix +++ b/hosts/containers/dn42/default.nix @@ -32,6 +32,13 @@ in { # No Firewalling! networking.firewall.enable = false; + boot.kernel.sysctl = { + "net.ipv4.conf.all.forwarding" = true; + "net.ipv4.conf.default.forwarding" = true; + "net.ipv6.conf.all.forwarding" = true; + "net.ipv6.conf.default.forwarding" = true; + }; + boot.postBootCommands = '' if [ ! -c /dev/net/tun ]; then mkdir -p /dev/net