Journal
Secure Access Published note 7 min read

Connecting Two Offices: UniFi SD-WAN or a Manual Site-to-Site VPN?

Compare UniFi SD-WAN and a manually managed site-to-site VPN for multi-site offices. Learn what to check before connecting a branch to the headquarters PBX and how to test recovery when a link fails.

Why it matters

A tunnel can be up while phones or private applications still fail. Choose a network you can maintain, then test the services people rely on before moving them onto it.

Core takeaways

  • A manually managed VPN can be enough for two stable sites. UniFi SD-WAN is worth evaluating when compatible gateways and plans for more sites make centralized management useful.
  • Check addressing, gateway compatibility, and WAN reachability before choosing a topology. Share only the networks and services each site needs.
  • Test WAN failover, tunnel recovery, and voice recovery separately. An active call and the next new call may have different outcomes.

Do two offices need SD-WAN?

If you have two sites, a small set of shared services, and someone who can maintain both gateways, a manually managed site-to-site VPN may be all you need. If you already use compatible UniFi gateways and expect to add branches, UniFi SD-WAN (Site Magic) is worth evaluating because it centralizes how you set up and manage site connectivity.

This is not a choice between encryption and no encryption. Ubiquiti's SD-WAN documentation describes how UniFi establishes site-to-site VPNs between its gateways. The practical choice is between configuring the site connections centrally in UniFi Site Manager and managing each tunnel directly on the selected gateways. WireGuard is one VPN technology you can use independently; it is not, by itself, a multi-site management platform.

Compare how you will operate the network

FactorUniFi SD-WANManual VPN
GearSupported UniFi gatewaysCompatible endpoints; can suit mixed vendors
SetupSet up sites and network sharing in Site ManagerConfigure tunnels, routes, and policies on the selected systems
Best fitCompatible UniFi sites with plans to growTwo stable sites or a design that must retain non-UniFi hardware
RecoveryDepends on topology, gateway support, and WAN designDepends on the endpoints and how redundancy is designed

Check gateway models, software versions, administrative ownership, and public IP requirements for your chosen topology before buying hardware. Non-UniFi gateways are not native Site Magic members. Ubiquiti documents separate IPsec and OpenVPN options for interoperability, but the selected devices and settings still have to match.

Count ongoing work as well as hardware costs. Who owns changes at both ends? Who diagnoses a failed branch connection outside business hours? The best fit is the option your team can operate and verify, not necessarily the one with the longest feature list.

A hypothetical example: headquarters PBX and one branch

Imagine a headquarters hosting a business phone system (PBX). A branch needs to reach that PBX, but it does not need access to the headquarters guest network or every office workstation. This is an illustrative design, not a customer installation or test report.

Hypothetical headquarters and branch. Branch phones reach the headquarters PBX over an encrypted site-to-site connection. Guest networks are not shared.
Illustrative two-office design after resolving any address overlap. Only approved business traffic crosses the site-to-site connection.

Check the addresses before the tunnel. If both sites use 192.168.1.0/24, for example, ordinary routing cannot reliably distinguish destinations that appear local at both ends. Where practical, plan to renumber one site before rollout. Ubiquiti documents a NAT option for certain hub-and-spoke arrangements with overlapping spoke networks. Its default behavior allows spokes to initiate sessions to the hub, not the reverse. Verify the required connection directions rather than treating NAT as a drop-in replacement for unique addressing. UniFi's documented mesh mode does not support overlapping shared subnets.

Choose topology based on where the work happens. If future branches mostly need the headquarters PBX or applications, a hub-and-spoke design is a natural candidate. If several offices need direct access to one another's services, evaluate mesh and the added work of managing site-level policies. For today's two offices, the first decision is simpler: can we reliably operate one connection, and does a centralized workflow justify its equipment requirements?

Share only what the branch needs. List the intended flows by source, destination, and purpose. The branch voice network may need to reach the PBX; the guest Wi-Fi network does not. Test that the allowed path works and that an unapproved path remains unavailable. That is a better acceptance criterion than whether the sites can ping one another.

The tunnel is up. Can the phones still make calls?

A reachable PBX is not enough. SIP signaling sets up calls, while RTP typically carries the voice media. Those flows can have different paths and firewall or NAT behavior. A handset can register and ring while one side cannot hear the other. Asterisk's PJSIP documentation illustrates why signaling and media need to be checked separately. The exact media path depends on the PBX and endpoint configuration.

Use an agreed maintenance window to test three separate outcomes:

  1. Establish a baseline. Check extension registration where applicable, calls in both directions, and two-way audio. Test external calling and transfers if the branch relies on them.
  2. Measure the primary WAN failure. With a test call active, simulate the loss of the primary link. Record when the backup WAN takes traffic, when the required site-to-site paths are usable, and what happens to the active call.
  3. Measure new calls and the return to normal. Record when a new call can be made and received with two-way audio. Restore the primary WAN and repeat the essential checks. Compare the observed recovery times with the business's requirements.

UniFi's Multi-WAN documentation distinguishes failover to a standby WAN from load balancing across multiple WANs. Neither setting alone proves a phone call will survive a link change. An existing session may be interrupted even if a new one works shortly afterward. Measure both; do not promise zero downtime from a gateway setting.

What to bring to a multi-site network assessment

  • The locations you need to connect now and any likely additions.
  • Gateway models, software versions, internet providers, and backup lines at each site.
  • The subnets and VLANs in use, and which networks must stay separate.
  • The location of the PBX, which phones and applications need it, and which side initiates each connection.
  • How long each critical service can be unavailable and who will maintain the setup.

Share a summary, not VPN keys, passwords, or a full configuration export. For the related but separate problem of connecting individual remote staff or maintenance devices, see our WireGuard guide for remote work.

This guide applies the linked vendor and project documentation to an illustrative design. It does not report benchmark or field-test results. Confirm model and version requirements during assessment, and decide whether the service is ready from the tests on your own network.

Next Step

Need help connecting your offices?

Tell MD3 how many sites you have, what equipment is already there, and which phones or private applications must keep working. A network assessment can start with what you already own.