FTP Connection
Hi,
I'm having an issue with establishing an FTP connection through my Fortigate 600c running FortiOS 5.4.
I have the Session Helper configured:
set name ftp
set protocol 6
set port 21
And a policy configured:
set name "Internet to FTP Server"
set srcintf "External"
set dstintf "local"
set srcaddr "all"
set dstaddr "VIP for FTP"
set action accept
set schedule "always"
set service "FTP Services" (Also tried "ALL")
"FTP Services" has all members for "FTP"
edit "FTP Services"
set member "FTP" "FTP_GET" "FTP_PUT"
next
But I cannot establish an FTP Connection. I can connect to the server, but there is no data transfer (i.e. to get directory listing). Here is a log from FileZilla
Status: Disconnected from server
Status: Connecting to <Correct Fortigate IP Address>:21...
Status: Connection established, waiting for welcome message...
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/<valid directory>" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PORT <Local IP address>,237,96
Response: 501 Server cannot accept argument.
Command: PASV
Response: 227 Entering Passive Mode (<Correct Fortigate IP Address>,244,251).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Connecting to <Correct Fortigate IP Address>:21...
Status: Connection established, waiting for welcome message...
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/<valid directory>" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PORT <local IP>,237,99
Response: 501 Server cannot accept argument.
Command: PASV
Response: 227 Entering Passive Mode (<Correct Fortigate IP Address>,244,252).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Does anyone have any idea what I am missing?
Thanks