Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Since you mentioned it, on MacOS when tethering:

sudo sysctl -w net.inet.ip.ttl=65

When done, switch it back:

sudo sysctl -w net.inet.ip.ttl=64

I went from 0.3Mbps on T-Mobile to 50+ Mbps with this; on providers that limit hotspot speed by examining TTL, this can be an effective way to get around it.

(They assume if they see TTL as one lower than expected, data is passing through a hotspot/phone instead of directly from the phone.)



There is no harm in keeping it at 65 permanently. Unless you think that TTL somehow helps to more uniquely identify you.


Good to know! I'm not a networking expert so figured leaving the default made sense just in case.


Linux uses a similar command:

sudo sysctl net.ipv4.ip_default_ttl=65

I assume there is an ipv6 version as well, but I haven't needed it.


net.ipv6.conf.all.hop_limit=65 + net.ipv6.conf.lo.hop_limit=65


You're the real mvp on this thread. Thanks I figured this was in place but never thought through the ttl bit.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: