Radius Server
Installing FreeRadius
Installing freeradius in Ubuntu 16.10:
Source: blog.moatazthenervous.com
sudo apt-get install freeradius
Configuration
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"
You will get Access-Accept packet and "Hello, John Doe" messages.
Logging
The "log" section of the radiusd.conf file is where the primary logging configuration for the FreeRADIUS server is located.
log { destination = files file = ${logdir}/radius.log # If Server is running in debugging mode, this file is NOT used. # requests = ${logdir}/radiusd-%{%{Virtual-Server}:-DEFAULT}-%Y%m%d.log syslog_facility = daemon stripped_names = no auth = no auth_badpass = no auth_goodpass = no # msg_goodpass = "" # msg_badpass = "" }
Destination options:
files - log to "file", as defined below. syslog - send log messages to syslog stdout - log to standard output. stderr - log to standard error.
- References
{{#widget:DISQUS
|id=networkm
|uniqid=Radius Server
|url=https://aman.awiki.org/wiki/Radius_Server
}}