XANADU Infrastructure
CESI project · Networks and systems
The infrastructure of a fictional sixty-person company, designed by three of us over four weeks, then partly built on a Proxmox server.
Xanadu is a company made up for the project. It has sixty people spread across HR, a development team, network admins and a few business departments. Its headquarters is called Atlantis, and it has a lab in Springfield. The brief set the number of users, the ERP to host, the remote site and a four-hour recovery time for critical services. We had to design the whole information system, write it up in a report, and then build part of it to show it worked.
I mostly worked on Active Directory and the Proxmox server, where I also set up a VPN tunnel so we could reach it from home. We wrote the report together.
Splitting the network
The headquarters is split into six VLANs, for users, sales, servers, administration, printers and backups. Each one has its own subnet, and all traffic from one VLAN to another goes through pfSense, which blocks anything we haven’t explicitly allowed.
Sales staff get their own VLAN because they often connect to Wi-Fi networks nobody controls. If one of their laptops gets compromised, the attacker is stuck in that VLAN and can’t reach the servers. Printers are isolated for a similar reason, since their firmware rarely gets updated and they don’t run any antivirus.
The ERP’s frontend and backend sit in a DMZ, because they have to be reachable from outside. The PostgreSQL database stays in the server VLAN, and the only rule between the DMZ and that VLAN opens the database port. Someone who took over the ERP still couldn’t move on to the other servers.
The Springfield lab
Springfield is linked to the headquarters over MPLS. We picked it over a VPN across the internet because people at the lab use the ERP hosted in Atlantis, and with latency that jumps around, the app would quickly become painful to use. The lab uses the same VLAN layout as the headquarters, on its own address range, so the firewall rules stay the same on both sites.
For authentication, Springfield has a read-only domain controller (RODC). People at the lab sign in without going over the MPLS link, so they can keep working if it goes down. And since an RODC doesn’t store admin account passwords, stealing the server on site doesn’t give you the domain.
Active Directory
This was my main part. The headquarters has two domain controllers replicating with each other, so everyone can still sign in if one of them goes down.
Each department has its own organisational unit (OU), and its IT contact only has rights over that one. The HR contact can create an account or reset a password in the HR OU, but can’t touch anything else. Shared security rules go through GPOs applied to the OUs, with passwords of at least twelve characters, sessions locking after ten minutes and USB drives blocked.
We also wrote PowerShell scripts for the everyday admin tasks. The one that creates accounts puts the user straight into the right OU. Done by hand, a single typo is enough for a new hire to get the wrong GPOs on their first day.
Backups
What worried Xanadu’s director most was ransomware encrypting the whole system. So we followed the 3-2-1 rule. Production data stays on the servers, one copy goes to a NAS at the headquarters, and another is sent overnight to a NAS in Springfield over the MPLS link, as well as to encrypted cloud storage.
The headquarters NAS has its own VLAN, and only the backup server can write to it. Ransomware spreading through the headquarters can’t reach every copy at once.
To meet the four-hour recovery target, the ERP database is backed up every hour during the day, with a full backup every night. Workstations aren’t backed up at all. A GPO redirects documents and the desktop to the file server, which the backups do cover, so a broken laptop can be replaced without losing anything.
The Proxmox mock-up
All of this is first described in the report, but we also built part of it on a Proxmox server, with pfSense as the gateway and firewall. We installed two Windows Servers running Active Directory, to show that replication works. We used a client machine to sign in with accounts from different departments and check that each one had the right permissions and GPOs. Alongside them were a storage server, a Debian VM running the ERP in Docker and a Zabbix VM for monitoring.
Looking back
If I did the project again, I’d compare Active Directory with an open-source option, such as Samba AD or FreeIPA, before picking it. For a sixty-person company, Windows Server licences are a real cost, and on the mock-up, the Windows VMs were heavy to install and to run on our Proxmox server. Active Directory has the advantage of being everywhere, so a new admin can pick it up easily, and it might still win in the end, but I’d want that choice made with its cost taken into account.
at a glance
- ContextCESI project
- RoleActive Directory, Proxmox and VPN
- TeamThree people, four weeks
- StackpfSense, Active Directory, Windows Server, Proxmox, Zabbix, Docker, Linux