Radius mysql:
Quick how to:
Setup the OpenRadius server and add users. Use MySql as the database.
Instructions:
- Create two virtual machines - SimpleArbiter (use the simpleArbiterDhcp.vdi disk) and RadiusServer. Discs for virtual machines are located on polz.si/media/uploads/kpov/virtualke.
- Create another two virtual machines using the disks VPNCLient.vdi and SimpleArbiterVPN.vdi.
- Setup both VMs so that they use two network adapters - NAT and Internal network.
- Login with the username student and password student on both VMs.
Part one: Setup OpenRadius.
- Install OpenRadius on the RadiusServer VM (configuration files are: /etc/openradius/configuration and /etc/openradius/behaviour)
- Add a user and assign him a shared secret. This should be configured in the /etc/openradius/configuration file. (More info: http://sites.e-advies.nl/openradius/doc-using-openradius.html )
- Create a connection from SimpleArbiter to RadiusServer using the secret you configured.
Part two: Install and setup a MySQL database on RadiusServer
- OpenRadius can use the module RadSQL to store users in database.
- Setup a MySQL server: sudo apt-get install mysql-server.
- Connect to the MySQL server: mysql -u root -p.
- Create a database: CREATE DATABASE . Create a table users with columns username and password.