Closed shyamjos closed 5 years ago
To make wireguard work, there has to be linux headers present.
# ip link delete dev wg0 Cannot find device "wg0" # modprobe wireguard modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.9.0-9-amd64 #sudo apt install linux-headers-$(uname -r) # modprobe wireguard success!! # ifconfig wg0 wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1420 inet 10.9.0.1 netmask 255.255.255.0 destination 10.9.0.1 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1 (UNSPEC) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
To make wireguard work, there has to be linux headers present.