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

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
BugShooter
Posts: 15
Joined: Tue Aug 21, 2018 1:45 pm
Location: United Arab Emirates

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

Post 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!
WDR4300 v1 on 1.10.x
WR841ND v7 on 1.10.x

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

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

Post 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.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

BugShooter
Posts: 15
Joined: Tue Aug 21, 2018 1:45 pm
Location: United Arab Emirates

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

Post 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
WDR4300 v1 on 1.10.x
WR841ND v7 on 1.10.x

Post Reply