<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Duo-Security on The Network Stack</title>
    <link>https://thenetworkstack.com/tags/duo-security/</link>
    <description>Recent content in Duo-Security on The Network Stack</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 04 Aug 2017 16:08:52 +0000</lastBuildDate>
    <atom:link href="https://thenetworkstack.com/tags/duo-security/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Duo Security - HA Radius Servers</title>
      <link>https://thenetworkstack.com/duo-security-ha-radius-servers/</link>
      <pubDate>Thu, 19 Nov 2015 01:49:07 +0000</pubDate>
      <guid>https://thenetworkstack.com/duo-security-ha-radius-servers/</guid>
      <description>&lt;p&gt;If you are using Duo Security MFA (highly recommended), you may want high-availability for your Duo Radius servers.  Duo doesn&amp;rsquo;t currently have a &amp;ldquo;supported&amp;rdquo; solution for this, but &lt;strong&gt;keepalived&lt;/strong&gt; worked great after a quick call to support.  This is also assuming you have followed Duo&amp;rsquo;s instructions to install their radius server (found &lt;a href=&#34;https://www.duosecurity.com/docs/radius&#34;&gt;here&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;First, install keepalived (basic instructions for Ubuntu 14.04:  &lt;a href=&#34;https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html&#34;&gt;https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Radius server #1 config:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vrrp_instance VIP_1 {
 state MASTER
 interface eth0
 virtual_router_id 100
 priority 101
 preempt_delay 30
 advert_int 1
authentication {
 auth_type PASS
  auth_pass password
  }
virtual_ipaddress  {
10.0.0.1 dev eth0
 }
}
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Radius server #2 config:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you are using Duo Security MFA (highly recommended), you may want high-availability for your Duo Radius servers.  Duo doesn&rsquo;t currently have a &ldquo;supported&rdquo; solution for this, but <strong>keepalived</strong> worked great after a quick call to support.  This is also assuming you have followed Duo&rsquo;s instructions to install their radius server (found <a href="https://www.duosecurity.com/docs/radius">here</a>)</p>
<p>First, install keepalived (basic instructions for Ubuntu 14.04:  <a href="https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html">https://raymii.org/s/tutorials/Keepalived-Simple-IP-failover-on-Ubuntu.html</a>)</p>
<p>Radius server #1 config:</p>
<pre tabindex="0"><code>vrrp_instance VIP_1 {
 state MASTER
 interface eth0
 virtual_router_id 100
 priority 101
 preempt_delay 30
 advert_int 1
authentication {
 auth_type PASS
  auth_pass password
  }
virtual_ipaddress  {
10.0.0.1 dev eth0
 }
}
</code></pre><p>Radius server #2 config:</p>
<pre tabindex="0"><code>vrrp_instance VIP_1 {
 state BACKUP
 interface eth0
 virtual_router_id 100
 priority 100
 preempt_delay 30
 advert_int 1
authentication {
 auth_type PASS
  auth_pass password
  }
virtual_ipaddress  {
10.0.0.1 dev eth0
 }
}
</code></pre><p>After this was completed, keepalived was up and running, and I could ping/ssh to the VIP, <em><strong>but</strong></em>, Duo was not responding to radius requests on the VIP!? After trying several different options, I called into Duo Support to see if anything could be done.  The support engineer and I discovered that the &ldquo;interface=&rdquo; command in authproxy.cfg could be used to bind to an IP address other than the default eth0 address.  This is what I added to the top of the authproxy.cfg for Duo Radius:</p>
<pre tabindex="0"><code>[main]
interface=10.0.0.1

[ad_client]
...etc
</code></pre><p>After I restarted the duoauthproxy service, radius requests completed successfully using the VIP and my HA solution is complete!  Testing shows 1-second failover times between both servers with keepalived.</p>
<p>View the VIP assigned to eth0:</p>
<pre tabindex="0"><code>ip addr show eth0
</code></pre>]]></content:encoded>
    </item>
  </channel>
</rss>
