dn42: enable forwarding

This commit is contained in:
Astro 2021-03-11 16:54:40 +01:00
parent 05cce3d3c8
commit 4a10f571fb
1 changed files with 7 additions and 0 deletions

View File

@ -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