Thursday, July 7, 2016

FreeRadius with Raspberry Pi


RADIUS Authentication Server on RaspberryPi

BAD TEST:
test@raspberryPi:~ $ radtest kralvesmiru test123 127.0.0.1 0 testing123
Sending Access-Request of id 114 to 127.0.0.1 port 1812
    User-Name = "kralvesmiru"
    User-Password = "test123"
    NAS-IP-Address = 127.0.1.1
    NAS-Port = 0
    Message-Authenticator = 0x00000000000000000000000000000000
rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=114, length=20
test@raspberryPi:~ $

Changes were done:


sudo nano /etc/freeradius/users
sudo nano /etc/freeradius/clients.conf
sudo nano /etc/freeradius/radiusd.conf

FreeRadius restarted:


 sudo service freeradius stop
sudo service freeradius start


Live debug log output turned on:

sudo tail -f /var/log/freeradius/radius.log

And voila! Radius is working now with basic configuration.

test@raspberryPi:~ $ radtest kralvesmiru test123 127.0.0.1 0 testing123
Sending Access-Request of id 36 to 127.0.0.1 port 1812
    User-Name = "kralvesmiru"
    User-Password = "test123"
    NAS-IP-Address = 127.0.1.1
    NAS-Port = 0
    Message-Authenticator = 0x00000000000000000000000000000000
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=36, length=20
test@raspberryPi:~ $












No comments:

Post a Comment

Thank you for your comment. Will try to react as soon as possible.

Regards,

Networ King