network-manager-wireguard icon indicating copy to clipboard operation
network-manager-wireguard copied to clipboard

Failed to resolve interface "tun": No such device

Open GooseBumpsOS opened this issue 1 year ago • 1 comments

journalctl -u NetworkManager.service:

resolvconf[21502]: Failed to resolve interface "tun": No such device
NetworkManager[21478]: [#] ip link delete dev bci
NetworkManager[911]: <info>  [****] device (bci): state change: activated -> unmanaged (reason 'unmanaged', sys-iface-state: 'removed')
NetworkManager[911]: <warn>  [******] vpn[0x5a0f9,8fa29881-3fa9-,"bci"]: config: failed to look up VPN interface index for "bci"
NetworkManager[911]: <warn>  [*****] vpn[0x5a0f9,8fa29881-3fa9-,"bci"]: did not receive valid IP config information
NetworkManager[21595]: wg-quick: `bci' is not a WireGuard interface

GooseBumpsOS avatar Jul 02 '24 02:07 GooseBumpsOS

My solution from stackoverflow:

instead of using:

DNS = <ip>

Try this under [Interface] instead:

PostUp = resolvectl dns %i <ip>

image

GooseBumpsOS avatar Jul 02 '24 02:07 GooseBumpsOS

如果使用wg-quick up 也产生同样的错误,问题可能出在wg-quick上。升级到ubuntu 22.04.1会遇到类似的问题,需要修改/usr/bin/wg-quick中的resolvconf_iface_prefix()函数,使它返回正确的值。

yanzilisan183 avatar Sep 04 '24 01:09 yanzilisan183