WireGuard: Difference between revisions

imported>Sjau
No edit summary
imported>Sjau
No edit summary
Line 23: Line 23:
   boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
   boot.kernel.sysctl."net.ipv4.ip_forward" = 1;


   # Add a masquerade rule to iptables so the peers can talk to one another
   # Add a masquerade rule to iptables so the clients can talk to one another
   networking.firewall.extraCommands = ''
   networking.firewall.extraCommands = ''
     iptables -t nat -A POSTROUTING -s10.100.0.0/24 -j MASQUERADE
     iptables -t nat -A POSTROUTING -s10.100.0.0/24 -j MASQUERADE