/lib/netifrc/net/wireguard.sh uses /usr/bin/wg, installed by net-vpn/wireguard-tools. wireguard.sh should check if wg exists and report an error if not. Reproducible: Always Steps to Reproduce: 1. Configure wireguard interface 2. Uninstall net-vpn/wireguard-tools 3. Start wireguard interface Actual Results: Error message: “interface wg0 does not exist”. If the user adds the interface with `ip link add wg0 type wireguard`, the init script seems to start fine but ping reports “Required key not available”. Expected Results: An error message that says that wg couldn't be found and that it can be installed from net-vpn/wireguard-tools.
You should get a message: Skipping module wireguard due to missing program: wg Can you please capture the full output, as I don't why this doesn't happen for your case.
$ rc-service net.wg0 stop $ mv /usr/bin/wg{,_} $ rc-service net.wg0 start * Bringing up interface wg0 Cannot find device "wg0" * ERROR: interface wg0 does not exist * Ensure that you have loaded the correct kernel module for your hardware * ERROR: net.wg0 failed to start Config in /etc/conf.d/net: config_wg0="fd66::10:1:3/64 10.66.10.13/16" wireguard_wg0="/etc/wireguard/wg0.conf" mtu_wg0="1400" Version: net-misc/netifrc-0.7.1::gentoo