Tech News & Discounts

FreeRadius 3 install SQL on Ubuntu 17.10

6,931

Why use FreeRadius 3?

FreeRadius is one of the best implementations of the Radius protocol. It is open source, has an active community behind it, there is plenty of literature published on the topic and it comes with a GNU General Public License.

Radius is a protocol designed for  Authentication, Authorization, and Accounting that was initially used by the dial-up companies to manage users and bandwidth. Although dial-up has gone the way of the dodo, freeradius is still relevant today because it can be used to manage public wifi networks, virtual private networks and custom use-cases that need a strong authentication protocol.

An attractive selling point of FreeRadius is that many software developers implement the protocol in their product, making it easy to interact with the authentication server. SoftEther took this route for example, and although it does not support user accounting yet, it still rocks.

But, if your favorite software does not officially come with radius support, do not despair. FreeRadius has a long list of official modules and it allows for modules to be developed by 3rd parties.

OpenVPN does not have an official way to authenticate users using the radius protocol but some awesome dude developed an openvpn plugin for the rest of us to use.

To sum up the integration of the auth server with various programs out there, it most likely can be hooked to anything and there is already a module on the internet that does that.

 

10% Recurring
Coupon
Life time 10% on any server or vps subscription. Click on the coupon code in the dotted line to get this offer. More Less

Web GUI options for FreeRadius

Although radius works great, it is pretty advanced and it can be difficult to start using especially if you’re not a fan of the command line. This is where Web GUIs come in. They make it easy to manage users, generate reports, and monitor the state of the network.

The panels allow everyone to use freeradius without feeling like they’re doomed to relive the MS-DOS era once again. The most popular panel out there is daloRadius. Easy to install and simple to use, it allows you to use the serious power of radius in your browser.

freeradius gui daloradius

 

 

Freeradius 3 and DaloRadius 0.9 install

First, we’re going to need a server or a VPS. If you don’t have one, check our coupon code page to get a discount 

I’m running a clean install of  Ubuntu 17.10 for this tutorial. For Ubuntu 18.04 see this Radius Tutorial.

1. Let’s install what we’re going to need along the way.

 
[crayon-5d129deba8870218554288/]  

Set the Mysql password

2. Setting up the Radius Mysql Database

[crayon-5d129deba8881613198028/]  

 

3. Setting up the Freeradius Config files. I use vim because I hate myself, but you can use any editor you like

 
[crayon-5d129deba8886966290272/]  

Uncomment or add “sql” in:
[crayon-5d129deba888a418974589/]  

If you plan on using Mysql exclusively, feel free to remove “files”.

 

4. Edit the Mysql config file.

Pay attention to this step. The reason for this tutorial is that even the official FreeRadius setup guide messed this one up and forgot some settings that gave a lot of users (including myself) headaches.
[crayon-5d129deba888e187222444/]  

Edit these options and leave everything else as it is, unless you know what you’re doing.
[crayon-5d129deba8892097137255/]  

 

5. Run Freeradius 3 in debug mode

[crayon-5d129deba8896462408812/]  

Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on auth address * port 1812 bound to server default
Listening on acct address * port 1813 bound to server default
Listening on auth address :: port 1812 bound to server default
Listening on acct address :: port 1813 bound to server default
Listening on proxy address * port 55865
Listening on proxy address :: port 39353
Ready to process requests

 

DaloRadius Setup

Start by installing apache and some php libraries.
[crayon-5d129deba889a833451482/]  

Fetch the zip and extract it
[crayon-5d129deba889d679082300/]  

Next, its time to create the database and add our credentials:

 
[crayon-5d129deba88a1280087733/] Edit daloradius.conf.php  and set your radius db password in $configValues[‘CONFIG_DB_PASS’] = ‘MyRadiusPass’;
[crayon-5d129deba88a5882661822/]  

Now  go to http://your_ip/daloradius/ and login using the password “radius” with the user “administrator” . Don’t forget to change it after the first login.

What to test this setup out? Check out our PromoCodes for Servers!

10% Recurring
Coupon
Life time 10% on any server or vps subscription. Click on the coupon code in the dotted line to get this offer. More Less

 

You might also like
Comments
Loading...