Test
This commit is contained in:
parent
7a532a07cf
commit
30bc4bf2df
1 changed files with 13 additions and 5 deletions
|
@ -36,7 +36,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Wireguard Forwarder
|
# Wireguard Forwarder
|
||||||
boot.kernel.sysctl = { "net.ipv4.ip_forward" = true; };
|
boot.kernel.sysctl = {
|
||||||
|
"net.ipv4.ip_forward" = true;
|
||||||
|
"net.ipv4.conf.all.forwarding" = 1;
|
||||||
|
"net.ipv4.conf.default.forwarding" = 1;
|
||||||
|
};
|
||||||
networking.firewall.allowPing = true;
|
networking.firewall.allowPing = true;
|
||||||
networking.wireguard = {
|
networking.wireguard = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -67,13 +71,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.xinetd = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking.nat = {
|
networking.nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
internalInterfaces = [ "wireguard0" ];
|
internalInterfaces = [ "wireguard0" ];
|
||||||
externalInterface = "eno3";
|
externalInterface = "eno3";
|
||||||
# forwardPorts = [
|
forwardPorts = [
|
||||||
# { sourcePort = 80; destination = "10.100.0.2:80"; }
|
{ sourcePort = 80; destination = "10.100.0.2:80"; }
|
||||||
# { sourcePort = 443; destination = "10.100.0.2:443"; }
|
{ sourcePort = 443; destination = "10.100.0.2:443"; }
|
||||||
# ];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue