Sep 222022

So many articles out there on setting up MFA for your vServers.  I couldn’t find much on setting this up for the admin portion of ADC. 

Part 1 deals with a simple configuration using ADC Radius, pointed to Duo for admin authentication and MFA. 

In Part 2 I will deal with more complicated configurations using Microsoft NPS Server to do user roles in Radius for superuser vs lower command policy users. 

MFA with Duo Authentication Proxy

Setup Duo Portal

Login to the Duo Administration Portal

Click “Applications”

Click “Protect an Application”

Click “Auth API” and select “Protect”

This will create an Integration Key, Secret Key, and API hostname.  You will need these for the next step.  

You can adjust the policies here if you need them.  I would suggest turning everything off aside from PASSCODE authentication due to push-based attacks rampant now.  I make a dedicated policy for Network Devices.

You also want to lock down this policy so only your ADC-Admins can authenticate to this application: 

Install/Configure Duo Authentication Proxy

Download Duo Authentication Proxy from here.  The website reference is here:  Authentication Proxy Reference – Duo | Duo Security

It’s a pretty braindead install.  Just install it and click next, next, next.  It will open the configuration file for you.  Or, you can just edit manually from C:\Program Files\Duo Security Authentication Proxy\conf\authproxy.cfg.

Here is an example cfg file:

Enter your Integration Key, Secret Key, and API hostname from the above Duo Portal steps in the ikey, skey, and api_host sections, respectively.  

Under radius_ip_1, enter the subnet that your radius requests will be coming from. (Or just the IP of the ADC’s NSIP)

Under radius_secret_1 enter the radius secret that you will configure on your ADC.

I have hardcoded this config to ONLY allow passcode authentication with “factors=passcode”

ADC Setup

First, we need to setup a command group for Radius, so the users that can login get superuser rights (or really whatever rights you want them to have) 

Go to System – User Administration – Groups – and hit “Add”.  Set it up like the below (for superuser access) and click “Create”

Next, let’s configure the Radius server.

Go to System – Authentication – Basic Policies – RADIUS – Servers –  and click “Add”

Set this up with the IP of your Duo Authentication Policy, the port and the secret you configured in the authproxy.cfg above, and set the Time-out to 60 seconds. 

You will want to click “more” and set “Default Authentication Group” to ADC-Admins.  I also like to hard-code a NAS-Identifier so I can use filters on Radius, if needed (This is needed if/when doing NPS Server)

After saving this section, go to System – Authentication – Advanced Policies – Authentication Policies – and click “Add” and point it to your Radius Server above.

After you create this, you need to bind it globally.  Click on “Global Bindings” in this same section.

Set it up like this and click “bind” and click “done”

Now, let’s take a look at the authentication:

This also works the same for SSH. 

Part 2 here

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">



This site uses Akismet to reduce spam. Learn how your comment data is processed.