Coder Social home page Coder Social logo

uberfreeradiusbridge's Introduction

UberFreeRADIUSBridge is an ASP.NET Core webapp that sits between MAGFest's Ubersystem and FreeRADIUS. It allows users to log into WiFi using their Badge Number and Zip code, if their badge level gives them access.

Features

  • Supports allowing users access based on their badge level (Ex: Staff and panelists get access; regular attendees do not)
  • Temporarily caches responses from Uber to save API lookups
  • SQLite backend for logging users/MACs, as well as supporting user overrides
  • Badge numbers can be force denied, force allowed, or force allowed with a custom password
  • Handles multiple simultaneous auth attempts by running the ASP.NET Core Kestrel Websever
  • Supports a static laptop login for event-provided devices that need to auth with the network
  • Makes use of FreeRADIUS’s REST module

Performance

We ran this bridge at MAGFest 2018 with roughly ~600 simultaneous WiFi clients peak and ~1,300 total connected devices, with no issues on the bridge side. Our biggest pain points were our wireless controller aggressively blocking users with too many failed auth attempts, and non-numerical zip codes.

To Do

  • Handle non-numerical zip codes -- right now, the code requires an exact case match. We should find some way to handle this better, as end users don't expect case to matter.
  • Add WebUI to add in overrides, rather than requiring editing the SQLite file directly
  • Have some form of administrative interface to show stats
  • Document the FreeRADIUS setup needed to make use of the bridge.

Want to run this?

Everything is in a functional, runable state, but documentation is lacking. Open a GitHub issue if you have any issues, and we'll take a look. We anticipate having better FreeRADIUS setup documentation once we have our rack powered back on post-event and we've caught up on sleep.

Set Secrets

You'll need to set up ASP.NET Core Secrets to make this run. To do so, run the following with the correct info:

dotnet user-secrets set "LaptopPassword" "ThisIsntOurRealPassword"
dotnet user-secrets set "APIKey" "ffffffff-ffff-ffff-ffff-ffffffffffff"
dotnet user-secrets set "UberServer" "https://staging4.uber.magfest.org/uber/jsonrpc"

uberfreeradiusbridge's People

Contributors

rscullin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

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.