AWS EC2 for AD and DHCP for local network

active-directoryamazon ec2dhcp

I will explain everything that is happening. I work in a NGO, and we have our office inside a university here in Brazil. Until a couple of weeks ago, our internet infrastructure worked something like this:

  • The university receives the internet connection
  • Their servers communicates with our Windows Server, which controls AD, DHCP and User Auth
  • The answer goes back to the their infrastructure and authenticate the computers connected to computers inside our office connected to their cables/wi-fi

Last week our server went down, and the company that provides us the support is very slow. So I tried to find different options of what to do, and could be easier to maintain, and cheaper than the support we have. What I thought was to use and Amazon EC2 Windows Server to be in place of our old server, therefore the university communicate with EC2, then authenticate the connected computers.

From a research we've made here, this should be possible, as long that the university connection to the EC2 is made on a VPN. My questions are:

  • Is this really possible?
  • The EC2 AD, DHCP and User Auth configuration would be the same as the local server we had?
  • The guys from the university are asking us how things would change for them. Would it just be that now they should use a VPN connection to an outside server, and not a local server inside their network? Or other changes would imply?

Thank you all in advance for the help 🙂
Ps.: let me know if something is not clear!

Best Answer

In theory yes you could do this. As has been discussed on ServerFault before this doesn't mean you should.

The first issue you are bound to run into will be around latency. The last time I checked there isn't an Amazon Data Center anywhere near Brazil so you are looking at delayed logon requests and responses as you pray that the VPN tunnel stays up and then deal with the overall latent connection. Typically any sort of remote AD setup often results in long logon delays and overal user unhappiness as there is a noticeable period of time from hitting enter to the desktop popping up.

If the problem revolves around a support company who provides the server either find a new vendor or run the server yourself. As a full blown solution you could spin up the master AD box with Amazon for resiliency reasons and then have the university run a Read-Only DC on their network to make all of their requests against. This secures the data on the server and somewhat eliminates the VPN load back to Amazon.

Overall though I would recommend running the DC boxes locally whenever possible for the best performance. Users will thank you for it.

Related Topic