I have trouble with FTP connections using a ASA5510.
I have 3 LANs connected to the FW:
LAN1 (inside): 172.16.1.0/24
LAN2 (outside) 10.52.64.0/24
LAN (DMZ) 172.16.0.8/29
My FTP server (IIS FTP Server)is on the DMZ with IP address 172.16.0.10.
The FTP traffic between outside and DMZ is configurated and works fine (connection, PUT, GET...)
But, the FTP traffic between inside and DMZ doesn't work properly.
The autehntification on the FTP server is OK but, after few seconds, I always have a disconnection message "connection closed by remote host"...
I have try using "no ftp mode passive" or "ftp mode passive" but it's the same.
The ports allowed are TCP 20 and TCP 21.
Anyone have an idea to fix this issue ?
request-command deny get
request-command deny put
inspect dns maximum-length 512
inspect h323 h225
inspect h323 ras
inspect ftp strict PUT
inspect ftp strict GET
service-policy global_policy global
service-policy outside-policy interface outside
service-policy inside-policy interface inside
Currently, I cannot access to the FW (WAN link DOWN) but when I have try to troubleshoot, nothing really clear appears on the logs...
Inspect: dns maximum-length 512, packet 0, drop 0, reset-drop 0
Inspect: ftp, packet 103, drop 0, reset-drop 0
Inspect: h323 h225, packet 0, drop 0, reset-drop 0
Inspect: h323 ras, packet 0, drop 0, reset-drop 0
Inspect: rsh, packet 0, drop 0, reset-drop 0
Inspect: rtsp, packet 0, drop 0, reset-drop 0
Inspect: esmtp, packet 0, drop 0, reset-drop 0
Inspect: sqlnet, packet 0, drop 0, reset-drop 0
Inspect: skinny, packet 0, drop 0, reset-drop 0
Inspect: sunrpc, packet 0, drop 0, reset-drop 0
Inspect: xdmcp, packet 0, drop 0, reset-drop 0
Inspect: sip, packet 0, drop 0, reset-drop 0
Inspect: netbios, packet 0, drop 0, reset-drop 0
Inspect: tftp, packet 0, drop 0, reset-drop 0
Inspect: ftp strict PUT, packet 360, drop 0, reset-drop 3
Inspect: ftp strict GET, packet 812, drop 282, reset-drop 17
I have the same problem I defined the one ftp server for from outside and its working fine while i trying to add one more ftp server define the same rule for this server its not working dont know thatr the problem i gets the same message as i trying to run put command transication table is established for 21 port but not for 20 which is data port.
Help me how can i resolve this problem.
If you're using an ACTIVE FTP client, ports 20 and 21 will work fine.
If your FTP clients use passive ftp, which is generally the case, you'd have to allow ports >1023 for the data session for FTP. Passive FTP works that way. And for ASA to allow established data connections, you should create an ACL allowing only port 20 for ftp-data.
Let gonna do something. Clear the ASP drops with the command #Clear Asp Drop
then try to connect several times and then get the Asp drop with the command #Show Asp drop and send us that information.
What does your FTP server say?
I'm not an ASA guru but why allow only port 20 for ftp? Are you just concerned with Active FTP sessions?