Skip to content
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

Modularize & Clean @jvonau's PR #2171 - uWSGI for Captive Portal & Admin Console on NGINX #2185

Merged
merged 18 commits into from Jan 22, 2020

Conversation

holta
Copy link
Member

@holta holta commented Jan 22, 2020

Builds on PR #2171 in service of Captive Portal especially (#1182).

@holta holta added this to the 7.1 milestone Jan 22, 2020
@holta
Copy link
Member Author

holta commented Jan 22, 2020

Tested on 182-rpi4-2g-MIN-0122-PR2171 where...

  1. systemctl status uwsgi shows all 6 child process (3 for Captive Portal and 3 for Admin Console)
  2. http://10.8.0.66:9090 redirects correctly to http://box.lan — which is a great "quick & dirty" way to test Captive Portal without using an actual WiFi device/phone/etc. As such, port 9090 is now recorded in https://github.com/iiab/iiab/wiki/IIAB-Networking#list-of-ports--services
  3. netstat | grep 9090 shows results of network transactions such as the above, for about 1-2min until that disappears. With partial / more permanent records being recorded to /var/log/uwsgi/app/captiveportal.log

And just as importantly... cd /opt/iiab/iiab; ./runrole captive portal works to enable or disable Captive Portal, depending on the value of captiveportal_enabled in /etc/iiab/local_vars.yml

@holta
Copy link
Member Author

holta commented Jan 23, 2020

PS @jvonau suspects Captive Portal WILL work with Ubuntu & Debian internal WiFi AP's too!

@menneal are you able to possibly test that authoritatively for #2172 if you have an old laptop or similar whose WiFi drivers are supported by Linux / Ubuntu 19.10 / Debian 10.2? (Or if not just test on RPi for now!)

But it likely won't work with external WiFi AP's (i.e. those connected to IIAB using an Ethernet able) for now~

@menneal
Copy link

menneal commented Jan 23, 2020

I can test with an 2Gig RPI4. What command should I use to load the version you want tested. I had been using a full Debian desktop version modified for my projects. For this test, I'll start with a virgin Raspbian Lite that I just downloaded tonight. Does that plan provide the useful results you require?

@holta
Copy link
Member Author

holta commented Jan 23, 2020

I can test with an 2Gig RPI4. What command should I use to load the version you want tested.

This is now merged into IIAB's master branch, so use IIAB's regular 1-line installer:

curl d.iiab.io/install.txt | sudo bash

I had been using a full Debian desktop version modified for my projects. For this test, I'll start with a virgin Raspbian Lite that I just downloaded tonight. Does that plan provide the useful results you require?

Any OS along the lines of Raspbian Desktop, Raspbian Lite, Ubuntu 19.10 or Debian 10.2 is fine, Thanks @menneal !

@menneal
Copy link

menneal commented Jan 23, 2020

Installing now 19:02 PST

@menneal
Copy link

menneal commented Jan 23, 2020

Captive portal loaded chrome and iiab on connect to network on windows 10.
Captive portal did not function on linux mint firefox. Redirects from google and yahoo to iiab were missing. box.lan directly entered worked.
I will test on amazon and android tablets later the AM
I used this as a baseline with great success after some changes to .htaccess.
https://braindead-security.blogspot.com/2017/06/building-rogue-captive-portal-for.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants