Setup
- Create a WireGuard Interface and wait for
provisioned, as in the Quick Start. - Create one peer for each host and load each configuration with WireGuard on Linux. Both configurations route
172.27.0.0/24through the tunnel. - Leave inbound HTTP closed in both cloud firewalls. Each peer opens its tunnel to the interface endpoint, so WireGuard needs no inbound rule.
Result
Both instances run a web server and allow only inbound SSH, so neither answers from the internet:172.27.0.0/24.