Page 1 of 1

How to Modify TTL on Gargoyle Router to Bypass Hotspot Restrictions?

Posted: Thu Dec 19, 2024 3:50 am
by BugShooter
Hi Folks,
The hotspot I’m connected to has its post-routing TTL set to 1, which restricts internet sharing. How can I modify the TTL value of packets originating from my devices connected to the Gargoyle router before they are sent to the hotspot?

I’m already paying for internet access, but I want a separate network for my devices. Any help would be greatly appreciated!

Re: How to Modify TTL on Gargoyle Router to Bypass Hotspot Restrictions?

Posted: Thu Dec 19, 2024 4:11 am
by Lantis
You can try
iptables -t mangle -I POSTROUTING 1 -j TTL --ttl-set 65

If this works as intended you would add this to a boot up script so it is persistent.

Re: How to Modify TTL on Gargoyle Router to Bypass Hotspot Restrictions?

Posted: Fri Dec 20, 2024 9:39 am
by BugShooter
Thanks for sharing your solution! A slight tweak in the code worked perfectly for me. Appreciate your help!

Code: Select all

iptables -t mangle -I PREROUTING -j TTL --ttl-inc 1
iptables -t mangle -I POSTROUTING -j TTL --ttl-set 65