This section describes how to configure the FW as an FTP server and how to use a PC to download files from the FW through FTP.
As shown in Figure 1, a PC is used to log in to the FW and download files from the FW through FTP.
FTP transmits passwords and data in plaintext mode, causing security risks. To secure data transmission, use SFTP.
Item |
Data |
|---|---|
FW |
Security policy: policy_ftp FTP administrator account: admin_ftp, password: Mydevice@ftp FTP server directory: hda1 File: sys.bin |
PC |
IP address and mask of the administrator's PC: 192.168.0.100/24 FTP client software: cmd (in the Windows operating system) |
C:\Documents and Settings\user> d: D:\> ftp 192.168.0.1 Trying 192.168.0.1 ... Press CTRL+K to abort Warning: FTP is not a secure protocol, and you are advised to use SFTP. Connected to 192.168.0.1. 220 FTP service ready. User(192.168.0.1:(none)):admin_ftp 331 Password required for admin_ftp. Password: 230 User logged in. ftp> binary 200 Type set to I. ftp> get sys.bin 200 PORT command okay. 150 Opening BINARY mode data connection for sys.bin. 226 Transfer complete. ftp: 20116676 bytes received for 43.60 seconds at 461.40 kbyte/s. ftp> quit D:\>dir ...... 2010-09-25 15:56 20,116,676 sys.bin ......
#
sysname FW
#
aaa
manager-user admin_ftp
password cipher %@%@*y:3*ZN}.%%qcB.|@XBVML1cCyDwlDWq'6JF(iOz2D8>A\SN%@%@
service-type ftp
level 3
ftp-directory hda1:
#
security-policy
rule name policy_ftp
source-zone trust
destination-zone local
service ftp
source-address 192.168.0.100 32
destination-address 192.168.0.1 32
action permit