dn42: enable forwarding
This commit is contained in:
parent
05cce3d3c8
commit
4a10f571fb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue