Advice for connecting through Captive Portals

All IP networking related issues
Post Reply
VK3VM
Posts: 9
Joined: Tue Jul 31, 2018 3:23 am

Advice for connecting through Captive Portals

Post by VK3VM »

Hi Folks,

I recently had an interesting time trying to support a friend with a friend who was on a cruise ship with his MMDVM hotspot.

Captive portals can create an issue when roaming with our hotspots.... i.e. easy when you have a GUI and a web browser !

The solution - go back to basics. Use the old ancient Lynx browser from the Linux-base command line.

i.e.

- Log in via SSH or the Web-Console (Configuration / Expert / SSH Access).
- Change to Read-write file system (rpi-rw)
- Update the package list (sudo apt update)
[ - Update all packages (supo apt dist-upgrade <-- Optional and potentially dangerous step !) ]
- Deploy Lynx (sudo apt install lynx).

- Connect to the captive-portal-WiFi network (use the standard WiFi connection steps)

The next steps can be a little complex and not always consistent; a bit of research noting addresses and URL's that you are auto-redirected to before connecting the pistar device may be important.

Note that 99.9% of the time the gateway on the network will also be the captive portal:

- netstat-nr <-- at the terminal prompt will offer this address.

Then use the command-line text "Lynx" browser that you deployed earlier with the address/URL researched to enter the captive portal login information (often which is just an "i agree to terms" button click) !

i.e. lynx http://192.168.51.1 <-- Assuming that is the address/gateway that corresponds to the captive portal server !

Wullah ! And you should be able to use pistar hotspot with many captive portals and free internet services (i.e. "Maccas" and "The King") that allow more than just port 80 access. Yet I also warn that this method is far from easy for most and may not work under all circumstances !

73

Steve I
VK3VM/VK3SIR
W4JEW
Posts: 59
Joined: Sun Aug 12, 2018 12:53 am
Location: Atlanta, GA, United States
Contact:

Re: Advice for connecting through Captive Portals

Post by W4JEW »

Hi Steve,

Glad to see I'm not the only one that remembers using lynx! 8-)

I ended up adding a travel router to my arsenal while traveling with my hotspot. I use a GLinet AR-750 running official OpenWrt (not the OpenWrt version that comes on the router out of the box).

I have the router set up with an SSID on the LAN side that I configure my hotspot to connect to (I try to use Ethernet wherever possible), then I connect another device (phone/computer) to the LAN side of the router.

From a computer/phone, I open a browser and do the following:

1. Configure the wireless settings on the router to connect to the public Wi-Fi (yes - the Wi-Fi support in the router allows for multiple active SSIDs)
2. Satisfy the requirements imposed by the captive portal

Once I've passed the captive portal, then any device on the LAN side of the router can connect to the Internet.

True, it requires you to carry and manage an additional piece of hardware, but the benefits outweigh the downfalls.

-JeffH

Jeff Hochberg
W4JEW
Atlanta, GA
Check out GeorgiaDMR.net - https://www.georgiadmr.net
And on Groups.io - https://groups.io/g/GeorgiaDMR

Jeff Hochberg
W4JEW
Atlanta, GA
User avatar
w7efs
Posts: 335
Joined: Sun Apr 22, 2018 4:26 pm

Re: Advice for connecting through Captive Portals

Post by w7efs »

VK3VM wrote: Mon Dec 23, 2019 8:21 am ...
Then use the command-line text "Lynx" browser ...
The command is lynx, not Lynx. Linux commands|arguments are case-sensitive.
Post Reply