Development discussion of WireGuard
 help / color / mirror / Atom feed
* wg-quick fails with systemd resolvconf compatibility shim
@ 2024-12-20 17:16 Andrei Borzenkov
  2025-05-23 19:02 ` Jason A. Donenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: Andrei Borzenkov @ 2024-12-20 17:16 UTC (permalink / raw)
  To: wireguard

systemd resolvectl supports resolvconf compatibility mode when invoked 
as resolvconf. Ubuntu 24.04 apparently no more provides the real recolvconf:

bor@bor-Latitude-E5450:~/tmp$ dpkg-query -S /usr/sbin/resolvconf
systemd-resolved: /usr/sbin/resolvconf

This version requires the real interface and fails with wg-quick hack:

bor@bor-Latitude-E5450:~/tmp$ sudo wg-quick up ./wg0.conf
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 192.168.6.160/32 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] resolvconf -a tun.wg0 -m 0 -x
Failed to resolve interface "tun.wg0": No such device
[#] ip link delete dev wg0
bor@bor-Latitude-E5450:~/tmp$

So, wg-quick became unusable on Ubuntu. It worked fine in Ubuntu 22.04.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: wg-quick fails with systemd resolvconf compatibility shim
  2024-12-20 17:16 wg-quick fails with systemd resolvconf compatibility shim Andrei Borzenkov
@ 2025-05-23 19:02 ` Jason A. Donenfeld
  0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2025-05-23 19:02 UTC (permalink / raw)
  To: Andrei Borzenkov; +Cc: wireguard

Thanks for the report. Fixed here:
https://git.zx2c4.com/wireguard-tools/commit/?id=d3b40aff964789a2a0533cb7a070592a75a996e3

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-23 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-20 17:16 wg-quick fails with systemd resolvconf compatibility shim Andrei Borzenkov
2025-05-23 19:02 ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).