Skip to content
Okena Systems

Guide

How to connect a company's offices securely

When a business opens a second office, a warehouse or a workshop, the same question always comes up: how do both sites work with the same data without opening a security hole? There are three sensible ways to do it, and the right one depends less on technology than on what actually has to travel between the sites.

By Published

In short

The short version

  • Before choosing any technology, list what has to be shared between the sites. Sometimes the answer is “nothing”, because it all lives in the cloud already.
  • For two or three sites with a server or a business application in one of them, the usual answer is an IPsec VPN between the business-grade firewalls at each site.
  • SD-WAN makes sense with several sites, several lines per site or applications that cannot tolerate drops, such as voice.
  • What makes the link secure is not the encrypted tunnel but what is allowed through it: minimal rules, separate networks and up-to-date equipment.

First: what has to travel between sites

The useful question is not “which VPN should we buy?” but “what does each site need from the other?”. With that list in front of you, the answer almost picks itself. What usually comes up:

  • A business management, ERP or accounting application installed on a server at the main site.
  • Shared folders on a server or a NAS in the office.
  • Printers, scanners or label printers used from the other site.
  • IP telephony with the phone system at one of the sites.
  • Cameras, access control or warehouse machines that are checked from the office.

If the list stops at email, documents and video calls, and all of that already lives in Microsoft 365 or Google Workspace, you may not need to join the networks at all: each site has its own internet connection and the cloud is the common ground. It is the simplest option and the one that needs the least upkeep.

The three ways to do it

None of them is better in the abstract. Each one fits a different kind of business:

Comparison of the usual ways to connect a company's offices
OptionWhen it fitsBear in mind
No network between sites (everything in the cloud)What is shared is email, documents and applications that already run in the cloud.Each site depends entirely on its own internet connection. It does not work if there is a server or an application that only runs in the office.
Site-to-site VPN (IPsec)Two or three sites, with a server, a NAS or the business application at the main one.Needs a business-grade firewall at each end, not the ISP's router. If the main site's line goes down, the others lose whatever lives there.
SD-WANSeveral sites, two lines per site or applications sensitive to drops, such as voice or remote desktop.It usually costs more and needs more design up front (underneath, it normally still uses IPsec tunnels). In return it spreads traffic across lines by application and switches between them automatically, all from one console. With two sites it rarely pays off.

There is one variant worth knowing: if the server moves to the cloud (to Azure or another provider), each site connects to the cloud instead of to the main office. The main site stops being the single point every other site depends on.

Mistakes I often find

  • “Any to any” rules between sites, added so it worked on day one and never reviewed.
  • The VPN set up on the ISP's router, with no logs or updates, and lost the day the ISP swaps the device.
  • Remote desktop (RDP) open to the internet so the other site or management can get in “without hassle”.
  • The same shared key on every tunnel and on the users' VPN.
  • Nobody knows what is configured: no diagram, no recorded addresses and no backup of the firewall configuration.
  • No fallback if the main site's line goes down, even though the other sites depend on it to work.

How it is set up without stopping work

  • Inventory

    What each site has, which lines it uses and what has to be reachable from the other.

  • Addressing and rules plan

    Network ranges that do not overlap, and the short list of services that will cross the tunnel.

  • Parallel installation

    New equipment is installed and tested before the old one is removed, outside the busiest hours.

  • Testing with real use

    The business application, printing and voice, tested from the other site while people are working. A tunnel that is “up” does not mean the application works well.

  • Documentation

    Diagram, addresses, rules and a backup of the configuration, stored where they can be found on the day they are needed.

Checklist

Check your own set-up

If your sites are already connected, these questions say a lot about the state of things. Every “I don't know” is a place to start.

  • Do you know which services cross from one site to another, and are those the only ones allowed?
  • Does each site have a business-grade firewall with current firmware?
  • Does the tunnel use IKEv2 and certificates, or a long key used only for it?
  • Are the guest network and the cameras separated from the work network?
  • Do you find out the tunnel is down before somebody phones?
  • Is there an up-to-date diagram and a backup of the configuration?
  • What happens at the other sites if the main site's line goes down?

Questions

Frequently asked questions.

Can I use the ISP's router for the site-to-site VPN?

Some allow it, but for a business it is not advisable: they tend to have few rule and logging options, they are updated when the ISP decides, and the configuration is lost if the device is replaced. The usual approach is to leave the ISP's router as plain internet access and put a firewall of your own behind it.

What happens if one site loses its internet connection?

That site can no longer see the others, and if it is the one with the server, the others lose access to it too. If work depends on that link, the answer is a second line —from another provider or over mobile data— with automatic failover on the firewall. It is decided before it happens, based on what downtime would cost.

Do we have to replace the network equipment to connect the sites?

Not always. If there are already business-grade firewalls with manufacturer support, configuring them is enough. If what you have is the ISP's router or devices that no longer receive updates, then yes, each site needs one.

Is a site-to-site VPN the same as a VPN for remote working?

No. A site-to-site VPN joins two networks permanently, device to device. A remote-working VPN connects one person from their laptop and should require two-step verification. Both can live on the same firewall, with different rules.

What if we move the server to the cloud?

The layout changes: each site connects to the cloud and none depends on another. It makes sense when the server is due for replacement or when many people work from outside. It is not always cheaper, so it is worth running the numbers before deciding.

Sources

Read the original

The encryption recommendation (IKEv2 and AES-GCM) rests on this public reference, in case you want to check it.

Contact

Two sites working like two companies?

Tell me what has to be shared between them and I will propose the simplest way to do it. The assessment is free.

Area
Viladecans, Baix Llobregat and Barcelona · see service area
  • Replies during working hours
  • Free assessment, no commitment
  • No sales visit