Networking
Open Network in the sidebar (under Set up). If you have more than one pair, a Site pair selector at the top right of the page picks which pair you are editing.
A guest that boots at the recovery site is useless if it lands on a bridge that doesnât exist there, or keeps an IP that belongs to a subnet the recovery site has never heard of. Networking is where you answer that once, per DR Site Pair, so every protected guest inherits the right answer instead of you fixing each one by hand during an outage.
Everything on this page is a pair-level default. Individual guests can override it on the Network tab of the guestâs panel, and the page shows you which ones do.
Every change on this page saves as you make it. Switches, choices and dropdowns save at once; a text or number field saves when you leave it or press Enter, with a small spinner and then a check beside it. If a save fails, a floating Not saved bubble says why and offers Try again. There is no Save button. The buttons that remain do something: Apply now, Teardown, Detect.
These settings are recovery-owned: the recovery site holds the truth, because itâs the side that has to make them work. When you open the page from the source site, Asternodis reads them through the peer, so you see and edit the same values from either end.
Failover networking mode
The first decision on the page is titled What should happen to their addresses? It is the pair-wide choice for what happens to a guestâs addressing when it comes up at the recovery site. Click one of three cards:
- Keep IPs, your network: the guest boots with the addresses it already had, on a bridge you provide. Right when the two sites share a stretched L2 or youâre failing over a whole subnet.
- Keep IPs, Asternodis gateway: the guest keeps its addresses, and Asternodis builds the network for it: a DR edge gateway on the recovery node routes an isolated bridge that mirrors the production subnet, with NAT and port-forwarding to the recovery siteâs uplink. For applications that hard-code addresses and cannot be re-IPâd. See the gateway below.
- Re-IP to the recovery subnet: the guestâs addresses are rewritten for the recovery network. Right when the recovery site is a different subnet, which is the common case for a second building or a colo.
Each card shows Saved once the pair is on it. The page shows the settings the mode youâve selected uses, as soon as you click it:
- Re-IP to the recovery subnet shows the re-IP default card, titled Where do they move to?
- Keep IPs, your network hides it, unless a re-IP default is set: one that is set still re-addresses guests, so it stays in view (see When the mode and the default disagree).
- Keep IPs, Asternodis gateway hides it, because gateway mode re-addresses no guest, its own re-IP included. A default that is set is kept and named in one line; it applies again if you choose another mode.
The bridge mapping (Which bridge does each NIC join?), the per-guest list (Result: what each guest gets) and DNS zone at the recovery site apply in every mode and always show.
A mode that cannot work cannot be saved. The card you clicked is marked Picked, not saved yet, a Not saveable yet warning gives the reason, and the pair stays on its previous mode until the chosen mode has what it needs. It then saves by itself:
- Re-IP to the recovery subnet needs a saved re-IP default (both subnets), or failover addresses of its own on every guest of the pair. Without either, a failover would bring every guest up on its own address.
- Keep IPs, Asternodis gateway needs the isolated bridge, the mirrored subnet and the gateway IP, and with the LXC appliance the uplink bridge.
The recovery site refuses the same, whichever site or API call it comes from. Clearing the re-IP default is refused too while Re-IP mode depends on it: switch the mode first.
The DR edge gateway
Choosing Keep IPs, Asternodis gateway opens the gateway editor, a card titled The gateway:
- Router: run the gateway as nftables rules on the recovery node itself, or as a dedicated LXC appliance.
- Isolated bridge (Asternodis-managed): the Asternodis-managed bridge recovered guests attach to
(
vmbrdr0by default). It is created for you, and every failover applies the gateway before the guest boots; with the recovery-node router the bridge is also persisted so it survives a node reboot. - Uplink interface (blank = auto): the recovery nodeâs outward-facing interface (Auto-detect, or pick one). With the LXC appliance this field is Uplink bridge (appliance eth1), the bridge the applianceâs second interface attaches to.
- Mirrored source subnet (CIDR) and Gateway IP: the production subnet the bridge reproduces, and the address recovered guests use as their default gateway.
- Appliance uplink IP (blank = DHCP) and Appliance uplink gateway (for a static IP) (LXC appliance only): the applianceâs own address on the uplink, as a CIDR, or blank to take a DHCP lease; the gateway field appears once a static address is entered.
- Port forwards, from the uplink to a guest: protocol, external port â recovered guest IP and guest port, so services stay reachable from outside the mirrored subnet. Port forward adds a row.
The settings save as you make them. Apply now builds the bridge and rules on the recovery node immediately (it stays greyed out until the gateway mode and its settings have saved), and Teardown removes them from the node. If applying couldnât fully replace the gatewayâs previous firewall rules, the result carries a warning alongside the applied configuration: a rule it failed to remove could still be routing traffic to a target the new configuration no longer names.
Network mapping
The card titled Which bridge does each NIC join? holds the source â recovery bridge and VLAN map. For each bridge a protected guest uses at the source, you say which bridge it should attach to at the recovery site, and which VLAN tag it carries there.
A rule is one row of the table: Source bridge, Source VLAN, On failover (bridge and
VLAN) and In a DR test (bridge and VLAN). Add puts a new row at the end of the
table and the remove button at the end of a row deletes it. A row saves once every row is
complete. A rule matches the NICs on its source bridge. Leave Source VLAN at any and the
rule covers every NIC on the bridge; give it a tag and it covers only the NICs on that VLAN.
On a VLAN-aware bridge, where guests on tag 10 and tag 20 share vmbr0 but not the network,
give each tag a rule of its own:
| Source bridge | Source VLAN | Recovery bridge | VLAN |
|---|---|---|---|
vmbr0 | any | vmbr0 | keep tag |
vmbr0 | 10 | vmbr1 | 110 |
vmbr0 | 20 | vmbr1 | untagged |
A tagâs own rule wins over the bridgeâs. The bridge-wide rule answers for the untagged NICs on the bridge and for any tag without a rule of its own. Below the table, the page lists the tags your guests use that have no rule of their own, with what answers for them and an Add a rule for it button.
For the failover and the test side you choose what happens to the tag:
- keep tag: the NIC keeps the tag it had at the source.
- untagged: the tag is removed.
- tagâŠ: the NIC carries that tag (1 to 4094).
A rule for a source VLAN that none of the pairâs guests has a NIC on is refused, because it would match nothing. A guest can also give a NIC a VLAN of its own; see Per-VM networking.
Thereâs a separate In a DR test column so a non-disruptive test can land on an isolated bridge: the test boots a real copy of the guest, and you rarely want that copy on the production network answering for the same addresses. Leave the test bridge blank to run the DR-test copy isolated. A test counts as isolated when its bridge, or the tag the NIC ends up with, differs from the recovery side. On a bridge-wide rule keep tag and untagged are the same network for an untagged NIC, so the page does not call that isolated, and it shows a A DR test shares the production network. warning when a rowâs test bridge and VLAN equal its recovery ones.
Unmapped bridges are the single most common reason a failover boots a guest with
no reachable network, so map every bridge your protected guests actually use.
Asternodis checks it for you. Before a failover, the preflight resolves each NICâs target
bridge exactly as the failover will and checks that it exists on the node that will run the
guest (a Linux or an Open vSwitch bridge alike). A bridge that is missing there is a definite
failure you must acknowledge before the failover runs; one the check could not read is
reported as unverified, never as present. Between failovers, the critical
recovery_bridge_missing alert is raised while a protected
guestâs target bridge is missing on the node that would run it (checked every five minutes),
and clears by itself once the bridge exists. A mapping, or the pairâs default
recovery bridge, is not saved when the bridge provably does not exist on the recovery
clusterâs nodes.
The Source bridge field suggests names drawn from the guests already protected in this pair, so youâre rarely typing a bridge name from memory. If Asternodis canât read those suggestions, it says so: an empty list means the pair has none, not that the read failed.
A NIC with no rule keeps its bridge on failover and is fenced in a DR test. A guest can also give a NIC a VLAN of its own with the VLAN controls on the Network tab of its panel.
Re-IP default
The re-IP default card (Where do they move to?, shown in Re-IP mode or whenever a default is set) holds the subnet rewrite guests inherit when they have no explicit per-guest re-IP: the recovery subnet, gateway, and how source addresses translate into it. Set this and you generally donât need to touch individual guests at all.
The cardâs fields are From subnet, To subnet, Gateway and DNS server. The gateway and DNS server ride along with the subnet rewrite and only take effect once both subnets are filled in. The default saves once it is complete. Setting one of them, or only one of the two subnets, without completing the rewrite is not saved, and a message names whatâs missing.
The rewrite keeps as much of each addressâs host part as the recovery subnet holds. Between two
subnets of the same size the whole host part is kept (10.0.30.224 â 10.1.30.224). From a
larger subnet into a smaller one only the last part fits: from 10.10.0.0/16 into
192.168.20.0/24, 10.10.1.77 becomes 192.168.20.77. That can put two guests on one address
(10.10.1.77 and 10.10.2.77 both become .77); the page and the failover preflight name any
such pair.
Rewrites per source VLAN
Each VLAN is usually its own subnet, with its own gateway and DNS at the recovery site. Under Per source VLAN, press Rewrite for a VLAN to add a row for each VLAN that needs one: the source VLAN tag, its source subnet, the recovery subnet, and optionally a gateway and a nameserver.
- A NIC whose source VLAN has a rewrite is re-addressed by that rewrite.
- Every other NIC, untagged or on a VLAN without a rewrite, is re-addressed by the fields above.
- Leave the fields above blank to re-address only the VLANs you list.
- Each row needs both subnets. A VLAN can have only one row.
- A guest has one nameserver. It comes from the rewrite of its first re-addressed NIC.
Failback reverses each NIC with the same rewrite the failover used. A guestâs Network tab starts from the rewrite for its own VLAN. Re-IP mode counts VLAN rewrites as a default.
Detect fills these fields from the two controllersâ own networks: the recovery siteâs controller gives the recovery subnet, its gateway and its DNS server, and the primary siteâs controller the source subnet. When the pairâs guests are detected on another subnet than the primary controllerâs, the page offers that one as the source subnet, since it is the guests that are re-addressed. With several pairs, choose whose controllers to read. For each source VLAN the guests use, it also lists the subnet of the addresses detected on those NICs, with an Add a rewrite for VLAN N button, and fills the source subnet of a VLAN row you already have. No controller sits on those VLANs, so their recovery subnet is yours to enter. Blank fields are filled in and fields that already had a value are left alone. They save once the default is complete, so check the values after detecting. Clear the default removes the default (and every VLANâs rewrite) after a confirmation.
When the mode and the default disagree
If the mode says Keep IPs but a re-IP default is set, the effective behaviour is Re-IP: the default wins, because itâs the more specific instruction. Rather than leave that as a trap, the page computes the effective behaviour live and offers two one-click fixes in a warning titled This pair has a re-IP default, so guests are still re-addressed. (The effective behaviour line shows only when the default changes what the mode does: here, and in Re-IP mode with no default set, where no guest without addresses of its own is re-addressed.)
- Clear the default, so Keep IPs keeps IPs, or
- Switch to Re-IP, so the label matches what already happens.
Either is correct. What matters is that the page never quietly does something other than what it says.
DNS
The DNS zone at the recovery site card at the bottom of the page edits an Asternodis-managed
dnsmasq that the recovery node runs for the pair (it saves as you edit, like the rest of the page). When
guests are re-IPâd, their names have to resolve to the new addresses or half
your estate still points at dead ones. This gives the recovery site a zone that
answers for the recovered guests without you touching production DNS.
Flip DNS on failover is the switch, and the fields only show while it is on. Turning it on starts nothing: DNS starts when a guest of the pair fails over. Turning it off stops DNS on the recovery node, which nothing else does, so turn it off when you no longer need it after a failback. While a guest is failed over, a change to the zone reaches the DNS serving it as soon as it saves.
Per-VM networking
The Result: what each guest gets list is the per-guest view of the same settings: which guests inherit the pair defaults and which carry their own re-IP override (a per-guest re-IP pill, plus Own VLAN, Failed over and Address collides flags). Each row links to that guestâs panel on the Guests page, opened on its Network tab, where you edit it.
Use the defaults for the bulk of your estate and reserve overrides for the handful of guests that need a fixed address at the recovery site: domain controllers, load balancers, anything else hard-coded elsewhere.
On a guestâs Network tab (open the guest from Guests, then choose Network), each NIC has an Address choice for a failover and for a DR test:
- Pair default: the NIC takes the pairâs re-IP default. The tab shows the address that gives it, or says why it gives none.
- Move to subnet, Fixed address or DHCP: the NIC has a rule of its own.
To fill them in at once, press Detect addresses for the Auto-detect and derive card. Auto-detect fills the recovery subnet and gateway from the recovery siteâs controller, and the source subnet starts at the guestâs own (leave it empty to map each address from its own subnet). Failover and DR test then derive an address for each NIC by the rewrite above, and always pick one: when the rewritten address belongs to another guest of the pair, is the gateway, or would be the subnetâs network or broadcast address, the next free address is taken; a guest with no known address gets the first free one. A note says which addresses were not the plain rewrite, and why. Addresses save as you make them and sync to the other site.
To move a guest into another subnet without choosing its address, change the Recovery
subnet and Gateway at the top of the card: the failover rows follow, one subnet rule
per NIC, and they save. (A NICâs mode can also be set to subnet by hand; once you
edit the rows yourself, the fields at the top only feed Failover and DR test.) The
address is worked out when the guest
fails over or is DR-tested, from the NICâs own address by the rewrite above: 10.10.1.77/16
moved into 192.168.20.0/24 comes up as 192.168.20.77/24. The tab shows that address under
the field. A NIC with no known address keeps its own, and the operationâs log says so rather
than applying the pair default in its place.
A guestâs own addresses with no DNS nameserver set take the DNS server of the pairâs re-IP default for the guestâs VLAN, since that is the server this pair uses on the recovery network. With no DNS server there either, the guest keeps the one it has at home. The tab says which applies under the field. The failover and DR-test logs name the gateway and DNS server each re-IP gives, and warn when a guest keeps a DNS server named in its own config.
A containerâs static address (the ip= on its network line in Proxmox) counts as a known
address, as a VMâs cloud-init address does.
A guestâs own VLAN
Each NIC on the guestâs Network tab has a failover column and a DR test column, and each carries a VLAN choice that gives the NIC a VLAN of its own, for failover and for a DR test separately. The tab lists each NIC with its source bridge and tag, and where the network map puts it on each side. For each NIC and side choose Follow the network map, untagged, or a tag.
- The choice applies over the network map, to a NIC the map keeps. It never re-attaches a NIC the map drops: a NIC a DR test fences stays fenced.
- A DR test does not take the failover choice. A test stays on the mapâs test network unless you give it a VLAN here.
- A guestâs own DR-test VLAN that puts a NIC on the same bridge and VLAN as its failover makes the test copy not isolated. The DR testâs log says so, and the pairâs test is no longer called isolated.
- The failover and DR-test logs list the guestâs own VLANs when it has any. The Network pageâs per-guest list marks such a guest Own VLAN.
Blocking a DR test copyâs outbound traffic
A DR test boots a real copy of the guest. A tunnel or VPN client in it (cloudflared, a mesh VPN, a VPN client) dials out from the copy with the production credentials, on whatever network the copy is on. Cloudflare, for example, then treats the copy as a second connector for the same tunnel and can send real visitors to it. Keeping the copy off the production network does not stop this: the client only needs a route out.
The Outbound block in a DR test card on the guestâs Network tab sets a block for that guestâs DR-test copies. Choose what the test copy is blocked from:
- Off: the copyâs traffic is not blocked. The DR testâs log says so.
- Block ports: the copy cannot reach the listed destination ports, TCP, UDP or both, single ports or ranges (Add port, with a To (for a range) column). Presets add cloudflared (7844, TCP and UDP), WireGuard (51820, UDP) and OpenVPN (1194). A client that falls back to port 443 when its own port is blocked (most mesh VPNs) is not stopped by a port block.
- Block internet: the copy can reach only private addresses (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7), link-local and multicast ones. Everything else is dropped, IPv4 and IPv6. A proxy on a private address can still relay traffic out.
How it works:
- The block is a firewall table on the recovery cluster that matches only the test copyâs own interfaces. Nothing else on the node is touched, including the same guest when it has failed over there.
- It is installed before the copy is built, on every node of the recovery cluster. If the node the
copy starts on cannot take it (no
nftcommand, or the copyâs bridge is not a Linux bridge, such as an Open vSwitch bridge), the DR test is refused rather than started without it. - It is removed when the copy is removed: by Stop test, a recovery planâs stop, or a failover over a running test. A background check puts a running testâs block back on a node that lost it (a node restart) and removes a block whose test is over. The guestâs panel shows Outbound blocked while its test runs, and a warning when the check fails.
- A change to the setting saves at once and applies from the next DR test. A running test keeps the block it started with.
- Frames the guest tags with a VLAN of its own are dropped from a blocked copy, since the block cannot read the address or port inside them.
- A guest whose config has a PCI passthrough device, QEMU arguments that add a network device, or
a containerâs raw
lxc.netkeys cannot be given a block: its traffic would not cross the bridge where the block is enforced. USB passthrough is named in the DR testâs log, since a USB network adapter would bypass the block too.
Related
- Recovery placement & networking: choosing the storage and node a recovered guest lands on.
- Create a DR Site Pair: the pair these settings belong to.
- Recovery Plans: ordering guests into a runbook once their networking is right.