Captive Portal forcing login browser on Android

2,115 views
Skip to first unread message

Kirk Wilson

unread,
Mar 7, 2016, 7:28:58 PM3/7/16
to LibraryBox
It would appear that on some device the captive portal forces the 'login' web browser launch.  This by itself is ok, However,  it also seems that while one can view content on the 'native forced browser' you can't download with a long hold on the item.  If you close the 'login' browser and open a new browser session then the download option by long hold works fine.

Any idea how to fix this?

Kirk

Matthias Strubel

unread,
Mar 9, 2016, 3:37:19 PM3/9/16
to libra...@googlegroups.com
We are talking about android. Seriously? Sounds more like iPhone a few years ago, which acts exactly like that.

Can you figure out which Android version is affected?

--
You received this message because you are subscribed to the Google Groups "LibraryBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to librarybox+...@googlegroups.com.
To post to this group, send email to libra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/librarybox/f92d2711-f94d-45c1-b1ce-b7e3a41b2b9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matthias Strubel

unread,
Mar 9, 2016, 3:39:22 PM3/9/16
to libra...@googlegroups.com
The LibraryBox 2.1 should be shipped with a hack, that fakes the needed reply to circumvent that.
I'm interested into the issue why that does not help.

Ninjaw P.B.

unread,
Mar 9, 2016, 3:59:46 PM3/9/16
to LibraryBox
I am disapointed, I should see any login browser ?? Both latest PirateBox and LibraryBox never opened anything ... unfortunally. Au contraire i'm stuck with the chat bug on chrome mobile (absolutly refuse to refresh) and the https issue.

Im am using two Android5 high end samsung phone & tablet. And there is no such thing as default browser ? I can pick the browser I want, and i want Chrome+Firefox

Matthias Strubel

unread,
Mar 9, 2016, 4:01:12 PM3/9/16
to libra...@googlegroups.com
Ninjaw, no you should not. We do everything to prevent this!

Matthias Strubel

unread,
Mar 10, 2016, 12:49:59 AM3/10/16
to libra...@googlegroups.com
Ninjaw, I wrote a mod, that implements - at least - a small login page..

http://piratebox.aod-rpg.de/dokuwiki/doku.php/captive_portal

Allan Lee

unread,
Mar 10, 2016, 6:52:36 PM3/10/16
to LibraryBox

Allan Lee

unread,
Mar 10, 2016, 6:53:57 PM3/10/16
to LibraryBox

I first noticed this issue with my BLU LIFE ONE X with Android 5.1

On Monday, March 7, 2016 at 4:28:58 PM UTC-8, Kirk Wilson wrote:

Allan Lee

unread,
Mar 10, 2016, 6:58:02 PM3/10/16
to LibraryBox
The cases I am specifically aware of happened, I believe, on devices with both LibraryBox 2.0 and 2.1, but all with the H5ai hack as well. I donꞌt understand the inner working of the LibraryBox. Is there any chance the H5ai has anything to do with the issue?

On Monday, March 7, 2016 at 4:28:58 PM UTC-8, Kirk Wilson wrote:

Allan Lee

unread,
Mar 10, 2016, 7:21:51 PM3/10/16
to LibraryBox
Here is a partial screen capture showing the "Sign-in to network" header which replaces the url bar.


On Monday, March 7, 2016 at 4:28:58 PM UTC-8, Kirk Wilson wrote:
Screenshot_2016-02-22-14-58-025.jpg

Ninjaw P.B.

unread,
Mar 12, 2016, 5:48:43 AM3/12/16
to LibraryBox
Hi matthias, It's very interesting, however now that I got two LibraryBox, I guess i wouldn't like to switch of my mesh. I would have a question (yes again) though
Why didn't I see that mod anywhere before ? I mean it's not on both sites, and I never understood your page: it seems that nothing is working there, all links are dead : for an example: how could i find this mod myself ?

Matthias Strubel

