Managed Access, Version 1: what to prepare
Requirements for the virtual machines, the network, the hypervisor settings, eBGP routing and the firewall rules for the Service VMs and the monitoring VM. This specification covers the resilient production deployment.
Every address on this page is a sample. A deployment uses your own subnets and the actual addresses of the cloud gates.
1. VM resource summary
- In Version 1 the VPN #1 and VPN #2 channels run on VMs in your network.
- Either HDD or SSD storage is suitable.
- Swap is turned off on the Service VMs.
- No inbound port from the internet has to be opened: the VMs only make outbound connections to the cloud gates and the management plane.
| Role | Count | vCPU | RAM | Disk | OS | Placement |
|---|---|---|---|---|---|---|
| Service VM. Fault-tolerant pair, N+1 reserve | 2 | 4 | 6 GB, swap off | 50 GB, HDD or SSD | Debian 13, amd64, no graphical interface | Separate VLAN, /28 (sample: 10.20.110.2 and .3) |
| Monitoring VM (SLA Portal). SLA measurements and web tracing | 1 | 4 | 8 GB | 100 GB, HDD or SSD | Debian 13, amd64, no graphical interface | Separate VLAN /29 or an internal segment (sample: 10.20.120.2) |
2. Deployment topology and failover
Both Service VMs run in an isolated /28 subnet; the monitoring VM is routed by the same rules as the LAN users. The addresses are samples.
Failover when one VM fails
The main VM addresses (.2 and .3) carry transport to the internet, while the channel addresses (.4 and .5) hold the eBGP sessions with your gateway and move to the other VM on a failure.
When one VM fails, its channel address moves to the remaining VM with a new MAC address, which is why the hypervisor network needs the security settings of section 3.3. The addresses are samples.
3. Service VM requirements
3.1 Virtual machines and access
- 2 VMs on separate physical hypervisor hosts (an anti-affinity rule).
- Each VM: 4 vCPU, 6 GB RAM, a 50 GB disk (HDD or SSD, minimum 40 GB).
- Swap is turned off in the operating system.
- OS: Debian 13 (amd64) with no graphical interface, with the packages openssh-server, curl, jq, iptables, ca-certificates.
- Access during commissioning (up to 3 days): the hypervisor console and SSH (TCP/22) with keys, from an agreed address or through your bastion.
3.2 Network and addressing
- A separate VLAN and an isolated /28 subnet of 14 addresses (a /29 mask is too small).
- At least 8–10 free static addresses beyond your gateway and its VRRP/HSRP addresses: 2 for the VMs, 2–3 for the VPN #1, VPN #2 and optional VPN #3 channels, and the rest kept in reserve for switching with no downtime.
- The default gateway address.
- The addresses of the DNS servers (external ones will do) and of NTP servers (UDP/123).
Sample address plan of the subnet 10.20.110.0/28
- .0Network
- .1Gateway / BGP
- .2VM 1
- .3VM 2
- .4VPN #1
- .5VPN #2
- .6VPN #3
- .7Spare address
- .8Spare address
- .9Spare address
- .10Spare address
- .11Spare address
- .12VRRP reserve
- .13VRRP reserve
- .14Reserve
- .15Broadcast
3.3 VM network settings on the hypervisor
- The VPN #1, VPN #2 and optional VPN #3 channels use virtual MAC addresses of their own and move between the VMs when a node fails.
- On the dedicated network (port group) of the Service VMs: Promiscuous mode = Accept, MAC address changes = Accept, Forged transmits = Accept.
- These settings apply only to the network of the Service VMs; the monitoring VM does not need them.
- Hyper-V: MAC Address Spoofing = On on the adapters of both VMs. KVM and Proxmox: turn off MAC and IP filtering on the VM interface.
- On the physical switches in this VLAN, turn off strict MAC binding (allow at least 16 MAC addresses per port), DAI and IP Source Guard.
3.4 Routing and internet access
- Single-hop eBGP (TCP/179) between your gateway (a private AS number) and the channel addresses. Set the priority on your gateway with an inbound policy for each neighbour: LocalPref 200 for VPN #1 (primary), 150 for VPN #2 (backup), 100 for the optional VPN #3 (without the 0.0.0.0/0 route). The sessions are set up with the channel addresses, not with the addresses of the VMs themselves.
- Switching time depends on how fast your gateway detects a lost session. Turn on BFD (UDP/3784–3785) or set short BGP timers (keepalive 3 s, hold 9 s); with default timers switching takes as long as the hold time.
- Switching between VPN #1 and VPN #2 goes by priority, with no ECMP balancing on a stateful firewall.
- On the gateway interface in the channel subnet, turn off ICMP Redirect and set TCP MSS to 1360 (or 1240).
- Traffic of the office networks and of SLA Portal is routed towards the channels with no SNAT on the internal gateway; these subnets are announced over eBGP.
- All outbound traffic from the Service VM subnet is allowed to the internet through NAT; the UDP timeout on the firewall is at least 60 s.
- For this subnet SSL/TLS decryption, L7 inspection, UDP/443 blocking and DNS interception are turned off.
- If an "any traffic to the internet" rule is against your security policy, open these outbound ports: to the cloud gates UDP/443, TCP/443 (on shared gates 443–522), UDP and TCP 53, TCP/853; to the management plane TCP/443, TCP/8883, TCP/2379–2479; to the time servers UDP/123; to OS updates TCP/80 and TCP/443.
- Tell us the static public address of your internet exit in advance: it goes into the allow list of the cloud quorum node (TCP/2379–2479).
4. Monitoring VM requirements
4.1 The virtual machine and access to the portal
- 1 VM: 4 vCPU, 8 GB RAM, a 100 GB disk (HDD or SSD), Debian 13 (amd64) with no graphical interface.
- 1 static address, a gateway and an internal DNS server.
- An internal DNS record for the portal (sample: sla-portal.corp.example.org) and a TLS certificate from your corporate certificate authority.
- Inbound access over HTTPS (TCP/443) and TCP/80 from the administrators' subnets, and SSH (TCP/22) from the bastion.
4.2 Network, routing and filtering
- Placement in any internal segment, or in a separate VLAN /29–/30 if requests from SLA Portal to the local network have to be blocked.
- The same outbound route as the user LAN segments, so that web tracing sees the routes the workstations see.
- Outbound web-tracing traffic passes with no SSL/TLS decryption, so that the real certificates of the sites are checked.
- Outbound access to the internal DNS servers (UDP and TCP 53) and NTP (UDP/123), for exact one-way delay measurements.
- Outbound traffic through the Service VMs is allowed to external addresses (0.0.0.0/0), to the channel responders (UDP/8008, ICMP) and to remote sites reached through the channels.
- New outbound connections from the monitoring VM to your internal networks are denied, except DNS, NTP and an optional call to the firewall API or to webhooks (TCP/443, TCP/8443).
5. Firewall rules
- The addresses in the Source and Destination columns are samples.
- Rules apply from the top down. In each group the deny rule stands above the internet rules, so 0.0.0.0/0 below it means the internet only, not your internal networks.
- Outbound traffic from the Service VM subnet and web-tracing traffic pass with no SSL decryption and no L7 inspection.
5.1 Service VMs (10.20.110.0/28)
| ID | Source | Destination | Ports and protocol | Action | Purpose |
|---|---|---|---|---|---|
| FW-01 | 10.20.110.0/28 | 10.20.110.0/28 | All, including TCP/6443, UDP/8472, TCP/10250, ICMP | Allow | Traffic between the two Service VMs inside the segment, if microsegmentation is on. |
| FW-02 | 10.20.110.0/28 ↔ gateway | 10.20.110.1 and the VRRP addresses .12, .13 | TCP/179 (eBGP), ICMP, optionally UDP/3784–3785 (BFD) | Allow | Two-way traffic between the channel addresses and the gateway. |
| FW-03 | 10.20.110.0/28 | DNS 10.10.1.10, 10.10.1.11; NTP 10.10.1.20, 10.10.1.21 | UDP and TCP 53; UDP/123 | Allow | If internal DNS and NTP are used. |
| FW-04 | Any address, arriving through the channel addresses 10.20.110.4–.11 | LAN 10.10.0.0/16, SLA Portal 10.20.120.2 | Return traffic of established sessions and ICMP type 3 code 4 | Allow | Replies to sessions from the LAN and from SLA Portal, and path MTU discovery. A stateful firewall allows this by itself; a stateless ACL needs the rule. |
| FW-05 | 10.20.110.0/28 | Your internal networks | All new connections | Deny | The Service VM subnet opens no connection into the internal network. |
| FW-06 | LAN and SLA Portal 10.20.120.2 | Internet and 10.20.201.0/24, 10.20.202.0/24, through the channels | LAN traffic, TCP/443, UDP/443, UDP/8008, ICMP | Allow | Transit of user and monitoring traffic through the channels with no SNAT and no SSL decryption. |
| FW-07 | 10.20.110.0/28 | Internet, 0.0.0.0/0 | Recommended: all. Minimum: UDP/443, TCP/443 (443–522 on shared gates), TCP/8883, TCP/2379–2479, 53, 853, 123, 80 | Allow | With no SSL decryption, L7 inspection or UDP/443 blocking; 2379–2479 is for the cloud quorum node. |
| FW-08 | Engineer's address or bastion | 10.20.110.2, 10.20.110.3 | TCP/22, with keys | Allow, by agreement | Access during commissioning; the hypervisor console is an alternative. |
5.2 Monitoring VM (10.20.120.2)
| ID | Source | Destination | Ports and protocol | Action | Purpose |
|---|---|---|---|---|---|
| FW-09 | Administrators 10.10.50.0/24 | 10.20.120.2 | TCP/443 (HTTPS and WebSocket), TCP/80 (redirect), TCP/22 | Allow | Access to the portal, the web-tracing reports and the administration of the VM. |
| FW-10 | 10.20.120.2 | DNS 10.10.1.10, 10.10.1.11; NTP 10.10.1.20, 10.10.1.21 | UDP and TCP 53; UDP/123 | Allow | Names and exact time for one-way SLA measurements. |
| FW-11 | 10.20.120.2 | Optional: the firewall API or a webhook | TCP/443 or TCP/8443 | Allow, optional | Matching firewall routes in web tracing, or alerts. |
| FW-12 | 10.20.120.2 | Other internal networks | All new connections | Deny | SLA Portal opens no connection to local servers or workstations. |
| FW-13 | 10.20.120.2 | 0.0.0.0/0 and the responders 10.20.201.1, 10.20.202.1 | All, through the Service VMs and, with split routes, directly | Allow | SLA probes (UDP/8008, ICMP) and web tracing (TCP and UDP 443, 53) with no SSL decryption. |