Tethering: Add xt_HL.ko to kernel - how to add a module to the kernel

Search This thread


Senior Member
Nov 13, 2008

Service: Tmobile, Phone: Pixel 3a, rooted, Magisk

I'm able to setup my Tmobile phone's hotspot and share data to my devices. However, it's limited to ~0.5Mpbs. I've found many guides, Magisk modules, etc. I managed to get my Laptop/PC to get over this throttle limit by:
*Using the "VPN Hotspot" app which masks the laptops data so it looks like its coming from the phone
*Set TTL on Laptop/PC to 65

Issue: I can't set the TTL on many devices that connect so they still get throttled. Using an app like "TTL Editor" doesn't work (it fails), because I'm guessing I don't have the requirements: "Kernel support for Netfilter TTL packet mangling for your kernel (xt_HL.ko)" https://play.google.com/store/apps/details?id=org.segin.ttleditor&hl=en_US&gl=US

I tried stock ROMs Android 10 & 11. I also tried LineageOS18.1 which mentions this module so was hoping it would work: https://github.com/LineageOS/android_kernel_google_msm-4.9/search?q=xt_HL , but perhaps more needs to be done? I ran into things like iptables patch-o-matic https://netfilter.org/projects/patch-o-matic/index.html, not sure if this is needed, but cant find any info on how to even patch if that's needed.

su iptables -t mangle -A POSTROUTING -j TTL --ttl-set 64
Error: iptables v1.8.4 (legacy) unknown option "--ttl-set"

Doesnt do anything either:
echo "65" > /proc/sys/net/ipv4/ip_default_ttl

I have career in computing/dev, but my Linux is limited & have never compiled a Kernel. I found this: https://wiki.lineageos.org/devices/sargo/build but if I even got that far and was able to succeed, I'm not sure how to add this module - or if that's even what I need.

Any help or a clue would be much appreciated!