Giter VIP home page Giter VIP logo

freedomportal's People

Contributors

sebpiq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

freedomportal's Issues

FreedomPortal won't run

Hello,

First of all, thanks for sharing and putting this together. I ran into this project while researching on ways to improve the captive portal experience -- specifically in linking out to Safari from iOS' CNA.

I was looking forward to trying this out but couldn't get it to run. I'm using a GL-inet mini router and ran through your entire read me without error. Connecting on both desktop and mobile produces no captive portal. Navigating to URLs in the browser behaves normally both with and without an internet connection.

I've pasted the contents of my log folder below. Did something change, or am I missing something?

Thanks again!

lua: /root/FreedomPortal/freedomportal/openwrt.lua:24: attempt to index field '?' (a nil value)
stack traceback:
/root/FreedomPortal/freedomportal/openwrt.lua:24: in function </root/FreedomPortal/freedomportal/openwrt.lua:21>
/root/FreedomPortal/scripts/refresh_clients.lua:21: in main chunk
[C]: ?
lua: /root/FreedomPortal/freedomportal/openwrt.lua:24: attempt to index field '?' (a nil value)
stack traceback:
/root/FreedomPortal/freedomportal/openwrt.lua:24: in function </root/FreedomPortal/freedomportal/openwrt.lua:21>
/root/FreedomPortal/freedomportal/clients/init.lua:24: in function 'get_clients'
...FreedomPortal/freedomportal/clients/file_storage.lua:97: in function 'replace_all'
/root/FreedomPortal/freedomportal/clients/init.lua:22: in function 'refresh'
/root/FreedomPortal/scripts/refresh_clients.lua:23: in main chunk
[C]: ?
lua: /root/FreedomPortal/freedomportal/openwrt.lua:24: attempt to index field '?' (a nil value)
stack traceback:
/root/FreedomPortal/freedomportal/openwrt.lua:24: in function </root/FreedomPortal/freedomportal/openwrt.lua:21>
/root/FreedomPortal/scripts/refresh_clients.lua:21: in main chunk
[C]: ?
lua: /root/FreedomPortal/freedomportal/openwrt.lua:24: attempt to index field '?' (a nil value)
stack traceback:
/root/FreedomPortal/freedomportal/openwrt.lua:24: in function </root/FreedomPortal/freedomportal/openwrt.lua:21>
/root/FreedomPortal/freedomportal/clients/init.lua:24: in function 'get_clients'
...FreedomPortal/freedomportal/clients/file_storage.lua:97: in function 'replace_all'
/root/FreedomPortal/freedomportal/clients/init.lua:22: in function 'refresh'
/root/FreedomPortal/scripts/refresh_clients.lua:23: in main chunk
[C]: ?
warning : couldnt find an IP mapping for MAC address 8C:8E:F2:62:DB:48

Not Working on GL-MT300N

This is a really cool project!

I'm trying to run it on a GL-MT300N. I used the web interface to connect to the internet, upgrade the firmware to 2.25, and am able to ssh in.

However, my distribution seems to differ from what you're running. uhttpd for instance isn't present. Following the rest of the README.md appears to work, but when the router restarts, I'm not able to connect to it, and have to connect over ethernet and reload the firmware in failsafe mode.

It'd be helpful to know what devices you're using to develop this and what else it works on. Links to the binaries used would be awesome too.

Thanks!

Easier and centralized config

Config is by now spread around in several files (lighttpd, sh scripts, lua scripts, etc ...) it should be centralized in one file.

Suggested additions to Readme.md

Under "Install FreedomPortal on the router," note that an Internet connection is required (as we are downloading packages).

Under "Connect Through SSH," note that if you are configuring more than one router you may get the message "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" In which case, enter

ssh-keygen -R 192.168.8.1

and then connect via

OpenWRT

Hi Sebastian,

I was reading your README.md and it doesn't say anything about which router firmware you used. I assume it's OpenWRT as you're using opkg, but could you provide some information about which version worked for you?

Regards,
Sam

URL configuration

Hello,

Very cool project !

I installed it on a OpenWRT router and tried it both on Android and iPhone, looks like everything is working fine but when I connect to the router WiFi, I'm always getting straight to my index page in the CNA. It does not go through Android or iOS connecting / connected pages, nor opens generic browser.

I am wondering if it could be a URL configuration problem; because I don't see the link between the URLs in lighttpd.conf and config.lua ?

In lighttpd.conf:
alias.url = (
"/_freedomportal" => "/root/FreedomPortal/pages/",

In config.lua:
redirect_success = '/freedomportal_content',
captive_static_root_url = '/freedomportal_static',
captive_dynamic_root_url = '/freedomportal',

Best regards,
henll

Add instructions for viewing access log to the setup guide

Hi, I just managed to get this working on a gl-mt300n-v2

(incidentally: the only change I needed to make in your code was to change paths from "PORTALKEY" to "sda1" as it didn't seem to read the name/label of the volume on the USB key)

I am trying to figure out how to access the visitor log and can't work it out from the code. I'm completely new to both OpenWRT and lihgttpd so please excuse me if this is actually obvious - but I wonder if it might be an important thing to add to the setup guide?

thanks so much for making this inspiring project available

Missing features in CNA

CNA both in iOS and Android is missing some features, which will cause problems if you use them (for example file upload field, it will even cause iOS to simply drop you from the network without any warning).

There are several workarounds possible :

Setting up

Wont really call this an issue but more of a query from a complete noob...
(am fairly experienced in nodejs webpage routing building and stuff you can say but havent really done this so bear with please)

Im planning on/trying to use FreedomPortal on a private network server i have installed in my apartment complex and i wanted to know if i could

  1. Use this to show a webpage that has login details on my mlab account(mlab is the online mongodb database thingie) and get approved and stuff from there
  2. Have a set amount of data a user can view per time before he has to log in again(to stop people/guests with access from using torrents and downloading tons of movies/games in a single night and wasting bandwidth)
  3. Display ads that connect online(if i allow certain domains, how am i supposed to set up for that?)

Thanks in advance!

OpenWrt router version not working

I think the version for OpenWrt routers may no longer work. I set up Freedom Portal on a GL-inet MT300A router as per the instructions (and with latest firmware for the router - v2.265). The WiFi hotspot can then be connected to from my iPhone (iOS17.1.2) and MacBook (MacOS 13.5.2) but the captive portal page is not automatically opened.

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.