Git Product home page Git Product logo

Comments (11)

infinet avatar infinet commented on September 4, 2024 1

It may be related a bug that was fixed by #15. I have packaged a new version. Please try the latest openwrt/package/Makefile.

from xt_wgobfs.

infinet avatar infinet commented on September 4, 2024

Has the kernel module been loaded? What is the output of lsmod | grep WGOBFS?

from xt_wgobfs.

lirigorm avatar lirigorm commented on September 4, 2024

Hi, i use openwrt, but i have the same problem.
output of lsmod | grep WGOBFS:

x_tables 24576 15 nft_compat,iptable_mangle,iptable_filter,ipt_REJECT,ip_tables,xt_time,xt_tcpudp,xt_multiport,xt_mark,xt_mac,xt_limit,xt_comment,xt_WGOBFS,xt_TCPMSS,xt_LOG
xt_WGOBFS 12288 0

from xt_wgobfs.

romanrm avatar romanrm commented on September 4, 2024

It looks like you may have forgot to put libxt_WGOBFS.so into the correct place. On my system it is at /usr/lib/x86_64-linux-gnu/xtables/libxt_WGOBFS.so. Adjust for your distro accordingly. Easiest is to run "find / 2> /dev/null | grep libxt_" and that way to determine where other iptables libs live. This additional one needs to be at the same location. Except OpenWRT may have no "other" libs, so on that one try simply /usr/lib/.

from xt_wgobfs.

infinet avatar infinet commented on September 4, 2024

I agree with @romanrm, perhaps libxt_WGOBFS.so is missing. On Debian 12,
make install shall copy libxt_WGOBFS.so to the correct location. Also please make sure the kernel module is loaded.

On OpenWrt, the build generates two pakcages, kmod-ipt-wgobfs_xxx.ipk and iptables-mod-wgobfs_xxx.ipk. Double check both are installed. The latest OpenWrt I tested was 22.03.3.

from xt_wgobfs.

lirigorm avatar lirigorm commented on September 4, 2024

I'm sure the packages are installed.
opkg list-installed | grep wgobfs:

iptables-mod-wgobfs - 0.4.1-1
kmod-ipt-wgobfs - 5.15.118+0.4.1-1

I also searched *wgobfs* and found the following files in the system:

/usr/lib/iptables/libxt_WGOBFS.so
/usr/lib/opkg/info/kmod-ipt-wgobfs.control
/usr/lib/opkg/info/kmod-ipt-wgobfs.postinst
/usr/lib/opkg/info/kmod-ipt-wgobfs.prerm
/usr/lib/opkg/info/kmod-ipt-wgobfs.list
/usr/lib/opkg/info/iptables-mod-wgobfs.control
/usr/lib/opkg/info/iptables-mod-wgobfs.postinst
/usr/lib/opkg/info/iptables-mod-wgobfs.prerm
/usr/lib/opkg/info/iptables-mod-wgobfs.list
/sys/module/xt_WGOBFS
/sys/module/x_tables/holders/xt_WGOBFS
/lib/modules/5.15.118/xt_WGOBFS.ko
/etc/modules.d/ipt-wgobfs

After that i try to add iptables rule iptables -t mangle -I INPUT -p udp -m udp --dport 6789 -j WGOBFS --key mysecretkey --unobfs and got the following result:

iptables v1.8.8 (nf_tables): unknown option "--key"
Try `iptables -h' or 'iptables --help' for more information.

What is the problem?

I'm trying to run this on openwrt versions 23.05.0-rc1 and 23.05.0-rc2.

from xt_wgobfs.

infinet avatar infinet commented on September 4, 2024

Error messages such as unknown option "--key", unknown option "--obfs", unknown option "--unobfs" happens when the kernel module is not loaded, or libxt_WGOBFS.so is missing.

I've only tested it up to OpenWrt 22.03. If you're on 23.05 or later, I'm afraid I might not be able to help you directly.

from xt_wgobfs.

lirigorm avatar lirigorm commented on September 4, 2024

I tried it on openwrt version 22.03.5. Works. But how to make it work on version 23.05? I did everything the same as on 22.03.5, but it does not work.

from xt_wgobfs.

lirigorm avatar lirigorm commented on September 4, 2024

I tested the new version. It works on openwrt 23.05.

from xt_wgobfs.

infinet avatar infinet commented on September 4, 2024

Great! Glad it works. I am closing this issue.

from xt_wgobfs.

lirigorm avatar lirigorm commented on September 4, 2024

Thanks @infinet !

from xt_wgobfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.