Steps to enable TTL modification on Franklin T9:
- Read this blog
- Based on the blog, enable SSH.
- Once SSH is enabled, place this file in
/etc/init.d/set_ttl
:
#!/bin/bash
### BEGIN INIT INFO
# Provides: ttl
# Required-Start: $remote_fs $syslog $networking
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: Set TTL in iptables
### END INIT INFO
TTL=66
INTERFACE=rmnet_data0
case "$1" in
start)
echo "Setting TTL on $INTERFACE to $TTL..."
ip6tables -t mangle -I POSTROUTING -o $INTERFACE -j HL --hl-set $TTL
ip6tables -t mangle -I PREROUTING -i $INTERFACE -j HL --hl-set $TTL
iptables -t mangle -I POSTROUTING -o $INTERFACE -j TTL --ttl-set $TTL
iptables -t mangle -I PREROUTING -i $INTERFACE -j TTL --ttl-set $TTL
;;
*)
echo "$1 is not implemented"
;;
esac
exit 0
- Adjust
TTL
to the value you desire chmod 755 /etc/init.d/set_ttl
cd /etc/rc5.d/; ln -s ../init.d/set_ttl S99set_ttl
reboot
If you upgrade firmware, this will need to be redone.
You probably need to change the TTL on the desktop. If it’s Windows 10:
Open Registry Editor (regedit.exe).
From the HKEY_LOCAL_MACHINE subtree, go to the following key: \SYSTEM\CurrentControlSet\Services\Tcpip\Parameters.
In the right pane, add the following value: Name: DefaultTTL. Type: REG_DWORD. Valid Range: 1-255. (Try 64 or 65)
After that, please restart the computer and check the result.