infinet / xt_wgobfs

Iptables WireGuard obfuscation extension
GNU General Public License v2.0
223 stars 24 forks source link

Add DKMS support #29

Open evelikov opened 10 months ago

evelikov commented 10 months ago

Build tested only


@lampotakl feel free to give this a try. It works properly on my end.

evelikov commented 10 months ago

Fwiw you do not need to explicitly run "dkms build" and then "dkms install". The latter will do both, as needed.

Practically similar to how the kernel behaves, all (non-buggy) programs using make and many other tools.

evelikov commented 10 months ago

If it were me, I would remove all the module building bits from the top-level Makefile.am since wrapping the kernel build like that usually leads to grief. Just learned about this project, so take this with a truck-full of salt.

lampotakl commented 10 months ago

It seems that it's not enough to just build it like this. The resulting kernel module file has small size as well (13 kB instead of 500kB) and it's not working. I guess that the autoconf/autotools are adding some xtables libraries or something to this module for it to work. I'm trying to delve into how the original build works for now.

lampotakl commented 10 months ago

On second thought, just running make using this Makefile without DKMS will generate correct kernel module file. So it's a problem somewhere in DKMS.