Comments (21)
Captive portal implementation is in master.
from comitup.
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.
from comitup.
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
to have it a bit more userfriendly. ;-)
from comitup.
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.
from comitup.
Maybe this could help you?
from comitup.
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).
from comitup.
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.
from comitup.
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.
from comitup.
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.
from comitup.
from comitup.
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 it show when trying to reach any website. Trying to visit google.com brings up the Comitpu-Website. But the URL in the addressbar is still "google.com".
Then choosing the WiFi and entering the key works like expected.
But there is a little mess in all of the python files regarding the version. Some files need 2.7 and others 3.
When having the wrong default version set up, it doesn't work. the networkmanager doesn't work properly. and setting things up via comitup-cli doesn't work either.
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.
from 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.
from comitup.
Hmm.. strange..
Just wrote a new B+ SD-Card and started over.
After cloning the repo and runninig python3 setup.py install I get:
dnslib is missing (solved with sudo pip3 install dnslib)
networkmanager is missing (sudo pip3 install python-networkmanager)
the name org.freedesktop.networkmanager was not provided by any .service files (sudo apt-get install network-manager)
And now I'm ending up with
"dbus.exceptions.DBus.Exception: org.freedesktop.systemd1.NoSuchUnit: Unit comitup-web.service not found."
Any idea what went wrong?
from comitup.
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.
from comitup.
dnslib should be this one.
from comitup.
okay, its getting worse and worse.. nothing works anymore. exceptions over exceptions.
next SD card....
from comitup.
from comitup.
The more the merrier. I'll see about ensuring the repo is matched to my latest by Friday EOB a the latest.
from comitup.
Trivial change pushed. I'll be packaging dnslib separately for stretch installs. Pip on the Pi for now.
from comitup.
Is it available over your PPA repository already?
from comitup.
No, it is not ready for prime time yet.
from comitup.
Related Issues (20)
- Web service won't start DBus exception HOT 5
- Question: Best way to execute python code after raspberry pi has connected to router? HOT 4
- comitup-cli x HOT 3
- Information, installation script. HOT 7
- Installation fails now in Raspbian GNU/Linux 11 (bullseye) HOT 6
- Default username and password change HOT 2
- Installing comitup when Motioneye has been installed prevents comitup-xxx.local login HOT 4
- Comitup service failed to start on Banana Pi HOT 6
- Can't connect to WiFi's containing ' HOT 1
- Installation problems HOT 5
- RPM Builds HOT 1
- Compatibility problem with Python 3.12 HOT 1
- [feature] Import existing networks from wpa_supplicant HOT 8
- 100% CPU Usage in Python 'commit up' Process HOT 2
- Comitup-Web no longer starts (after some updates?) HOT 2
- Can't connect to public wifi that contains a captive portal HOT 3
- Simulate internet connection HOT 2
- comitup with newest raspios Bookworm fails (Fix referenced) HOT 10
- Android No capitive logon comitup 38.1 HOT 2
- Login via ssh fails HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comitup.