Closed marek22k closed 1 year ago
Lowercase, -j
$ sudo iptables -t mangle -I INPUT -p udp -m udp --sport 52925 -j WGOBFS --key mysecretkey --unobfs
iptables v1.8.7 (nf_tables): unknown option "--key"
Try `iptables -h' or 'iptables --help' for more information.
$ ls /usr/lib/x86_64-linux-gnu/xtables | grep libxt_WG
libxt_WGOBFS.so
Have you built and installed libxt_WGOBFS.so?
Yes, I have.
$ ls /lib/modules/5.10.0-18-amd64/kernel/net/netfilter/ | grep xt_WG
xt_WGOBFS.ko
That is the kernel module. You also need userland. See readme.
Userland? I only see
Run make in kernel/ to build kernel module. Copy xt_WGOBFS.ko to /lib/modules/yourkernelversion/kernel/net/netfilter/, then run depmod -a.
Run make in xtables/ to build iptables extension. Copy libxt_WGOBFS.so to xtables directory.
and I did both.
Somehow Debian 11 does not load the kernel module automatically. Need modprobe xt_WGOBFS. See updated readme.
Works
OS: Debian 11 (fresh install)