Description | This article describes how to migrate SAML SSL VPN to IPsec with minimal config changes. |
Scope | FortiGate v7.2+. |
Solution |
This is the SSL VPN sample config:
config vpn ssl settings
config user saml
config firewall policy
config system global
set auth-ike-saml-port 44433
end
Attempting to configure already used SSL VPN port 44433 in auth-ike-saml-port, will result in the error below:
'This port is being used by sslvpn node_check_object fail! for auth-ike-saml-port 44433' Change the port in SSL VPN settings to some other value if this will be decommissioned. Another option is to create a new SAML connector configured to use the default auth-ike-saml-port 1001 port.
config vpn ipsec phase1-interface
edit "IPSEC-FAC-SAML"
set type dynamic
set interface "wan1"
set ike-version 2
set peertype one
set net-device disable
set mode-cfg enable
set proposal aes128-sha256 aes256-sha256
set comments "sslvpn-to-ipsec-migration"
set eap enable
set eap-identity send-request
set authusrgrp "FAC-SAML-GROUP1"
set assign-ip-from name
set dns-mode auto
set ipv4-name "SSLVPN_TUNNEL_ADDR1"
set save-password enable
set psksecret ENC <somesecretsharedkey>
next
end
Setting the range 'SSLVPN_TUNNEL_ADDR1' makes it possible for the existing firewall policies to be reused with minimal changes.
config system interface
edit "wan1"
set ike-saml-server "FAC-SAML-IDP"
end
config firewall policy
edit 15
set name "FAC-SAML1"
set srcintf "IPSEC-FAC-SAML"
...
SSL VPN:
config vpn ssl settings
set servercert "fgt.local.cert"
end
IPsec:
config user setting
set auth-cert "fgt.local.cert"
end
config vpn ssl settings
set status disable
end
It is advisable to rename the objects that are being reused and contain SSL VPN to IPsec.
Note:
At the time of writing, there is only one active IPsec IDP supported per firewall.
Related articles: Technical Tip: A guide to Dial-Up IPSec VPN Authentication and Policy Matching Technical Tip: Configuring SAML SSO for SSL VPN with FortiAuthenticator as an SAML IdP Technical Tip: How to configure Microsoft Entra ID SAML authentication for Dial-up IPsec VPN |
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.