network-manager-wireguard
network-manager-wireguard copied to clipboard
Failed to resolve interface "tun": No such device
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
My solution from stackoverflow:
instead of using:
DNS = <ip>
Try this under [Interface] instead:
PostUp = resolvectl dns %i <ip>
如果使用wg-quick up