WireGuard: Difference between revisions
imported>Shad typo in umask use |
imported>User No edit summary |
||
Line 20: | Line 20: | ||
... | ... | ||
# | # enable NAT | ||
networking.nat.enable = true; | |||
networking.nat.externalInterface = "eth0"; | |||
networking.nat.internalInterfaces = [ "wg0" ]; | |||
networking. | |||
networking.wireguard.interfaces = { | networking.wireguard.interfaces = { | ||
Line 87: | Line 84: | ||
publicKey = "{server public key}"; | publicKey = "{server public key}"; | ||
# | # Forward all the traffic via VPN. | ||
allowedIPs = [ "0.0.0.0/0" ]; | |||
allowedIPs = [ " | |||
# Set this to the server IP and port. | # Set this to the server IP and port. |