WireGuard: Difference between revisions
imported>Luis-Hebendanz No edit summary |
imported>Luis-Hebendanz mNo edit summary |
||
Line 26: | Line 26: | ||
networking.firewall = { | networking.firewall = { | ||
allowedUDPPorts = [ 51820 ]; | allowedUDPPorts = [ 51820 ]; | ||
# This allows the wireguard server to route your traffic to the internet and hence be like a VPN | |||
extraCommands = '' | extraCommands = '' | ||
iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eth0 -j MASQUERADE | iptables -t nat -A POSTROUTING -s 10.100.0.0/24 -o eth0 -j MASQUERADE |