WireGuard: Difference between revisions

Klinger (talk | contribs)
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">
<syntaxhighlight lang="nix">
{
{
   ...
   ...
Line 246: Line 246:
     dnsmasq = {
     dnsmasq = {
       enable = true;
       enable = true;
       extraConfig = ''
       settings.interface = "wg0";
        interface=wg0
      '';
     };
     };
     ...
     ...
Line 254: Line 252:
   ...
   ...
}
}
</syntaxHighlight>
</syntaxhighlight>


===Client setup===
===Client setup===