This article describes how to add Phase 2 Selectors from FortiManager in the Device Database Level since VPN Manager does not support this option.
FortiManager.
Configuring IPsec using VPN Manager in Hub and Spoke Topology will only create a single Phase 1 interface and a single Phase 2 interface for each tunnel.
FGT-HUB $ config vpn ipsec phase1-interface
FGT-HUB (phase1-interface) $ edit "test_4"
FGT-HUB (test_4) $ set interface "port1"
FGT-HUB (test_4) $ set comments "[created by FMG VPN Manager]"
FGT-HUB (test_4) $ set proposal aes128-sha256 aes256-sha256
FGT-HUB (test_4) $ set keylife 28800
FGT-HUB (test_4) $ set peertype any
FGT-HUB (test_4) $ set remote-gw 10.47.3.197
FGT-HUB (test_4) $ set net-device disable
FGT-HUB (test_4) $ set add-gw-route enable
FGT-HUB (test_4) $ set psksecret *********************
FGT-HUB (test_4) $ next
FGT-HUB $ config vpn ipsec phase2-interface
FGT-HUB (phase2-interface) $ edit "test_4_0"
FGT-HUB (test_4_0) $ set phase1name "test_4"
FGT-HUB (test_4_0) $ set proposal aes128-sha256 aes256-sha256 aes128-sha1 aes256-sha1 aes128gcm aes256gcm chacha20poly1305
FGT-HUB (test_4_0) $ set comments "[created by FMG VPN Manager]"
FGT-HUB (test_4_0) $ set keylifeseconds 1800
FGT-HUB (test_4_0) $ next
In VPN Manager, there is no option to add Phase 2 Selectors as per FortiGate. Go to FortiGate, VPN -> IPsec Tunnels -> Select tunnel -> Phase 2 Selectors and select 'Add':
This option can be done from Device Manager instead after the tunnel are created from the VPN Manager, using a GUI and also a Scripts.
Check on Install Preview and proceed to install, Confirm on FortiGate the Phase 2 Selectors are added.
Run Script to a specific device and perform an install, confirmed on FortiGate the Phase 2 Selectors are added.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.