cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6604
Views
5
Helpful
8
Replies

Duo authentication proxy - how it works

akosijesyang
Level 1
Level 1

Hello folks!

I’m totally new to Duo, but I’ve been working as an IT pro for quite a while now. Our organization is exploring the idea of implementing Duo MFA to domain-joined Windows Servers.

I’ve managed to set up a basic environment to initially test how Duo works and everything seems to work. Though I have questions around Authentication Proxy…

  1. From official docs (Authentication Proxy Reference - Duo | Duo Security) “The Duo Authentication Proxy is an on-premises software service that receives authentication requests from your local devices and applications via RADIUS or LDAP, optionally performs primary authentication against your existing LDAP directory or RADIUS authentication server, and then contacts Duo to perform secondary authentication.” - does this mean domain member servers with Duo agent no longer need Internet access?
  2. My initial setup of authentication proxy did not have [ad_client], and everything was working. So, I’m wondering what’s the difference if I add [ad_client]?

The ultimate objective I have in mind is when I roll out Duo to our production environment is to limit limit our servers connecting to the internet, if that’s possible through Authentication Proxy.

I’ve seen this What are the differences between [ad_client] and [radius_client] Duo Authentication Proxy configurations? so I think it’s possible, but I’m not really sure though.

1 Accepted Solution

Accepted Solutions

Hello @DuoKristina - sorry for the late response as I was away. I had another look, and I found the cause for the error. It was my fault - I double added the “api-” so my proxy was trying to reach “api-api-xxxxxx”.

After removing “api-”, it’s now working.

Thank you so much!

View solution in original post

8 Replies 8

timshores1
Level 1
Level 1

Hello @akosijesyang, good to hear from you and thank you for posting!

There are a couple of different ways to respond to the questions you’ve raised, here.

First, about the Duo Authentication Proxy:

  1. The Authentication Proxy itself needs an internet connection in order to reach Duo for secondary authentication. Your domain member servers do not need an internet connection for the end-user authentication to work.
  2. With [ad_client] in the config, Authentication Proxy verifies primary authentication with your on-premise Active Directory. You may get some mileage from this Knowledge Base article, see the numbered steps in the diagram.

However, you may want to consider the Duo Authentication for Windows Logon and RDP module to protect those logins. Duo Authentication Proxy wouldn’t be required for the Windows Logon integration, because Winlogon relies on the local OS for primary authentication.

Finally, if your servers with the Winlogon integration don’t have an internet connection either directly or through an existing HTTP proxy, the Duo Authentication Proxy can act as an HTTP proxy only for traffic communicating with Duo.

You may also add a registry entry that tells Duo Authentication for Windows Logon to direct traffic to an HTTP proxy such as the Duo Authentication Proxy.

Hello @timshores - thank you for the response. I really thought my post was totally ignored

If my understanding is correct [ad_client] is only used by application who does not have native integration with Winlogon - so for Windows RDP, is it not required? (Which makes sense since the original pre-configured authproxy file I downloaded did not have that).

Yes, I’m using RDP as an application in Duo Admin portal, which I already configured some policies.

So, I did configure the settings mentioned here [Duo Authentication Windows Logon RDP: FAQ | Duo Security] (Duo Authentication Windows Logon RDP: FAQ | Duo Security), as you suggested. Though when I blocked Ports 80/443 from my edge firewall for member-server, I got an error:
2X_0_0a1ae85b9809e26a83b2001e3c68426f0006fcea.png

My Duo authproxy server has internet connection, btw.

DuoKristina
Cisco Employee
Cisco Employee

If my understanding is correct [ad_client] is only used by application who does not have native integration with Winlogon - so for Windows RDP, is it not required?

Adding some more detail to @timshores’s previous answer…

Correct, [ad_client] is only used when you have also configured a RADIUS or LDAP server listener on the Duo Authentication server (radius_server_* or ldap_server_auto) and have a RADIUS or LDAP application pointing to the Duo Authentication Proxy for primary and secondary authentication.

Duo Authentication for Windows Logon deployments do not require installation of Duo Authentication Proxy on your network at all. But, if your Windows clients do not have direct internet connectivity to Duo’s cloud service and you do not already have an HTTP proxy for these clients to use, you could use Duo Authentication Proxy for this.

So, you are trying to use the Duo Authentication Proxy server on your network as the HTTP proxy for Windows clients with Duo Authentication for Windows Logon and have issues…

  1. You configured the Windows system where Duo for Windows Logon is installed to use your Duo Authentication Proxy server as an HTTP proxy with registry entries, but did you also perform the corresponding config change at the Authentication Proxy (adding an http_proxy section with the IP addresses or subnets of the Windows servers that will proxy the Duo authentication connection through that Authentication Proxy server)? You need to make both changes for the Windows clients to connect through the Authentication proxy server to Duo’s service.

  2. Does your Duo Authentication proxy server have direct internet connectivity or have you configured it to use an outbound web proxy too (with the http_proxy_host and http_proxy_port settings in the [main] section? If the Authentication Proxy is using a web proxy to connect to Duo then it cannot also act as an HTTP proxy to other systems so they can connect to Duo. The Authentication Proxy requires direct outbound connectivity to Duo to act as the HTTP proxy for other hosts.

  3. If you have already checked 1 and 2, try enabling debug logging on the Authentication Proxy server and on the Duo Windows client, perform your test again, and go look at the debug output to see what is happening.

Duo, not DUO.

Hello @DuoKristina

Sorry for not getting back sooner. I’m now getting new error from client machine
2X_1_1e8ce60b3beff0a9f456353604e77c56c0abc304.png

Here’s my auth proxy config btw.
2X_e_e4259d0f15fb911c2ed909702bd875707a6ea909.png

Thank you for pointing this out - just configured them (auth proxy config and gpo for client)

You need to make both changes for the Windows clients to connect through the Authentication proxy server to Duo’s service.

Yes, auth proxy server has direct internet access

Does your Duo Authentication proxy server have direct internet connectivity?

This is what I’m getting…
<< removed image with customer-specific account information >>

If you have already checked 1 and 2, try enabling debug logging on the Authentication Proxy server and on the Duo Windows client, perform your test again, and go look at the debug output to see what is happening.

Hi - I removed your log output screenshot because it contained some of your customer information in a non-redacted form.

The error message received was: Bad Proxy Request: Attempted connection creation to non approved host: <your duo api hostname> . This suggests that clients were trying to use the Authentication Proxy as an HTTP proxy to connect to a different API host than what was configured on the Duo proxy itself.

  1. Is the api_host value in your [http_proxy] section of your authproxy.cfg the EXACT same API host value used to install Duo for Windows Logon on those Windows clients?

  2. Did you restart the Duo Authentication Proxy service after making changes to authproxy.cfg? A restart is required for changes to take effect.

If you check both of those points and still have issues I suggest you contact Duo Support to open a case.

Duo, not DUO.

Hello @DuoKristina - sorry for the late response as I was away. I had another look, and I found the cause for the error. It was my fault - I double added the “api-” so my proxy was trying to reach “api-api-xxxxxx”.

After removing “api-”, it’s now working.

Thank you so much!

Glad it was an easy fix.

Duo, not DUO.

it's really helpful for your explanation with DUO proxy. Thank you so much. 

Quick Links