KORTHVEILSecurity firewall
Guides

IPsec site-to-site: connect two offices

Download as PDF All guides

VPN › IPsec connects this firewall to another site's firewall or cloud VPN gateway (another Korthveil, pfSense, Fortinet, Cisco, AWS, Azure…) with IKEv2, for IPv4 and IPv6 networks.

Step 1: Add the tunnel

  1. Open VPN › IPsec. Under Peers connect from, tick the internet zone (usually WAN).
  2. Type a name (for example branch) and click Add tunnel.
  3. Peer: the Remote gateway (its address or DNS name). Leave IKE version at 2 unless the other side only has IKEv1.
  4. Authentication › Method:
    • Pre-shared key: generate one and give the same key to the other side.
    • Certificates (stronger): paste this firewall's Local certificate and key, the Peer's CA certificate, and the peer's identity as Remote ID (for example CN=vpn.partner.example).
  5. Traffic: the Local subnets and Remote subnets (IPv4 and IPv6), and the zone the tunnel's traffic belongs to. Add rules between that zone and your networks.
  6. Save to pending changes, then commit. Tunnel status shows up once both sides agree.

Revoked certificates

With certificates, the firewall can refuse a peer whose certificate its CA has revoked, for example after the partner's firewall was stolen.

  1. Ask the partner for their CA's revocation list (CRL) address. It is in their certificates as "CRL distribution point", for example http://pki.partner.example/ca.crl.
  2. In the tunnel, fill in CA's revocation list addresses, or paste a list under Or paste the revocation list.
  3. Choose Revocation check of the peer's certificate:
    • Refuse revoked certificates (default): a revoked certificate is refused. If no list is available, the tunnel still comes up.
    • Also refuse when the CA's list is expected but not current.
    • Refuse unless a current list says it is not revoked (strictest; needed for Common Criteria). The tunnel stays down while no current list is available.
  4. Commit. The Revocation lists panel shows each list, how many certificates it revokes, its next update, and any download problem.

Korthveil downloads each list every 6 hours, sooner when the list says it expires earlier. It uses a list only if the tunnel's CA signed it, so a forged list is refused.

Things to know

  • Lists are reloaded into IPsec every 10 minutes, including after the IPsec service restarts.
  • Use a CA certificate and revocation list from the partner, never from an e-mail you cannot verify.

Download as PDF All guides