Active nat for vpn
This commit is contained in:
parent
4bdc98598c
commit
a4e1bb74cf
@ -31,6 +31,13 @@
|
||||
networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; };
|
||||
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.interfaces = {
|
||||
wg-vpn = {
|
||||
|
Loading…
Reference in New Issue
Block a user