apernet / OpenGFW

OpenGFW is a flexible, easy-to-use, open source implementation of GFW (Great Firewall of China) on Linux
https://gfw.dev/
Mozilla Public License 2.0
9.64k stars 725 forks source link

Couldn't load match `connmark':No such file or directory (WSL) #24

Closed mar-heaven closed 8 months ago

mar-heaven commented 8 months ago

failed to parse config {"error": "invalid config: io: running [/usr/sbin/iptables -t filter -C INPUT -m connmark --mark 1001 -j ACCEPT --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match connmark':No such file or directory\n\nTryiptables -h' or 'iptables --help' for more information

tobyxdd commented 8 months ago

Run as root

mar-heaven commented 8 months ago

@tobyxdd It's already under root

tobyxdd commented 8 months ago

What device and kernel version are you running?

mar-heaven commented 8 months ago

ThinkBook14 G5+ APO CPU: AMD Ryzen 7 7840H with Radeon 780M Graphics uname -a Linux Ginta 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

tobyxdd commented 8 months ago

Oh, this project does not support WSL unfortunately, as its kernel is stripped down by Microsoft and lacks a lot of networking features

mar-heaven commented 8 months ago

I got it, will Windows be supported in the future?

zhufengning commented 5 months ago

wsl可通过自己编译内核开启相关功能。不过我的报错跟你的不一样,不知道行不行。参考:https://github.com/microsoft/WSL/issues/6044#issuecomment-1197337831