Giter Site home page Giter Site logo

Comments (21)

davesteele avatar davesteele commented on May 20, 2024 1

Captive portal implementation is in master.

from comitup.

davesteele avatar davesteele commented on May 20, 2024

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.

krebbi avatar krebbi commented on May 20, 2024

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.

davesteele avatar davesteele commented on May 20, 2024

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.

krebbi avatar krebbi commented on May 20, 2024

Maybe this could help you?

https://blog.trifork.com/2013/01/15/building-a-captive-portal-controlling-access-to-the-internet-from-your-network/

from comitup.

cyberchucktx avatar cyberchucktx commented on May 20, 2024

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.

krebbi avatar krebbi commented on May 20, 2024

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.

davesteele avatar davesteele commented on May 20, 2024

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.

krebbi avatar krebbi commented on May 20, 2024

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.

davesteele avatar davesteele commented on May 20, 2024

from comitup.

krebbi avatar krebbi commented on May 20, 2024

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.

davesteele avatar davesteele commented on May 20, 2024

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.

krebbi avatar krebbi commented on May 20, 2024

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.

davesteele avatar davesteele commented on May 20, 2024

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.

davesteele avatar davesteele commented on May 20, 2024

dnslib should be this one.

from comitup.

krebbi avatar krebbi commented on May 20, 2024

okay, its getting worse and worse.. nothing works anymore. exceptions over exceptions.

next SD card....

from comitup.

cyberchucktx avatar cyberchucktx commented on May 20, 2024

from comitup.

davesteele avatar davesteele commented on May 20, 2024

The more the merrier. I'll see about ensuring the repo is matched to my latest by Friday EOB a the latest.

from comitup.

davesteele avatar davesteele commented on May 20, 2024

Trivial change pushed. I'll be packaging dnslib separately for stretch installs. Pip on the Pi for now.

from comitup.

krebbi avatar krebbi commented on May 20, 2024

Is it available over your PPA repository already?

from comitup.

davesteele avatar davesteele commented on May 20, 2024

No, it is not ready for prime time yet.

from comitup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.