WireGuard: Difference between revisions
imported>Luis-Hebendanz mNo edit summary |
imported>Luis-Hebendanz mNo edit summary |
||
| Line 28: | Line 28: | ||
# This allows the wireguard server to route your traffic to the internet and hence be like a VPN | # This allows the wireguard server to route your traffic to the internet and hence be like a VPN | ||
# For this to work you have to set the dnsserver IP of your router (or dnsserver of choice) in your clients | |||
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 | ||
''; | ''; | ||