<div dir="auto">DNS is solved using the PostUp line. See the man page example -- `man wg-quick`.<div dir="auto"><br></div><div dir="auto">For your down error, can you send precise command line output?<br><br><div data-smartmail="gmail_signature" dir="auto">--<br>Sent from my telephone.<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On May 2, 2017 18:55, "Bzzzz" <<a href="mailto:lazyvirus@gmx.com">lazyvirus@gmx.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, 2 May 2017 18:31:14 +0200<br>
"Jason A. Donenfeld" <<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>> wrote:<br>
<br>
Oops, sorry for the PM, I put my answer back in the loop.<br>
<br>
> If your wg-quick config file is in /etc/wireguard and ends in ".conf"<br>
> then you can use `wg-quick down vpnserver`. Otherwise, please specify<br>
> the full path when calling wg-quick down.<br>
<br>
Hi Jason, very nice work BTW,<br>
<br>
this is _exactly_ what I do, on the server and the client, I've:<br>
/etc/wireguard/vpnserver.conf<br>
/etc/wireguard/vpnclient.conf<br>
<br>
I created 4 scripts: SERVER||CLIENT_WG_UP||DOWN.sh that use this syntax,<br>
(it either fails when typing it in command line).<br>
<br>
So the command issued are:<br>
wg-quick up vpnserver (works perfectly)<br>
wg-quick down vpnserver (fails)<br>
and d° for the client.<br>
<br>
My setup is basic (but may be wrong) on both srv & cli, here's the srv<br>
one:<br>
<br>
[Interface]<br>
Address = <a href="http://10.11.12.1/24" rel="noreferrer" target="_blank">10.11.12.1/24</a><br>
ListenPort = 1194<br>
PresharedKey = …<br>
PrivateKey = …<br>
[Peer]<br>
PublicKey = …<br>
AllowedIPs = <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a><br>
<br>
The VPN is working, I made a try yesterday, passing by my cell phone<br>
to reach my site and was amazed by the speed 'cos I keep my phone in gsm<br>
mode, otherwise it eats my battery alive (so ~20kB max speed on an old<br>
Xperia x10).<br>
<br>
This isn't really a problem, as I use 2 lines that do the work<br>
correctly; however, the DNS problem is a real concern.<br>
<br>
Jean-Yves<br>
</blockquote></div></div>