WireGuard: Difference between revisions

imported>Sjau
added masquerading
imported>Sjau
No edit summary
Line 25: Line 25:
   # Add a masquerade rule to iptables so the peers can talk to one another
   # Add a masquerade rule to iptables so the peers can talk to one another
   networking.firewall.extraCommands = ''
   networking.firewall.extraCommands = ''
     iptables -t nat -A POSTROUTING -s10.100.0.0/32 -j MASQUERADE
     iptables -t nat -A POSTROUTING -s10.100.0.0/24 -j MASQUERADE
   '';
   '';