How to change the TTL value to 64 (openWRT)
Posted: Mon Nov 06, 2023 2:04 am
Of course, the idea of changing TTL to 64 in short is that the router is like a mobile (full speed and without restrictions, meaning that you are installed the SIM on your mobile).
The idea is a little complicated but easy for the person who has already rooted and opened the telnet port on the router (I have already explained it)
First: Open the putty program and call telnet port number 23
Second: We create an empty script file and to transfer ttl.sh
Third: We modify the file through the following command:
Vi /etc/init.d/ttl.sh
Fourth: We write these commands and then save the file by command
Sleep 45
IPtables -t mangle -F
Ip6tables -t mangle -I POSTROUTING -o rmnet_data0 -j HL --hl-set 64
Ip6tables -t mangle -I PREROUTING -i rmnet_data0 -j HL --hl-set 64
Iptables -t mangle -I POSTROUTING -o rmnet_data0 -j TTL --ttl-set 64
Iptables -t mangle -I PREROUTING -i rmnet_data0 -j TTL --ttl-set 64
Exit 0
Fifth, we write the following command:
Chmod 755 /etc/init.d/ttl.sh
Sixth: We write the following command:
Vi /etc/init/early_init.sh
Seventh: We write the following command:
/Etc/init.d/ttl.sh &
Then we save the edits by command:x
Finally, we are making a restar for the router and congratulations on changing the value of TTL to 64.
The idea is a little complicated but easy for the person who has already rooted and opened the telnet port on the router (I have already explained it)
First: Open the putty program and call telnet port number 23
Second: We create an empty script file and to transfer ttl.sh
Third: We modify the file through the following command:
Vi /etc/init.d/ttl.sh
Fourth: We write these commands and then save the file by command
Sleep 45
IPtables -t mangle -F
Ip6tables -t mangle -I POSTROUTING -o rmnet_data0 -j HL --hl-set 64
Ip6tables -t mangle -I PREROUTING -i rmnet_data0 -j HL --hl-set 64
Iptables -t mangle -I POSTROUTING -o rmnet_data0 -j TTL --ttl-set 64
Iptables -t mangle -I PREROUTING -i rmnet_data0 -j TTL --ttl-set 64
Exit 0
Fifth, we write the following command:
Chmod 755 /etc/init.d/ttl.sh
Sixth: We write the following command:
Vi /etc/init/early_init.sh
Seventh: We write the following command:
/Etc/init.d/ttl.sh &
Then we save the edits by command:x
Finally, we are making a restar for the router and congratulations on changing the value of TTL to 64.