RD Web and IIS - security

AdamTyler-3751 431 Reputation points
2022-03-12T22:55:58.333+00:00

So I am in the process of building an on premise Windows RDS implementation on Server 2019. Complete with redundant servers for all roles, including the RD Broker. I opted to go with the Azure hosted database for the broker rather than building an on-premise SQL cluster.

The RD Gateway and RD Web roles are installed on the same set of servers. I've actually implemented DUO MFA for the Gateway service and it is working well.

One concern I have with pointing the internet directly at our RD Web services using TCP:443 is the monitoring of failed username and password attempts against IIS. It's crazy to me that Microsoft hasn't included any out of the box comparison to the Linux Fail2Ban product. Can anyone suggest methods of automatically banning IPs after so many failed login attempts against IIS (/rdweb) or perhaps automatically throttling bw for sources that have a certain number of failed login attempts?

What if I wanted to take this a step further, not allow any computer that doesn't meet certain security requirements to login to RD Web or GW? Say the computer has to have Sophos AV and it has to be up to date. Or only computers joined to specific domains can connect, etc..

Regards,
Adam Tyler

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AdamTyler-3751 431 Reputation points
    2022-03-21T19:37:45.48+00:00

    No one responded to this. Best option I could come up with is putting a reverse proxy out in front of the IIS /Rdweb site. Azure has something called the Azure AD Reverse proxy now that allows you to do M365 pre-authentication before logging into this IIS site. I'm having some trouble getting it fully working, but may be worth a look.

    https://learn.microsoft.com/en-us/azure/active-directory/app-proxy/application-proxy-integrate-with-remote-desktop-services

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.