-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Captive Portal functionality #17
Comments
I'm not sure what you are asking. If you want to implement a captive portal on the Pi, that's not a Comitup question. Once the outbound connection is made, the comitup web interface is taken down, and replaced with web_service, if defined. Just point that to a captive portal implementation (which I imaging exists somewhere). If you want to automatically bypass a captive portal, it would be hard to make a general solution for that. |
When connecting with a device to the running comitup, it would be nice to get the webpage from comitup without the need to open the browser and go to 10.41.0.1 |
Ah. It would be fairly easy to do a redirect for http traffic. For https, it's not really practical, unless your device (e.g. cell phone) has some special logic for it already. It would be interesting to try. |
Well, not really. adding all this to the comitup system would be (IMHO) unecessarily complex. I do agree that a reformatting of the basic WiFi page can be done rather easily (first). |
Haven't had the chance to test this as I'm on vacation this and the next week. But I'm looking forward giving it a try a soon as I'm back at my Pi. |
The captive-portal branch has a web page that comes up correctly, but doesn't yet totally work with Android or IOS. I'm not getting the config parameters from Android for some reason, and IOS needs the ICMP *-unreachable ICMP filters added back into iptmgr. Let me know if you have any luck with that. |
I'm still 6 days away from being back at my desk, but I just found this while researching the topic: https://tools.ietf.org/html/rfc7710 Hopefully it will assist you. |
Interesting. I'm just hijacking external web requests. That part is
working- phones detect the login requirement. It's the login in part that
is the problem.
|
Okay, I figured out that there are several issues. Primary at my iOS Device the Captive Portal Page doesn't show up automatically after connecting to the comitup-XXXX Hotspot. But there is a little mess in all of the python files regarding the version. Some files need 2.7 and others 3. So I would suggest you'll try to get all files and dependencies to one version (best 3.5). I'll go thtough the ieft-paper and check if I can adapt that into comitup. |
On IOS, I'm seeing the behavior I saw before blocking outbound ICMP unreachables - the AP connection is dropped after a couple of seconds (6ce7c1c). Where are you seeing a python 2.7 requirement? I had an obsolete dependency on the configparser deb, but I don't see anywhere 2.7 being called out. |
Hmm.. strange.. Just wrote a new B+ SD-Card and started over. dnslib is missing (solved with sudo pip3 install dnslib) And now I'm ending up with Any idea what went wrong? |
The dnslib requirement is new with the captive portal. I think I made a local copy to deal with a missing deb. I'm not near the code right now. For the rest, I use deb installs. Look at the dependencies in the debian/control file in the debian branch. That is also where systemd service files are set up. You can work around this by installing an old comitup deb, then deploying new code by copying to /usr/share/comitup. Or shortcut by starting with the Comitup image. |
dnslib should be this one. |
okay, its getting worse and worse.. nothing works anymore. exceptions over exceptions. next SD card.... |
Yikes!
I'll try to jump in over the weekend ... I'm interested in helping if I can.
Charlie
From: Krebbi <notifications@github.com>
To: davesteele/comitup <comitup@noreply.github.com>
Cc: Charlie Lindahl <cyberchuck2000@yahoo.com>; Comment <comment@noreply.github.com>
Sent: Wednesday, September 5, 2018 12:17 PM
Subject: Re: [davesteele/comitup] Captive Portal functionality (#17)
okay, its getting worse and worse.. nothing works anymore. exceptions over exceptions.next SD card....—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The more the merrier. I'll see about ensuring the repo is matched to my latest by Friday EOB a the latest. |
Trivial change pushed. I'll be packaging dnslib separately for stretch installs. Pip on the Pi for now. |
Captive portal implementation is in master. |
Is it available over your PPA repository already? |
No, it is not ready for prime time yet. |
How difficult would it be to integrate a real captive portal functionality to this package like descriped here?
https://en.wikipedia.org/wiki/Captive_portal#Implementation
The text was updated successfully, but these errors were encountered: