GithubHelp home page GithubHelp logo

melak / openvpn_radauth Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 1.0 151 KB

RADIUS authentication script for OpenVPN

C 75.08% Shell 1.99% Makefile 0.46% Perl 1.95% Roff 19.02% M4 1.50%
openvpn radius c

openvpn_radauth's Introduction

openvpn_radauth

A small helper application that makes it possible to authenticate OpenVPN users against a RADIUS server.

This is not an OpenVPN plugin. This is an auth-user-pass-verify script. A (the?) RADIUS plugin is available at NonGNU. The plugin is likely to be more powerful, it is also much larger. This script is targeted toward scenarios where storage space is at a premium. Package feed for OpenWRT Attitude Adjustment (and eventually newer versions) ismight be available at melak/openwrt-feeds.

๐Ÿต Configuration

Include

auth-user-pass-verify /path/to/openvpn_radauth via-env

in openvpn.conf (via-file works too; see the OpenVPN documentation). Set your RADIUS server(s) in radius.conf (in /etc/openvpn/ by default, a different path may be set at compile-time):

auth	192.168.1.10	mekmitasdigoat

openvpn_radauth uses Juniper libradius snatched from FreeBSD, the full radius.conf manual can be found in FreeBSD Git repository. Only the auth service is used.

There is no way at present to use different RADIUS servers with separate OpenVPN instances (save for building a dedicated openvpn_radauth for each and every one of them). Should there be demand for such a feature, it is possible to implement something to that effect.

Building

Have the AutoTools suite installed. autoreconf -ivf, then ./configure --help. Most of the canned output is junk.

libradius has been slightly modified so that it uses picohash for all its hashing and HMAC'ing needs.

Cross-compilation using the OpenWRT SDK is possiblehas not been attempted in a long while. You will likely have to tweak Makefile.rulesstuff.

openvpn_radauth's People

Contributors

melak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mdoudou

openvpn_radauth's Issues

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.