Description | This article discusses an issue when the backup of the firewall config to the FTP server does not work. |
Scope | FortiGate. |
Solution |
To backup config to the FTP server, use this link: Technical Tip: Backup of configuration file from CLI using FTP FortiGate 10.14.2.159 ---- FTP server 10.14.2.116
execute backup config ftp <filename> <ftp server>[:ftp port] <username> <password> Follow this KB article is the error code is 12, If the error code is 5:
12 FTP_INPUT_ERR Error reading INPUT or STDIN.
Generally, error 12 occurs when the destination folder is not available. Do a packet capture on FortiGate:
diag sniffer packet any 'host <FTP server>' 6 0 l
Technical Tip: How to import 'diagnose sniffer packet' data to WireShark to convert the sniffer output to PCAP. Go to Network -> Packet capture (upto 7.0.x models) or Network -> Diagnostics (v7.2.x and above). Put a filter for the FTP server IP as the host
It is also possible to use Filezilla to list the directory that allows access. |
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 2024 Fortinet, Inc. All Rights Reserved.