I have tried to find an answer to this question, but unfortunately it seems to be difficult...
I need a VPN server on dlink dwr 921 c3 and I am wondering if I should use OpenVPN or Wireguard.
(building targets/ramips/mt7620/...-ramips-mt7620-dlink_dwr-921-c3-squashfs-factory.bin)
If you're asking whether wireguard will be in a default build then the answer is no. You'd have to either create your own build environment and add it to the build, use the image builder, or install wireguard after you've flashed the router. But the installed package is a kernel module.
The point is: If WireGuard is in the linux kernel that is used in the master build (my own build) then I choose this one. If not, I can choose any package...
In the 19.07.4 branch build the kernel is too old anyways...
Also, the documentation says that Wireguard is "running in the kernel" as a module
And it says that it does require to install the luci packages, but not the regular WireGuard package.
Overall, I am thinking about the news, that WireGuard was included in the linux kernel in the first quarter of 2020.
Yes. But if you're building your own build why not just try it out? Build without adding kmod-wireguard and see if you have wireguard once you install. Then go back and build again with kmod-wireguard.
Ok, this is why I like to ask questions.... and this is the piece I was missing:
"kmod-wireguard" is actually a kernel module but in openwrt it is treated in the same way as a package.
So the answer is:
If I do build the master, I need to add the package kmod-wireguard
to my .config but I dont need to add the package wireguard
Ok but if I want to check / to see if the wireguard stuff is running as a module inside of the kernel (the only reason for me to choose wireguard) is to enable the module in the config and to see if it works out. Right?
The wireguard package itself is also working / compiling when I choose an older version and not master.
Or how can I verify that? This was actually the initial question: is wireguard included in the kernel in a master build for rampis?
my understanding from the news in march 2020 was that the wireguard stuff is all included, preinstalled, existing in the kernel - but I am everything else than a linux / kernel expert
I was always using OpenVPN and I am used to OpenVPN - so I was unsure if I need to switch to Wireguard now and if I should also build master for a productive environment (with the LTE router).
But it seems like there is no difference between 19.07 with kernel 4.x or master and kernel 5.x running wireguard in a kernel module.