Technical Note : FortiOS support for FTPS (FTP over SSL), configuration of a firewall rule
This article explains how to configure a firewall rule for FTPS (FTP over SSL).
Scope
All FortiOS users.
Solution
FGT50B3G06500087 (address) #
config firewall address
edit "FTP Server"
set associated-interface "internal"
set subnet 10.147.1.61 255.255.255.255
next
end
FGT50B3G06500087 # config firewall service custom
FGT50B3G06500087 (custom) # show
config firewall service custom
edit "ftp-ports"
set protocol TCP/UDP/SCTP
set set tcp-portrange 990 50001-50999:50001-50999 (if ftp-data ports have been tuned on the ftp server)
OR
set tcp-portrange 990 1-65535 (if ftp-data ports have not been changed)
next
end
edit 2
set srcintf "wan1"
set dstintf "internal"
set srcaddr "all"
set dstaddr "FTP Server"
set action accept
set schedule "always"
set service "FTP" "FTP_GET" "FTP_PUT" "ftp-ports"
set logtraffic enable
next
end3. Place this Firewall policy at the top of the policy list.4. Test the FTPS connection from the FTP Client to the FTP Server.
