Skip to content

A docker-compose implementation of RADIUS server with MySQL backend

Notifications You must be signed in to change notification settings

N-Multifibra/docker-radius-mysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeRADIUS and MySQL Docker!

A sample docker-compose for RADIUS with MySQL.

Usage

cp mv .env.example .env 

Set desired MySQL user details in .env and search for Connection info: in the file raddb/mods-available/sql change the details there as well.

docker-compose up -d
docker exec -it docker-radius-mysql_db_1 mysql -uradius -p radius -e 'insert into radcheck (username,attribute,op,value) values("fredf", "Cleartext-Password", ":=", "wilma");'

test with radtest if configured successfully
docker exec -it docker-radius-mysql_radius_1 radtest fredf wilma localhost testing123

Todos

  • Use of environment variables in sql file instead static

License

MIT

About

A docker-compose implementation of RADIUS server with MySQL backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%