InfraCityOpen editor

VPN & bastion

Private systems have no public door: you reach them through one hardened entrance that knows who you are.

VPN & bastion, drawn as an isometric city

The CityScript

This is all there is to it. Change it in the editor and the city redraws.

%% V · VPN & bastion
%% Engineers connect over WireGuard, prove themselves with MFA, then hop through a recorded bastion.
city 48x32

district outside "Outside" 3,3..12,12
district access "Access layer" 17,3..32,14
district inside "Private network" 37,3..46,19

building laptop depot in outside "Engineer laptop"
  floor laptop.f "Client"
    room laptop.wg service "WireGuard client" secret=private-key
building vpn tower in access "VPN gateway"
  floor vpn.f "Tunnel"
    room vpn.wg proxy "WireGuard" port=51820 secret=private-key
    room vpn.acl config "Allowed networks"
building idp tower in access "Identity provider"
  floor idp.f "Login"
    room idp.mfa service "MFA"
building bastion depot in access "Bastion"
  floor bastion.f "Jump host"
    room bastion.ssh proxy "SSH jump host" port=22 secret=host-key
    room bastion.audit storage "Session recordings"
building servers factory in inside "Servers"
  floor servers.f "Private hosts"
    room servers.app service "App host" port=8080
    room servers.db database "Database host" port=5432

boundary outside-zone "Outside" members=laptop
boundary access-zone "Access layer" members=vpn,idp,bastion
boundary private-zone "Private network" members=servers
boundary corporate "Corporate network" members=access-zone,private-zone

gate remote at 0,7 port=51820 "WireGuard"
link laptop.wg -> vpn.wg "WireGuard" variant=security
link vpn.wg -> idp.mfa "MFA" variant=security
link vpn.acl -> vpn.wg "allowed networks"
link vpn.wg -> bastion.ssh "SSH" variant=security
link bastion.ssh -> servers.app "SSH" variant=security
link bastion.ssh -> servers.db "SSH" variant=security
link bastion.ssh -> bastion.audit "records session"