Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upIssue connecting to Wireguard Linux ubuntu 18.04 #1434
Comments
This comment has been minimized.
This comment has been minimized.
|
Which version of which Linux? |
This comment has been minimized.
This comment has been minimized.
|
Ubuntu 18.04 LTS (Bionic Beaver) |
This comment has been minimized.
This comment has been minimized.
|
I was just about to submit an issue for this. I can confirm that on a stock install of Ubuntu 18.04 you will get this output. I'm pretty certain that the issue is caused by the fact that Ubuntu 18.04 doesn't ship with a version of resolvconf.
@ilyas95, if you'd like a quick fix please install 'resolvconf' with the following command.
And then try to run
resolvconf does not contain the '-m' or '-x' flags. |
This comment has been minimized.
This comment has been minimized.
|
@nopdotcom, considering that Ubuntu holds a large share of the Linux desktop market, do you think it would be a good idea to include instructions related to installing resolvconf? I'd be happy to submit a PR. I have also ensured that I'm not leaking DNS by running it this way. |
This comment has been minimized.
This comment has been minimized.
|
@Frichetten |
This comment has been minimized.
This comment has been minimized.
|
I wouldn't recommend it. (I had problems while testing with 'resolvconf'). Do me a favor, could you run If it contains anything other than the IP of your server, we need to fix that. If it does have the right IP the next step would be to run the same command on the server and see what that output is. As a side note, what VPS provider are you using? |
Frichetten
referenced this issue
Sep 4, 2018
Closed
Not possible to connect to wireguard on Digital ocean instance #1443
This comment has been minimized.
This comment has been minimized.
|
The resolv.conf on the client (ubuntu 18.04 lts) doesn't have the IP of the server but only a file with nameserver 127.0.0.53 |
This comment has been minimized.
This comment has been minimized.
|
127.0.0.53 is local systemd-resolved daemon, that installed by default in Ubuntu. I'm not sure that |
This comment has been minimized.
This comment has been minimized.
|
As alternative, you don't need a wg-quick and can enable Wireguard in systemd directly. See https://wiki.debian.org/Wireguard#Step_2_-_Alternative_C_-_systemd, please be aware, that this isn't a full guide and it might not work in your case. |
This comment has been minimized.
This comment has been minimized.
|
@ilyas95, after you run the wg-quick command (with your configuration) what does /etc/resolv.conf look like? When I have Wireguard turned off my /etc/resolv.conf looks exactly like you mentioned. But when I turn Wireguard on it shows the internal 10.x.x.x IP address of the server. If you are leaking DNS, we'd need to ensure your system is properly routing DNS queries to the server. |
This comment has been minimized.
This comment has been minimized.
|
@z0rc, thank you for the information! On Ubuntu 18.04 I was able to resolve the issue by installing the openresolv package. I believe the issue is related to the following error in the Wireguard output:
Wireguard isn't finding the resolvconf command which is not standard to Ubuntu 18.04. Although, I would be interested in how difficult it would be to setup Wireguard in systemd. |
This comment has been minimized.
This comment has been minimized.
Ronaldkornblow
commented
Sep 26, 2018
|
@Frichetten What is the resolution here? |
This comment has been minimized.
This comment has been minimized.
|
@Ronaldkornblow, I'm not sure I understand what you mean? |
This comment has been minimized.
This comment has been minimized.
Ronaldkornblow
commented
Oct 1, 2018
•
|
@Frichetten I still cannot connect. Is there any resolution here? @cpu |
This comment has been minimized.
This comment has been minimized.
|
Oh sorry, I understand now :) Are you getting the same error as described in the OP? If so, have you attempted to install 'openresolv'? |
This comment has been minimized.
This comment has been minimized.
Ronaldkornblow
commented
Oct 6, 2018
|
@Frichetten |
This comment has been minimized.
This comment has been minimized.
|
@Ronaldkornblow, I would recommend checking what is in your /etc/resolv.conf. If Wireguard is down, you should be using whatever your default DNS server is. However, when Wireguard is up, it should instead use DNS through Wireguard. |
This comment has been minimized.
This comment has been minimized.
@Frichetten Do you mean |
cpu
added
kind/docs
area/wireguard
client/linux
labels
Oct 20, 2018
This was referenced Oct 22, 2018
alimakki
added a commit
that referenced
this issue
Oct 24, 2018
This comment has been minimized.
This comment has been minimized.
|
Closing as the issue has been been documented by @Frichetten |
ilyas95 commentedAug 28, 2018
•
edited
When I try to connect to the server by using sudo wg-quick up configfile I get the following as output:
[#] ip link add configfile type wireguard
[#] wg setconf configfile /dev/fd/63
[#] ip address add 10.192.122.2/32 dev configfile
[#] ip link set mtu 1420 dev configfile
[#] ip link set configfile up
[#] resolvconf -a configfile -m 0 -x
/usr/bin/wg-quick: line 31: resolvconf: command not found
[#] ip link delete dev configfile
I tried to look inside the file /usr/bin/wg-quick but I cannot find the problem
Someone had this problem?
I'm sure the problem is not the server because I'm able to connect with my android phone