Skip to main content
ssanga
Staff & Editor
Staff & Editor
October 15, 2025

Technical Tip: Password-policy applied to IPsec pre-shared keys is not compatible with dialup peertype

  • October 15, 2025
  • 0 replies
  • 687 views
Description

This article describes a known issue where an IPsec tunnel configuration is deleted after a device reboot if the peertype is set to dialup and password-policy is enforced for IPsec pre-shared keys.

 

This occurs because VPN tunnels with 'set peertype dialup' do not support pre-shared key authentication, but were incorrectly checked for compliance with the password-policy.

Scope FortiGate v7.4.8, v7.6.4, and all earlier firmware versions supporting system password-policy.
Solution

If a system password-policy is enforced for IPsec pre-shared keys, a VPN configured with the 'Dialup Group' peertype is removed after a reboot.

 

config system password-policy

    set status enable

    set apply-to ipsec-preshared-key

end

 

config vpn ipsec phase1-interface

    edit "RAVPN" <-- In affected firmware versions, will be removed after reboot.

        set peertype dialup 

        set usrgrp "test-grp"

    next

end

 

Example configuration:

  1. Enable password-policy and apply it to IPsec pre-shared keys:

 

config system password-policy
    set status enable
    set apply-to ipsec-preshared-key
end

 

  1. If a user group does not exist, configure a local user and add it to a group:

 

config user local

    edit "test"

        set type password

        set passwd anypassword1234

    next
end

 

config user group
    edit "test-group"
        set member "test"
    next
end

 

  1. Create a Remote Access-Type VPN using the VPN Creation Wizard with a pre-shared key complying with the password policy, and add any user group.

 

Wizard.png

 

  1. Once the tunnel is created, select Convert to Custom Tunnel and modify the Peer Options as shown below.

 

Peeroptions.png

 

  1. Reboot the device.
  2. After the reboot, the dial-up IPsec VPN configuration is lost.

 

FGT # diagnose debug config-error-log read
.
>>> "next" @ root.vpn.ipsec.phase1-interface.RAVPN:failed command (error 1)
>>> "set" "phase1name" "RAVPN" @ root.vpn.ipsec.phase2-interface.RAVPN:value parse error (error -3)
>>> "next" @ root.vpn.ipsec.phase2-interface.RAVPN:failed command (error 1)

This issue has been resolved in:

These timelines for firmware release are estimates and may be subject to change.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.