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.
are you able to help me modify ttl settings? New to coding and i've unlocked my T9 and can access root of device via wifi using mac terminal but struggling on what to do next. I created a file with the code you mentioned but I don't know how to properly code in terminal to move the file to the Franklin T9