Skip to content

Complete FreeRADIUS Setup Guide & Resources for Personal Use.

License

Notifications You must be signed in to change notification settings

jakenology/FreeRADIUS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setting up FreeRADIUS with MySQL on Debian 9

Presented by Jayke Peters

Enable FreeRADIUS to start upon boot

Enter the following command: sudo systemctl enable freeradius

Sources Used

Hashing Passwords

I highly recommend that you hash your passwords. To do so, follow the steps below:

  1. Use the "smbencrypt" command as shown in the link
  2. Note the second "NT" hash. This is the hash we will use to store our passwords.
  3. Using a MySQL/MariaDB query, update the password for the user or create a new one entirely with the hashed password.
    $ sudo su 
    
    $ mysql
    
    $ INSERT INTO radius.radcheck (`username`,`attribute`,`op`,`value`) VALUES ('USERNAME','NT-Password',':=','HASH');
    
  4. Using the "radtest" command, test your new user. If you're having issues, there's a few things you can try:
    1. radtest "username" "password" localhost 0 testing123
    • Restarting FreeRADIUS
    • Use a different form of the command
    • Edit your config files to use NTLM Hashing
    • Contact Me - I will help you

When Problems Occur

Additional Security Measures

If you are going to have your server open to the internet, I highly recommend that you enable custom security features to keep yourself and your user's information safe from hackers. Here's a current list of the things I use and highly recommend:

Releases

No releases published

Packages

No packages published

Languages