GL-inet TTL to 65

Here are some command that I use that works properly on my device

Devices that I use

  1. iPhone 13 mini
  2. GL-inet AX1800 Slate
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65
iptables -t mangle -I POSTROUTING -j TTL --ttl-set 65
iptables -t mangle -A PREROUTING -i sta0 -j TTL --ttl-set 65
iptables -t mangle -A POSTROUTING -i sta0 -j TTL --ttl-set 65
iptables -t mangle -A PREROUTING -i br-lan -j TTL --ttl-set 65
iptables -t mangle -A POSTROUTING -i br-lan -j TTL --ttl-set 65
iptables -t mangle -A POSTROUTING -s 172.20.10.1 -j TTL --ttl-set 65
iptables -t mangle -A POSTROUTING -s 172.20.10.6 -j TTL --ttl-set 65
ip6tables -t mangle -I POSTROUTING -j HL --hl-set 65
iptables -t mangle -I POSTROUTING -j TTL --ttl-set 65

Remember check your “WWAN” and “LAN” and Hotspot Gateway IP address and replace them accordingly.

References:
1. https://gist.github.com/zoonderkins/c48e42fca1220267657d62d25d3ec053
2. https://forum.openwrt.org/t/changing-ttl-on-the-new-openwrt-versions/203250