FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Article Id 192292


This article describes how to use Peer IDs to select an IPSec dialup tunnel on a FortiGate configured with multiple dialup tunnels.

Dialup VPN tunnels are used when the remote VPN gateway or remote VPN client IP address is dynamic and therefore unknown.

Many customers use a single dialup tunnel (Phase 1 and Phase 2) for all remote dialup VPN gateways and clients.

In some cases, multiple dial-up tunnels are required.

For example:
To grant different remote VPN client users access to different networks and services.
To grant remote VPN gateways access to different networks and services

FortiGates uses Peer IDs as the unique identifier to select a dialup tunnel. When multiple dialup tunnels are added, give each tunnel a different Peer ID.
Assign corresponding Peer IDs to remote VPN gateways and remote VPN clients.


When the IPsec tunnel is created by the wizard there is no GUI option to add a peer ID. To be able to add a Peer ID on an IPsec tunnel created by the wizard there are 2 options:


  1. Using the CLI




  1. Convert the IPsec Tunnel to a custom tunnel:





Aggressive mode configuration:

Second dialup tunnel:

FortiClient Configuration:
Debug verification for each tunnel:

Using the below commands enables IKE to debug logs:

diag debug reset
diag debug application ike -1
diag debug enable
tau-kvm68 # ike 0: comes>,ifindex=3....
ike 0: IKEv1 exchange=Aggressive id=df23d7be2de17010/0000000000000000 len=511ike 0:df23d7be2de17010/0000000000000000:0: responder: aggressive mode get 1st message...
ike 0::0: received peer identifier FQDN 'dialup1'

From the FortiGate IPSec Monitor tab:
For the second peer id (dialup2):
tau-kvm68 # ike 0: comes>,ifindex=3....
ike 0: IKEv1 exchange=Aggressive id=d74d09b92f8f1cbd/0000000000000000 len=511
ike 0::1: received peer identifier FQDN 'dialup2'