decoysnail: use superior systemd-resolved
This commit is contained in:
parent
ee25b7e75e
commit
e76bccb537
@ -62,10 +62,8 @@
|
|||||||
privateKeyFile = "/etc/wgkeys/decoysnail";
|
privateKeyFile = "/etc/wgkeys/decoysnail";
|
||||||
allowedIPsAsRoutes = true;
|
allowedIPsAsRoutes = true;
|
||||||
postSetup = ''
|
postSetup = ''
|
||||||
printf "nameserver 10.57.0.1" | ${pkgs.openresolv}/bin/resolvconf -a wg0 -m 0
|
${pkgs.systemd}/bin/resolvectl domain wg0 '~htdf.gebner.org' '~mtlaa.gebner.org'
|
||||||
'';
|
${pkgs.systemd}/bin/resolvectl dns wg0 10.57.0.1
|
||||||
postShutdown = ''
|
|
||||||
${pkgs.openresolv}/bin/resolvconf -d wg0
|
|
||||||
'';
|
'';
|
||||||
peers = [{
|
peers = [{
|
||||||
publicKey = "ByLlJbevlTBooAo2RIZGGJvBHKqA9qiOpHBvR5yuJX4=";
|
publicKey = "ByLlJbevlTBooAo2RIZGGJvBHKqA9qiOpHBvR5yuJX4=";
|
||||||
@ -75,4 +73,9 @@
|
|||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.resolved = {
|
||||||
|
domains = [];
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user