The day a second office opens, the same question arrives: how will the branch reach the file server, the ERP and the camera recorder that all sit at head office? The durable answer is a site-to-site VPN — a permanent tunnel that joins two networks without anyone connecting by hand. Building the tunnel is usually the shortest step of the project. What stretches these jobs out is the IP planning nobody did beforehand, and the MTU, routing and name resolution problems that surface afterwards. Here is the order we work in when the goal is to build a branch link once and leave it alone for years.
A site-to-site VPN is not a remote access VPN
The two get used interchangeably, but they solve different problems and are built differently.
- Remote access VPN is person-centred. There is a client on the employee’s laptop, the user connects, and they disconnect when they are done. Permissions are granted to people.
- Site-to-site VPN is network-centred. The tunnel runs between the firewalls or routers at each end and stays up continuously. Nothing is installed on the branch PCs, printers or handheld scanners; they simply see the head office server as if it were on their own network.
Most companies need both: branches joined by site-to-site tunnels, and field or home-based staff coming in over remote access. Even when the same appliance handles both, they are planned and authorised separately.
One clarification up front: we build enterprise VPN only — branch-to-branch connectivity and controlled remote access for staff into a company network. We do not provide personal VPN services for bypassing geographic restrictions or for anonymous browsing.
No IP plan, no tunnel
The most common blocker on branch projects is not technical, it is clerical: both offices are using the same address range. Consumer and entry-level routers tend to ship with the same default, so head office and the branch both end up on something like 192.168.1.0/24. In that situation the tunnel can come up and still carry nothing, because a PC at the branch looking for 192.168.1.50 searches its own LAN and never hands the packet to the tunnel at all.
There are two ways out:
- Renumber one side. This is the right answer. You walk through statically addressed devices, printers, camera recorders, servers and the DHCP scope, and you do it as planned work outside business hours.
- NAT across the tunnel. This hides the overlap but leaves permanent friction: the addresses in your logs are not the real addresses, name resolution misbehaves, and every future troubleshooting session takes twice as long. Keep it for cases where renumbering genuinely is not possible.
If there will ever be more than one branch, plan the whole address space now. Giving every site its own non-overlapping block costs nothing today and saves a migration when branches three and four appear. The same document records which networks will cross the tunnel and which stay local — as a rule, the guest network and the camera/IoT network are not published to head office.
IKEv2 or WireGuard?
Both are suitable for branch connectivity. The choice is dictated by the hardware at each end, not by preference.
IPsec/IKEv2 is the common language of business firewalls. If the two ends are different brands, IKEv2 is almost certainly the protocol they can both speak. The cost is more parameters to agree on: key exchange (IKE) runs over UDP 500, encrypted traffic is carried in ESP, and where NAT sits in the path it gets encapsulated over UDP 4500. Phase 1 and Phase 2 settings have to match exactly at both ends; a single mismatched cipher suite or lifetime value is enough to stop the tunnel establishing.
WireGuard has far fewer moving parts: a key pair per peer, an endpoint, and the list of addresses allowed through the tunnel. A short configuration means a small surface for mistakes. The condition is that both ends support it. Linux-based routers and current firewall distributions are fine; older enterprise appliances generally are not.
The working rule: different off-the-shelf appliances at each end, use IKEv2; you control both ends and want something simple, use WireGuard. We compared the two in detail in WireGuard vs IPsec.
The build order
- Pin down the endpoints. At least one side needs a static public IP. If neither has one, use dynamic DNS and configure the tunnel to be initiated from the side whose address changes.
- Write the parameters down before you type them. Cipher suite, key lifetimes, authentication method — in a table, entered identically at both ends. It is the only thing that prevents the later question of which value somebody changed.
- Define the traffic selectors. Phase 2 selectors on IKEv2, AllowedIPs on WireGuard. Only networks that genuinely need to cross should cross.
- Write the firewall rules. A tunnel being up is not access; traffic through it still has to be permitted. The branch does not need to reach everything at head office — start with the file server and the ERP ports and leave the rest closed. We walked through rule writing in how to plan and write firewall rules.
- Verify routing. Confirm that the routing table at each end points the far-side network at the tunnel interface.
- Test with the real application. A ping is not a test. Copy a file, open the ERP, print something, pull up a camera stream.
The tunnel is up but the application does not work: MTU and MSS
This is the fault that eats the most time on branch links, and the description is always the same: ping works, small queries come back, but file copies stall halfway, the ERP window freezes, and some pages load partially.
The cause is that the tunnel adds its own headers to every packet, which reduces how much payload fits inside. Endpoints normally discover this through path MTU discovery, but that mechanism fails silently when the relevant ICMP messages are blocked somewhere in the path. The packet is neither delivered nor reported back, so the connection simply appears to hang.
The fix is three checks: lower the MTU on the tunnel interface to allow for encapsulation overhead, clamp the TCP MSS for sessions crossing the tunnel, and confirm the firewall is not dropping fragmentation-related ICMP. Skip them and the symptom lives on for months as “the network is sometimes slow” — usually with the circuit getting blamed.
Name resolution and internet traffic
The second complaint after a tunnel goes live is normally “it opens by IP but not by name.” That is DNS: branch clients cannot resolve the head office domain. The fix is a conditional forwarder on the branch-side DNS for the head office zone, plus the right search suffix handed to clients.
There is one more decision to take deliberately: should the branch’s internet traffic leave through its own circuit, or be routed out through head office? Routing it centrally gives you one place to filter and log, but it ties all of it to the central circuit’s capacity and adds latency. If only specific traffic needs to egress centrally, do that selectively rather than sending everything.
Three branches and up: hub-and-spoke or mesh
With two offices there is one tunnel and nothing to decide. The third branch brings a topology choice.
- Hub-and-spoke connects every branch to head office only. It is the easiest to run: adding a site means adding one tunnel, and the rules live in one place. The trade-off is that branch-to-branch traffic turns around at the centre, which makes the central circuit and the central appliance the bottleneck for everything.
- Mesh also connects branches directly to each other. Traffic between sites takes the short path, but the number of tunnels grows quickly with the number of sites, and each one needs its own configuration and its own monitoring.
In practice hub-and-spoke is the right answer for most companies, because direct branch-to-branch traffic usually does not exist — everyone is connecting to the server at the centre. Move to mesh only when there really is heavy, latency-sensitive traffic between sites, and decide it by measuring current traffic rather than by assumption.
Monitoring, redundancy and upkeep
A branch tunnel becomes invisible once it works, and it is not the first thing anyone looks at when something breaks. That is why monitoring goes in at build time.
- Monitor tunnel state, not just whether the far end answers a ping. You want something that tells you the tunnel dropped.
- Turn on dead peer detection or keepalives. Without them a dropped tunnel waits for the next packet before it tries to rebuild itself.
- Put key and certificate lifetimes in a calendar. An expired certificate takes the tunnel down with no warning at all.
- Consider circuit redundancy. A branch on a single line loses its link to head office when that line goes down. A second circuit or a mobile backup pays for itself at sites that cannot stop.
- Keep the logs. Tunnel establishment and drop records are the only way to tell afterwards whether a problem was the circuit or the configuration.
None of this is a standalone VPN job; it belongs to the network infrastructure plan, and the branch link sits inside that plan.
Seven questions to answer before you build
- Do the two offices’ address blocks overlap? If so, which side gets renumbered?
- What protocols do the devices at each end support? Does at least one side have a static public IP?
- Which networks will cross the tunnel, and which will not?
- Which systems at head office does the branch actually need? Does everything else stay closed?
- Will the branch’s internet traffic leave through its own circuit?
- Who finds out, and how, when the tunnel drops?
- Will critical sites have a backup circuit?
With written answers to those seven, the build becomes routine work. Without them, the project gets finished piecemeal in the weeks after it went live.
If you would like us to review your existing branch setup or plan a new link, we can start with a free assessment: get in touch and we will go through your current devices and address plan together.