Radius Server

Installing freeradius in Ubuntu 16.10:

Source: blog.moatazthenervous.com sudo apt-get install freeradius

Edit the freeradius users: sudo nano /etc/freeradius/users

Uncomment the user 'John Doe': "John Doe" Auth-Type := Local, User-Password == "hello" Reply-Message = "Hello, %u"

Test teh connectivity from local machine: sudo radtest "John Doe" hello 127.0.0.1 0 testing123

Remote access to the radius server sudo nano /etc/freeradius/clients.conf

And add the following snippet:

client 0.0.0.0/0 { secret = "mysecret" shortname = name }

Now from another machine, try the following: radtest "John Doe" "hello" example.com 0 "mysecret"