-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Openwrt support #9
Comments
Hi, I'm definitely interested in creating OpenWrt packages for Mimic! However, Mimic currently requires at least Linux 6.1 (due to usage of ringbuf dynptr), while OpenWrt 23.05 uses 5.15. It may be feasible to retrofit Even this is resolved, availability on MIPS and 32-bit Arm still needs to be tested. I don't have any spare router to test now but it's definitely worth trying. |
how about drop packets before handshake? I have a router(GL-AXT1800) to try this, but dont have any idea to start a kernel module dev
|
Sure, I'll add build flags to disable that part first.
I'm trying OpenWrt SDK today and I plan to post build scripts shortly after. You can then add the package feed to OpenWrt SDK and install the produced .ipk file directly to test it. Thanks in advance! |
Just noticed |
Seems BTF kfuncs support is only added in around 5.18~6.0, so we're out of luck with OpenWrt 23.05's 5.15 kernel. Building on main should be fine, but we need to wait for their new major release with 6.1/6.6 kernel to be stable. |
GL-AXT1800 is not officaly supported by openwrt, and no IPQ6000 under |
Built Mimic against snapshot OpenWrt armsr/armv7 with BTF on, sadly 32-bit Arm's BPF isn't capable of calling kernel function even on Linux 6.6.
Mimic should run fine on x86_64 and aarch64. Will push build script and try OpenWrt on more platforms using QEMU later. |
Encountered some issues in building kmod-sched-bpf in OpenWrt, which is required by Mimic for its TC egress path. Reported to openwrt/openwrt#16071. Other than this, Mimic should be able to run on OpenWrt main branch. |
I've create a OpenWrt package feed for Mimic: https://github.com/hack3ric/mimic/tree/openwrt After some hacking, kernel BTF and dynptr dependency is disabled in OpenWrt package script. However, on 23.05 it still fails with "Invalid argument" and no reason. I guess it is from the verifier. It works on snapshot build and should run fine on all (little-endian) platforms, including 32-bit ARM, though. |
not lucky for me, waste too much time on these build script shit, give up now. |
Thanks for your work! it's wonderful
Do you hava any plan to make this work on openwrt?
The text was updated successfully, but these errors were encountered: