1
0

Active nat for vpn

This commit is contained in:
clerie 2020-12-26 01:50:50 +01:00
parent 4bdc98598c
commit a4e1bb74cf

View File

@ -31,6 +31,13 @@
networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; }; networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; };
networking.nameservers = [ "213.133.98.98" "213.133.99.99" "213.133.100.100" ]; networking.nameservers = [ "213.133.98.98" "213.133.99.99" "213.133.100.100" ];
networking.nat = {
enable = true;
externalInterface = "ens3";
internalInterfaces = [ "wg-vpn" ];
internalIPs = [ "10.20.30.0/24" ];
};
networking.wireguard.enable = true; networking.wireguard.enable = true;
networking.wireguard.interfaces = { networking.wireguard.interfaces = {
wg-vpn = { wg-vpn = {