unread,
Mar 12, 2016, 6:45:56 AM3/12/16
to libra...@googlegroups.com
> Why didn't I see that mod anywhere before ?  I mean it's not on both sites,
Because it is not an official mod, like changing the Hostname or SSID. It is like a mod from a community member. I know, a bit difficult to understand, but see it as something regarding supporting the mod.
I'm sorry it is hard to find, but I also announced it here in this mailing-list before.


> and I never understood your page: it seems that nothing is working there, all links are dead : for an example: how could i find this mod myself ?
Yes, I need to cleanup my old development wiki. It is back from 2012 and most content was merged into piratebox.cc , e few things are leftovers for explaining and inofficially documenting.



Jakob Jochmann

unread,
Mar 15, 2016, 3:14:14 PM3/15/16
to LibraryBox
Thank you for your patience and your hard work, Matthias!

With regard to the mod - I'm about to do some more tests, but before I do I want to make sure I'm not putting my modded box in danger of bricking:

 - What do I need to do to do a fresh install of librarybox (a reset) on a box that has been modded with the nodogsplash mod?

Thanks,
Jakob

Matthias Strubel

unread,
Mar 15, 2016, 3:17:42 PM3/15/16
to libra...@googlegroups.com
I reviewed the mod quickly, and I think you can follow the normal reflash procedure.

best regards
Matthias

Jakob Jochmann

unread,
Apr 8, 2016, 11:16:17 AM4/8/16
to LibraryBox
As promised, a quick update:

Ran the unofficial mod to add a nodogsplash captive portal to a vanilla librarybox installation on the tp-link3020. With a few edits to the nodogsplash splash page and to the librarybox contents folder, I managed to get a pretty robust setup going, that worked well across several OS. iOS is super smooth (at least on first try), but a bit slow, android is hit or miss, but android 6 seemed to work pretty reliably. android simply has more options for user error to enter the equation, as there are multiple "accept" or "dismiss" screens popping up, plus users can configure their WiFi to follow user defined rules.

Here's what I did:
1. edit nodogsplash splash page to include a brief explanation "you are not using the internet" and a call to action "I understand" that triggers the activation link.
2. create a new index.html in librarybox content that displays yet another call to action and points to start.html
3. create a new start.html in librarybox content where (finally) the real content is displayed.

Now, this is already a pretty robust setup. First fallback was to ask users to enter the hostname as an address into their browser. The last-resort fallback was to tell users to enter the IP-address for the librarybox into their browser.

Any other ideas for improvement, feedback?

Ninjaw P.B.

unread,
Jul 1, 2016, 6:17:36 AM7/1/16
to LibraryBox
I finally made the step and get bored of mesh and that https issue.
So I followed steps to install nosplashdog, and it worked. Well, not as I wanted as the splashscreen does not show by itself and I still get an unavailable page error on every https page including google.
Worst of all I completly lost Putty access or FTP access, and the PBmesh wifi is still showing.
I had before carefully tried to remove mesh and activate admin ftp.

Ninjaw P.B.

unread,
Jul 1, 2016, 8:50:47 AM7/1/16
to LibraryBox
Please note that I'm actually trying to refresh my portable librarybox to see if it works better, and I succesfully customized my login page. As it still kinda work most of the time, i am still happy with it and will keep it.

Ninjaw P.B.

unread,
Jul 1, 2016, 2:42:51 PM7/1/16
to LibraryBox
Crap, same stuff, it kills SSH, telnet, and ftp no matter what

Ninjaw P.B.

unread,
Sep 22, 2016, 6:37:33 AM9/22/16
to LibraryBox
Hi matthias, would you have a solution to use captive portal without losing access to ftp

Matthias Strubel

unread,
Sep 22, 2016, 6:44:16 AM9/22/16
to libra...@googlegroups.com
I am wondering about that, I need to check that.. but afaik there should be no limitation based on the nodogsplash configuration

To unsubscribe from this group and stop receiving emails from it, send an email to librarybox+unsubscribe@googlegroups.com.

To post to this group, send email to libra...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages