Need help change TTL, MTU and MSS in WiFiX

Topics addressing TTL settings for Throttling, Tethering and Hotspot Usage
Forum rules
Use the SEARCH function for related topics PRIOR to posting a new topic on the same subject.
Post Reply
User avatar
giant22000
Posts: 6
Joined: Tue Nov 05, 2019 2:17 pm
Has thanked: 2 times
Been thanked: 3 times

Need help change TTL, MTU and MSS in WiFiX

Post by giant22000 »

I need help on changing the TTL, MTU and MSS values with WiFiX firmware. I’ve found that if I navigate to Firewall > Custom TTL it will allow me change to a few pre-defined TTL settings but not the TTL value I need. How do I change to TTL value of 100?

Also I’ve found that I can “Override MTU” if I navigate to Network > Interfaces > “Edit” wwan > Advanced Settings. Is this the correct place to change this value?

I’ve found nowhere to change the MSS value. Any help would be appreciated. Thanks.
Viper67857
Posts: 166
Joined: Wed May 13, 2020 7:04 pm
Has thanked: 12 times
Been thanked: 45 times

Re: Need help change TTL, MTU and MSS in WiFiX

Post by Viper67857 »

MSS clamping and custom ttl settings will require entering custom firewall rules. That's a bit above my head right now, but you should maybe search around the OpenWrt site for documentation on those rules.
User avatar
Didneywhorl
Posts: 3635
Joined: Fri Mar 23, 2018 5:37 pm
Location: USA
Has thanked: 1369 times
Been thanked: 761 times
Contact:

Re: Need help change TTL, MTU and MSS in WiFiX

Post by Didneywhorl »

For TTL, go to Network-->Firewall-->Custom Firewall Rules (left of "Custom TTL Rules")

And enter your TTL modifications there. Here are my rules I use:

#start TTL rules Change all the values of "65" to any you choose, maybe 64, or 117 seems popular for Verizon
iptables -t mangle -I POSTROUTING -o wwan0 -j TTL --ttl-set 65
iptables -t mangle -I PREROUTING -i wwan0 -j TTL --ttl-set 65

#Start IPV6 TTL (hl) rules … usually onlyneeded for T-Mobile and sometimes Verizon, not recommended for ATT
#ip6tables -t mangle -I POSTROUTING -o wwan0 -j HL --hl-set 65
#ip6tables -t mangle -I PREROUTING -i wwan0 -j HL --hl-set 65
#end TTL rules


Delete the "#" from the lines where it says 'ip6tables' if you want to also use ipv6 "TTL" rules


The MTU Ive never played with
LoveMeSomeCALTE
Posts: 249
Joined: Sun Jul 05, 2020 2:29 pm
Has thanked: 239 times
Been thanked: 30 times

Re: Need help change TTL, MTU and MSS in WiFiX

Post by LoveMeSomeCALTE »

Didneywhorl wrote: Sat Aug 22, 2020 10:12 pm #Start IPV6 TTL (hl) rules … usually onlyneeded for T-Mobile and sometimes Verizon, not recommended for ATT
Didneywhorl, do you remember why modifying the Hop Limit field in IPv6 header wasn't recommended for ATT?
User avatar
Didneywhorl
Posts: 3635
Joined: Fri Mar 23, 2018 5:37 pm
Location: USA
Has thanked: 1369 times
Been thanked: 761 times
Contact:

Re: Need help change TTL, MTU and MSS in WiFiX

Post by Didneywhorl »

LoveMeSomeCALTE wrote: Tue Oct 05, 2021 1:17 pm Didneywhorl, do you remember why modifying the Hop Limit field in IPv6 header wasn't recommended for ATT?
Things change, but in general it wasn't necessary to overcome hotspot data limits, as ATT seemed to use APNs for data use channeling. Not really sure to be honest, outside of that.
LoveMeSomeCALTE
Posts: 249
Joined: Sun Jul 05, 2020 2:29 pm
Has thanked: 239 times
Been thanked: 30 times

Re: Need help change TTL, MTU and MSS in WiFiX

Post by LoveMeSomeCALTE »

Didneywhorl wrote: Sun Oct 10, 2021 3:38 pm Things change, but in general it wasn't necessary to overcome hotspot data limits, as ATT seemed to use APNs for data use channeling. Not really sure to be honest, outside of that.
Hey, Thank You for responding!

So, AFAYR, modifying the Hop Limit field in IPv6 header wasn't necessary but also didn't affect the plan/connection in any other way.

In other words, if I would use the same modem+router alternately with ATT and Tmo cards, the plan/connection would continue to work?
Didneywhorl wrote: Sun Oct 10, 2021 3:38 pm ATT seemed to use APNs for data use channeling
So ATT has `broadband` and `NXTGENPHONE` APNs - is there a specific one it uses for data use channeling?
User avatar
Didneywhorl
Posts: 3635
Joined: Fri Mar 23, 2018 5:37 pm
Location: USA
Has thanked: 1369 times
Been thanked: 761 times
Contact:

Re: Need help change TTL, MTU and MSS in WiFiX

Post by Didneywhorl »

Using TTL and HL mamgles on ATT, that match Tmo, doesn't seem to have a negative effect on the ATT connection.

I've not heard of any data count difference betwern the two, though the non BROADBAND APNs seem to require imei matching to account registered device.
Post Reply

Return to “TTL Settings - Throttling, Tethering and Hotspot Usage”