Created on
04-11-2025
12:04 AM
Edited on
04-28-2025
04:05 AM
By
Stephen_G
Description | This article describes a scenario where the backup configuration using SFTP is failing via the IPsec Site-to-Site VPN in policy-based mode. |
Scope | FortiGate. |
Solution |
From the CLI, administrators have the option to backup the configuration file using the FTP: execute backup config sftp </directory/filename> <SFTP server>[<:SFTP port>] <username> <password>
DXB-FW-001 # execute backup full-config sftp /Fortigate_Backup/DXB-FW-001/backup-%%date%%.conf 192.168.64.20 fortinet @EJabr*4pU@habACuBr6 Telnet to the SFTP server on the SFTP port is also not connecting. If no IP address is assigned to the tunnel interface (0.0.0.0/0), self-originated SFTP/TFTP traffic will use the source IP from the interface with the lowest index ID. This traffic will be dropped as the source IP is not allowed in the firewall policy.
For Example:
As the IPsec VPN is policy-based, the tunnel interface IP addresses need not be part of the Phase 2 selector's local subnet of the IPsec Tunnel but it is required in the route-based VPN.
For information about automation backup over route-based VPN, see Technical Tip: Configure automation backup over IPsec tunnel.
Related document: |