WireGuard: Difference between revisions
m Category:VPN added |
Fix services.dnsmasq options using new settings option. |
||
| Line 239: | Line 239: | ||
To enable dnsmasq and only serve DNS requests to the WireGuard interface add the following: | To enable dnsmasq and only serve DNS requests to the WireGuard interface add the following: | ||
< | <syntaxhighlight lang="nix"> | ||
{ | { | ||
... | ... | ||
| Line 246: | Line 246: | ||
dnsmasq = { | dnsmasq = { | ||
enable = true; | enable = true; | ||
settings.interface = "wg0"; | |||
}; | }; | ||
... | ... | ||
| Line 254: | Line 252: | ||
... | ... | ||
} | } | ||
</ | </syntaxhighlight> | ||
===Client setup=== | ===Client setup=== | ||