Commit 0aa2f675cdd9
Changed files (1)
systems
modules
profiles
systems/modules/profiles/wireguard.server.nix
@@ -22,6 +22,7 @@ in
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
networking.firewall.extraCommands = ''
iptables -t nat -A POSTROUTING -s10.100.0.0/24 -j MASQUERADE
+ iptables -A FORWARD -i wg+ -j ACCEPT
'';
networking.firewall.allowedUDPPorts = [ 51820 ];
networking.firewall.trustedInterfaces = [ "wg0" ];