Messing up with TTL using different variations... still getting throttled and frustrated
Posted: Sat Jan 15, 2022 12:22 pm
Hello all, I have been visiting this forums and others before I decided to take the plunge and post here.
I have several options which include GLiNet router with openWRT (LUCI) or mini PC running currently windows 10 Pro. Either devices can broadcast the signal using a wifi antenna (omni 25dbi). These would be placed outside in a NEMA box powered by solar as my phone (Moto E6) gets good signal outside (25-50mbps vs. 5mbps inside the house (which is a subterranean house btw)). The provider is visible with 5mbps capped.
What I am running now is the phone tethered to the GLiNet router with the TTL set for various TTL numbers (e.g. 65, but I read that 66,65,64, 117, 127, 128 are also possible options). I obviously do not understand much the syntax posted on various forums as some pertain to LTE routers and others when the phone is tethered to a regular router with openwrt (my case). In the syntax below, I also see usb0 in lieu of wwan0 (which I think pertains to my case... I tried that substitution to the syntax below).
I have used the following on the router's firewall custom rules settings:
#start TTL rules
iptables -t mangle -I POSTROUTING -j TTL --ttl-set 64
iptables -t mangle -I PREROUTING -j TTL --ttl-set 64
ip6tables -t mangle -A POSTROUTING -o wwan0 -j HL --hl-set 65
ip6tables -t mangle -I PREROUTING -i wwan0 -j HL --hl-set 65
#end TTL rules
I also tried
#ipv6ttlfix
ip6tables -t mangle -I POSTROUTING -j HL --hl-set 64
ip6tables -t mangle -I PREROUTING -j HL --hl-set 64
#startTTL
iptables -t mangle -I POSTROUTING -j TTL --ttl-set 64
iptables -t mangle -I PREROUTING -j TTL --ttl-set 64
#endTTL
I also tried
iptables -t mangle -I POSTROUTING 1 -j TTL --ttl-set 65
iptables -t mangle -I PREROUTING 1 -j TTL --ttl-set 65
ip6tables -t mangle -I POSTROUTING 1 -j HL --hl-set 65
ip6tables -t mangle -I PREROUTING 1 -j HL --hl-set 65
Because I was unsuccessful, I then tried the miniPC route. So, I tried to hide tethering using the paid version of PDAnet+ on both the phone and PC. The weird thing is that PDAnet on the PC is seing at the USB port (using the about PDAnet option and running the test), that the upload and download are what I measure on the phone (ie. speeds above 40mbps). However, running Ookla speedtest on the PC shows thethered speeds at 5mbps.
I then tried to change the default TTL on the PC using the Regedit and creating a DefaultTTL registry and entering the decimal TTL. I tried several TTLs mentioned above with no luck.
I also pinged my phone using the emulator: ping 8.8.8.8 and I get 114 for TTL. So, I tried TTL of 115 on the PC... without any success. Pinging on the PC using ping 8.8.8.8 gives a TTL of 113 (114-1, which is normal).
Thanks a lot of helping out and get it to work (a wiki showing what those syntaxes above mean would help tremendously as I hate pasting something I do not understand).
Post scriptum: once this is figured out, since I am going to use a bridge to redistribute the signal from the outside of the house router/PC, do I need to also configure these routers in a certain way (TTL is reduced by 1 each time) or I just need to setup the bridge normally?
I have several options which include GLiNet router with openWRT (LUCI) or mini PC running currently windows 10 Pro. Either devices can broadcast the signal using a wifi antenna (omni 25dbi). These would be placed outside in a NEMA box powered by solar as my phone (Moto E6) gets good signal outside (25-50mbps vs. 5mbps inside the house (which is a subterranean house btw)). The provider is visible with 5mbps capped.
What I am running now is the phone tethered to the GLiNet router with the TTL set for various TTL numbers (e.g. 65, but I read that 66,65,64, 117, 127, 128 are also possible options). I obviously do not understand much the syntax posted on various forums as some pertain to LTE routers and others when the phone is tethered to a regular router with openwrt (my case). In the syntax below, I also see usb0 in lieu of wwan0 (which I think pertains to my case... I tried that substitution to the syntax below).
I have used the following on the router's firewall custom rules settings:
#start TTL rules
iptables -t mangle -I POSTROUTING -j TTL --ttl-set 64
iptables -t mangle -I PREROUTING -j TTL --ttl-set 64
ip6tables -t mangle -A POSTROUTING -o wwan0 -j HL --hl-set 65
ip6tables -t mangle -I PREROUTING -i wwan0 -j HL --hl-set 65
#end TTL rules
I also tried
#ipv6ttlfix
ip6tables -t mangle -I POSTROUTING -j HL --hl-set 64
ip6tables -t mangle -I PREROUTING -j HL --hl-set 64
#startTTL
iptables -t mangle -I POSTROUTING -j TTL --ttl-set 64
iptables -t mangle -I PREROUTING -j TTL --ttl-set 64
#endTTL
I also tried
iptables -t mangle -I POSTROUTING 1 -j TTL --ttl-set 65
iptables -t mangle -I PREROUTING 1 -j TTL --ttl-set 65
ip6tables -t mangle -I POSTROUTING 1 -j HL --hl-set 65
ip6tables -t mangle -I PREROUTING 1 -j HL --hl-set 65
Because I was unsuccessful, I then tried the miniPC route. So, I tried to hide tethering using the paid version of PDAnet+ on both the phone and PC. The weird thing is that PDAnet on the PC is seing at the USB port (using the about PDAnet option and running the test), that the upload and download are what I measure on the phone (ie. speeds above 40mbps). However, running Ookla speedtest on the PC shows thethered speeds at 5mbps.
I then tried to change the default TTL on the PC using the Regedit and creating a DefaultTTL registry and entering the decimal TTL. I tried several TTLs mentioned above with no luck.
I also pinged my phone using the emulator: ping 8.8.8.8 and I get 114 for TTL. So, I tried TTL of 115 on the PC... without any success. Pinging on the PC using ping 8.8.8.8 gives a TTL of 113 (114-1, which is normal).
Thanks a lot of helping out and get it to work (a wiki showing what those syntaxes above mean would help tremendously as I hate pasting something I do not understand).
Post scriptum: once this is figured out, since I am going to use a bridge to redistribute the signal from the outside of the house router/PC, do I need to also configure these routers in a certain way (TTL is reduced by 1 each time) or I just need to setup the bridge normally?