https://github.com/mpdroog/radiusd
Distributed Radius-server to do authentication+accounting.
https://github.com/mpdroog/radiusd
mysql radius radius-server replication
Last synced: 6 months ago
JSON representation
Distributed Radius-server to do authentication+accounting.
- Host: GitHub
- URL: https://github.com/mpdroog/radiusd
- Owner: mpdroog
- License: bsd-2-clause
- Created: 2015-11-02T17:32:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-05-10T09:49:26.000Z (about 2 years ago)
- Last Synced: 2024-12-20T03:02:14.916Z (over 1 year ago)
- Topics: mysql, radius, radius-server, replication
- Language: Go
- Homepage:
- Size: 409 KB
- Stars: 59
- Watchers: 4
- Forks: 26
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Radius Server.
===================
Distributed Radius-server to do authentication+accounting.
Some of the motivations for writing this server:
* Wanted 5min interval graphs of traffic usage
* FreeRADIUS felt overly complex/forced me into a SQL structure I didn't like
* Loved a good challenge
> Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Implemented RFCs:
* auth https://tools.ietf.org/html/rfc2865
* acct https://tools.ietf.org/html/rfc2866
* CHAP https://tools.ietf.org/html/rfc1994
* MSCHAP1+2 http://freeradius.org/rfc/rfc2548.html
* MSCHAP1 https://tools.ietf.org/html/rfc2433
* MSCHAP2 https://tools.ietf.org/html/rfc2759
* MPPE (RC4 encryption) https://www.ietf.org/rfc/rfc3079.txt
This daemon uses MariaDB/MySQL to store it's data and the SQL-file can
be found in the `/db` dir.

Why is it distributed?
==============
Because if MySQL is replicated this daemon shares it state
with other radiusd-instances (as everything is administrated in MySQL)
> To protect yourself against racing conditions between nodes
> it's adviced to use a replication method like Galera Cluster.
Run test/test.sh
==============
radclient is part of the freeradius project
```
brew install freeradius-server
```
Production?
==============
No, still testing.
> RadiusD is only being tested against Mikrotik their RouterOS.
Used resources
==============
- https://github.com/FreeRADIUS/freeradius-server
- http://lost-and-found-narihiro.blogspot.nl/2014/04/freeradius-2112-configure-accounting.html
- https://github.com/bronze1man/radius
- https://github.com/hoffoo/go-radius
- https://github.com/alouca/goradius