WireGuard: Difference between revisions

imported>Erictapen
No edit summary
imported>Luis-Hebendanz
mNo edit summary
Line 24: Line 24:
   networking.nat.externalInterface = "eth0";
   networking.nat.externalInterface = "eth0";
   networking.nat.internalInterfaces = [ "wg0" ];
   networking.nat.internalInterfaces = [ "wg0" ];
 
  networking.firewall.allowedUDPPorts = [ 51820  ];
   networking.wireguard.interfaces = {
   networking.wireguard.interfaces = {
     # "wg0" is the network interface name. You can name the interface arbitrarily.
     # "wg0" is the network interface name. You can name the interface arbitrarily.