Settings

Theme

Show HN: eBPF Based Unlimited Hotspot for Android

github.com

3 points by Gave4655 2 months ago · 2 comments

Reader

awsanswers 2 months ago

I had ChatGPT explain why this is works as a unlimited hotpot. Very cool: "It works because carriers detect tethering partly by looking at TTL values. Android subtracts 1 from TTL when hotspot/tethering packets are forwarded, so the carrier sees a different TTL and knows the traffic came from a tethered device. Your eBPF program increments the TTL back by +1, hiding the fact that the packet was forwarded through your phone. So to the carrier, the traffic looks like it originated directly from the phone, not from a tethered device. That defeats one of the carrier’s tethering-detection methods."

  • Gave4655OP 2 months ago

    in normal you would do use this trick. but however new phones does not include the kernel module that helps you to modify the TTL using iptables

            iptables -t mangle -A PREROUTING -i "$INTERFACE" -j TTL --ttl-inc 1
    
            iptables -t mangle -I POSTROUTING -o "$INTERFACE" -j TTL --ttl-inc 1

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection