Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki
Install FreeRadius
Jump to navigation
Jump to search
Obtain and Install FreeRadius
- Find latest downloads here: http://freeradius.org/download.html
- cd /usr/src/
- wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.2.0.tar.gz
- tar zxf freeradius-server-2.2.0.tar.gz
- cd freeradius-server-2.2.0/
- ./configure
- make
- make install
- ldconfig
Configure FreeRadius
- > /usr/local/etc/raddb/clients.conf; vi /usr/local/etc/raddb/clients.conf
- > /usr/local/etc/raddb/radiusd.conf; vi /usr/local/etc/raddb/radiusd.conf
- > /usr/local/etc/raddb/users; vi /usr/local/etc/raddb/users
- > /usr/local/etc/raddb/sites-available/default; vi /usr/local/etc/raddb/sites-available/default
- > /usr/local/etc/raddb/sites-available/inner-tunnel; vi /usr/local/etc/raddb/sites-available/inner-tunnel
- > /usr/local/etc/raddb/modules/ntlm_auth; vi /usr/local/etc/raddb/modules/ntlm_auth
- > /usr/local/etc/raddb/modules/mschap;vi /usr/local/etc/raddb/modules/mschap
- radiusd -X <= Make sure it fires up without error
Start FreeRadius
- mkdir -p -m 1755 /var/service/radius
- mkdir -p -m 0755 /var/service/radius/log
- vi /var/service/radius/run
- ln -s /var/service/multilog.run /var/service/radius/log/run
- chmod 0755 /var/service/radius/run
- chmod 0755 /var/service/radius/log/run
- ln -s /var/service/radius/ /service/radius
Test Authentication Is Working
- radtest bob.miller XXXXXXXX 127.0.0.1 1812 DeputyCherubJr <= This command should make something like this for the last line of output:
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=237, length=20 - ssh root@192.168.26.1
- apt-get install freeradius-utils
- radtest bob.miller XXXXXXXX 192.168.26.10 1812 DeputyCherubJr <= This command should make something like this for the last line of output:
rad_recv: Access-Accept packet from host 192.168.26.10 port 1812, id=19, length=20 - exit