Skip to content
AtGlance
Remote Tunnel

Site-to-Site IPsec VPN

An IKEv2 tunnel between the console's IPsec gateway and a remote firewall or VPN gateway. The gateway can be one that already serves other sites, such as Azure VPN Gateway, AWS Site-to-Site VPN, FortiGate or pfSense. The console is added to it as one more peer. Requires console 3.0.0 or later.

1. Run the IPsec gateway

The gateway needs a Linux Docker host (kernel IPsec). In the console's folder:

docker compose -f docker-compose.yml -f docker-compose.tunnel.yml -f docker-compose.ipsec.yml up -d

It publishes UDP 500 and 4500, so the remote firewall must reach them. The container has only the NET_ADMIN and NET_BIND_SERVICE capabilities; the console itself stays unprivileged.

2. Create the profile

  1. Go to Remote Tunnel → New profile → Site-to-Site IPsec VPN. The allow-list holds the remote networks and ports, for example 10.50.0.0/16 22,443.
  2. On the IPsec tab, enter:
    • the remote peer;
    • the IKE IDs (usually the two public IP addresses);
    • a small free console side subnet such as 10.255.0.0/30;
    • the authentication and the proposal.
  3. Download the Config sheet for the firewall team. It has every value and starting points for Azure, AWS, FortiGate, strongSwan and pfSense/OPNsense. It contains no secret. Verify the snippets before use.

Supported cryptography (enforced)

Allowed
IKE version IKEv2 only (IKEv1 and aggressive mode are refused)
Encryption AES-256-GCM (default) or AES-128-GCM
Integrity / PRF SHA-256, SHA-384 (default), SHA-512
DH groups 14, 19, 20 (default), 21, with PFS
Lifetimes IKE 8 h, ESP 1 h; dead peer detection 30 s

Certificates or PSK

  • Certificates (default). The console's internal CA issues the gateway a certificate for the console's IKE ID and renews it automatically. Give the remote firewall the console's CA (shown on the IPsec tab). Paste the CA that signed the firewall's certificate into the profile.
  • Pre-shared key (fallback). Azure VPN Gateway site-to-site connections support only this. The console generates 48 random characters, or you can enter the key an existing peer already uses. The key is stored encrypted and shown once. Revealing it again needs the reveal permission and your password, and is audited.

Username and password authentication is not offered for site-to-site tunnels.

Azure VPN Gateway

Use a pre-shared key, SHA-256 or SHA-384, and DH group 14, 19 or 20. The config sheet writes these commands for you:

  • az network local-gateway create, with the console's public IP and the console side subnet;
  • az network vpn-connection create with --use-policy-based-traffic-selectors true;
  • az network vpn-connection ipsec-policy add with the console's proposal.

See also: Troubleshooting.