GithubHelp home page GithubHelp logo

radiusportal's Introduction

CAPTIVE PORTAL EXAMPLE USING RADIUS COA

This is an example implementation of a simple RADIUS-based captive portal using node.js. It is intended as tutorial for the RADIUS authorization and accounting interfaces of the Anyfi.net software. This example implementation is not intended for production use.

Configurable settings in config/config.json:

RADIUS_SHARED_SECRET The secret string shared between the RADIUS server and the RADIUS NAS. The value must match the entries "radius_autz_secret" and "radius_acct_secret" in myfid.conf.

RADIUS_AUTZ_PORT The UDP port used RADIUS authorization server. The value must match "radius_autz_port" in myfid.conf.

RADIUS_ACCT_PORT The UDP port used RADIUS accounting server. If the port is the same as RADIUS_AUTZ_PORT then RADIUS Interim-Update messages may be used to refresh the NAT state if the CPE is behind NAT, allowing RADIUS CoA-Requests to reach the CPE. The value must match "radius_acct_port" in myfid.conf.

RADIUS_ACCT_INTERVAL RADIUS accounting update interval. Use a lower value for a higher resolution of the bandwidth quota enforcement. See also RADIUS_ACCT_PORT above for NAT traversal issues.

PORTAL_HTTP_PORT The HTTP port used by the captive portal.

PORTAL_HTTP_INTERFACE The IP address of the interface that HTTP server will use. This IP address must be reachable from the CPEs. The captive portal URL is generated as "http://PORTAL_HTTP_INTERFACE:PORTAL_HTTP_PORT.

BLOCK_UNAUTHENTICATED Drop all non-HTTP traffic for unauthorized stations. Disable this option to display a splash page without disrupting other services.

LOG_VERBOSE Enable per-message RADIUS logging.

radiusportal's People

Contributors

gmiraval avatar

Watchers

 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.