GL-MT1300 redirect to hotel captive portal times out

Hello all, I had been using the GL-MT1300 successfully first with a test at home and then at two hotels that had captive portals.

But now at this third hotel which is the same franchise as the second one and same type of portal my GL connects but clients on the GL get an “err_connection_timed_out” when opening a tab and getting redirected.

I’ve done the following:

  • disabled dns rebind attack protection
  • reset firmware
  • cloned MAC of phone to GL the turn off phone wifi
  • changed laptop network settings to have DNS the IP my phone gets when direct connect to hotel (same as their gateway, 10.50.0.1).

Nothing I try works.

I can directly connect phone and laptop to hotel wifi and then log into the captive portal, but not via GL-MT-1300.

Got it, and I think this applies to a great many that have had hotel wifi issues:

The particular provider for this hotel used a simple trick to try and prevent travel routers, their captive portal auth page is sent with a TTL of 1.

Added this to the custom firewall option:

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

First line I don’t think is necessary but is taken from another blog, and the second line I had to google for as I didn’t really need the outgoing to have a higher TTL but the incoming.

2 Likes