forked from ipfire/ipfire-2.x
-
Notifications
You must be signed in to change notification settings - Fork 5
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
lunatik addon for BPFire #40
Comments
vincentmli
added a commit
that referenced
this issue
Sep 15, 2024
lunatik has LuaXDP that supports scripting XDP for TLS SNI parsing and many other scripting featuers for kernel. see lunatik build workaround in detail luainkernel/lunatik#189 #40 Signed-off-by: Vincent Li <[email protected]>
lunatik change:
|
vincentmli
added a commit
that referenced
this issue
Sep 17, 2024
error when run lunatik which loads lunatik kernel modules root@bpfire-2 lua]# lunatik run examples/filter/sni false [root@bpfire-2 lua]# dmesg [ 330.411665] lunatik: loading out-of-tree module taints kernel. [ 330.411680] lunatik: module verification failed: signature and/or required key missing - tainting kernel [ 330.433955] Kernel module BTF mismatch detected, BTF debug info may be unavailable for some modules [ 330.767701] missing module BTF, cannot register kfuncs BPFire chroot build mount /sys/kernel/btf/vmlinux which is the host binary vmlinux BTF to build against lunatik kernel module, which result in above error. adjust BPFire kernel build to save the binary vmlinux BTF to chroot /lib/modules/6.6.15-ipfire/build/vmlinux for lunatik kernel module. create the vmlinux.h from the same binary vmlinux BTF for the ebpf https.o lunatik kernel module is depending on kernel build, adjust the lunatik build accordingly when kerne upgrade in future. See #40 see luainkernel/lunatik#189 Signed-off-by: Vincent Li <[email protected]>
lunatik filter sni for BPFire has limitation for chrome browser in luainkernel/lunatik#193 and chrome browser is very popular |
vincentmli
added a commit
that referenced
this issue
Oct 1, 2024
Lunatik sni filter currently does not work for BPFire when chrome browser is used due to clienthello > 1500 bytes, XDP TLS/SSL has the same issue, to block domain access, it appears XDP DNS domain blocking works more reliable than SNI, so if there is need to block chrome browser for some domain, use XDP DNS domain blocking as mitigation. see #40 Signed-off-by: Vincent Li <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
following diff to lunatik Makefile to build lunatik addon in BPFire
see luainkernel/lunatik#189
The text was updated successfully, but these errors were encountered: