Duo Authentication Proxy: Installation, Upgrade & Management

Duo Authentication Proxy is an on-premises software service that acts as a RADIUS or LDAP intermediary, bridging the gap between your local applications and Duo’s cloud-based MFA. It’s installed and configured on an operating system which then creates some future work that you’ll want to be comfy with. You’ll need to keep the OS updated but the application requires updating as well.

This guide provides insights on both installation and application maintenance.

Preliminary Installation & Upgrades

Note: Upgrades follow this same procedure and will automatically update the existing installation.

  1. Update System Packages
    sudo apt update && sudo apt upgrade -y
  2. Elevate privilege
    sudo -i
  3. Install Prerequisites
    apt-get install -y build-essential libffi-dev perl zlib1g-dev
  4. Download and Extract Installer
    mkdir ~/folder1
    cd ~/folder1
    wget --content-disposition https://dl.duosecurity.com/duoauthproxy-latest-src.tgz
    tar xzf duoauthproxy-latest-src.tgz
    cd duoauthproxy-*-src
  5. Build and Install
    make
    cd duoauthproxy-build
    ./install
    Accept installation defaults and enter Yes when prompted to create the initialization script.

Managing the Proxy Service

Use the following commands to control the Duo Auth Proxy service:

ActionCommand
Startsudo /opt/duoauthproxy/bin/authproxyctl start
Statussudo /opt/duoauthproxy/bin/authproxyctl status
Restartsudo /opt/duoauthproxy/bin/authproxyctl restart
Stopsudo /opt/duoauthproxy/bin/authproxyctl stop

Configuration & Troubleshooting

  • Configure the Proxy:
    sudo nano /opt/duoauthproxy/conf/authproxy.cfg
  • Validate Configuration & Connectivity:sudo /opt/duoauthproxy/bin/authproxy_connectivity_tool
  • Live Log Monitoring:
    sudo tail -f /opt/duoauthproxy/log/authproxy.log

Verification

  • To verify the installed version and ensure the service initialized correctly, run:
    grep "Init Complete" /opt/duoauthproxy/log/authproxy.log | tail -n 1

Expected Output: Duo Security Authentication Proxy 6.4.x - Init Complete

Scroll to Top