IPsec VPN configuration using IPsec wizard and CLI
The FortiGate as an IPsec device for SD-WAN On-Ramp requires the following IPsec VPN settings:
- IKEv2
- Branch device configured as an IPsec VPN dialup client. Your branch device connects to the FortiSASE SD-WAN On-Ramp location, which acts as a remote site.
- You must enable the mode config setting. Each FortiSASE SD-WAN On-Ramp location assigns IP addresses, and the branch device automatically configures its tunnel interfaces IP address with the acquired IP address. You also use this IP address to set up BGP peering.
- On branches, remote gateway(s) where one overlay tunnel should be established per underlay even though multiple WAN underlays exist
Use network overlay IDs for each overlay tunnel configuring set network-overlay enable and set network-id <n>
Branch devices must be configured with a network ID of 1.
- Pre-shared key for each overlay tunnel
- Phase 1 and 2 proposals and settings
- For IPsec phase 1, only aes256-sha256 is supported.
- For IPsec phase 2, only aes256-sha256 is supported.
The following settings are only examples. Do not consider them as recommended settings. |
To configure an IPsec VPN using the GUI and IPsec wizard:
- On the FortiGate, go to VPN > IPsec Wizard. The VPN Creation Wizard displays.
- Configure the following VPN Setup options:
- In the Name field, enter VPN1.
- For Template type, select Site to Site.
- For NAT configuration, select the option that corresponds to your network topology.
- For Remote device type, select FortiGate.
- Click Next.
- Configure the following Authentication options:
- For Remote device, select Dynamic DNS.
- For FQDN, paste the FQDN from the Edge Devices > SD-WAN On-Ramp > On-Ramp locations page. Notice that the FortiGate displays Resolved to < IP address >. Make note of this IP address since it will be used later.
- From the Outgoing Interface dropdown list, select the WAN interface that the hub will listen on for VPN peer connections. For example, you could select wan1.
- For Authentication method, select Pre-shared Key.
- In the Pre-shared key field, enter the desired key in alphanumeric characters. Click Next.
- Configure the following Tunnel Interface options:
- In the Tunnel IP field, enter 10.251.1.1.
- In the Remote IP/netmask field, enter 10.251.1.30/32. Click Next.
The tunnel interface IP address is assigned by mode configuration. However, this step simply configures placeholder values to allow the IPsec wizard to proceed.
- Configure the following Policy & Routing options:
- Set Local interface to the desired LAN interface(s).
- Observe that the Local subnets are automatically detected based on the LAN interface(s) selected.
- For Remote Subnets since there are no specific destinations, enter 0.0.0.0/0
- For Internet access, select None. Click Next.
- Configure the following settings using the CLI. The IPsec wizard does not configure these settings. Replace VPN1 with your actual IPsec VPN phase 1 name:
- Enable IKEv2
- Enable network overlays
- Set the VPN gateway network ID to 1.
- Enable mode config.
config vpn ipsec phase2-interface delete VPN1 end config vpn ipsec phase1-interface edit VPN1 set ike-version 2 set network-overlay enable set network-id 1 set mode-cfg enable set auto-discovery-receiver enable next end config vpn ipsec phase2-interface edit "VPN1" set phase1name "VPN1" set proposal aes256-sha256 next end