Question

Cisco ASA not allowing passive ftp?

Asked by: ostsupport

Trying to configure a Cisco ASA 5510 to allow passive FTP and the connections are failing. Bellow is the configuration. How do you allow passive FTP on the ASA?

User Access Verification

Password:
Type help or '?' for a list of available commands.
SPIRIT-ISLANDA-ASA2> en
Password: *****
SPIRIT-ISLANDA-ASA2# sh run
: Saved
:
ASA Version 7.2(1)
!
hostname SPIRIT-ISLANDA-ASA2
enable password 2KFQnbNIdI.2KYOU encrypted
names
!
interface Ethernet0/0
 description OUT
 nameif OUT
 security-level 0
 ip address 201.218.218.2 255.255.255.248
!
interface Ethernet0/1
 description IN
 nameif IN
 security-level 100
 ip address 10.10.10.1 255.255.255.252
!
interface Ethernet0/2
 shutdown
 no nameif
 no security-level
 no ip address
!            
interface Management0/0
 nameif management
 security-level 100
 ip address 192.168.1.5 255.255.255.0
 management-only
!
passwd 2KFQnbNIdI.2KYOU encrypted
ftp mode passive
object-group icmp-type PING
 description Pruebas de Ping
 icmp-object echo
 icmp-object echo-reply
 icmp-object unreachable
 icmp-object time-exceeded
access-list outside_access_in extended permit icmp any host 201.218.218.17 object-group PING
access-list outside_access_in extended permit tcp any host 201.218.218.17 eq telnet
access-list outside_access_in extended permit icmp any host 201.218.218.2 object-group PING
access-list outside_access_in extended permit icmp any host 201.218.218.18 object-group PING
access-list outside_access_in extended permit tcp any host 201.218.218.18 eq ftp
access-list outside_access_in extended permit tcp any host 201.218.218.18 eq ssh
access-list outside_access_in extended permit tcp any host 201.218.218.22 eq ssh
access-list outside_access_in extended permit icmp any host 201.218.218.22 object-group PING
access-list outside_access_in extended permit tcp any host 201.218.218.22 eq ftp
access-list outside_access_in extended permit tcp any host 201.218.218.22 eq www
access-list outside_access_in extended permit tcp any host 201.218.218.22 eq https
access-list outside_access_in extended permit tcp any host 201.218.218.18 eq www
access-list outside_access_in extended permit tcp any host 201.218.218.18 eq https
access-list outside_access_in extended permit tcp any host 201.218.218.17 eq 161
access-list outside_access_in extended permit udp any host 201.218.218.17 eq snmp
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq 3389
access-list outside_access_in extended permit tcp any host 201.218.218.27 eq 3389
access-list outside_access_in extended permit tcp any host 201.218.218.28 eq 3389
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq https
access-list outside_access_in extended permit tcp any host 201.218.218.27 eq https
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq 8443
access-list outside_access_in extended permit tcp any host 201.218.218.27 eq 8443
access-list outside_access_in extended permit icmp any host 201.218.218.26 object-group PING
access-list outside_access_in extended permit icmp any host 201.218.218.27 object-group PING
access-list outside_access_in extended permit icmp any host 201.218.218.28 object-group PING
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq ftp
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq www
access-list outside_access_in extended permit tcp any host 201.218.218.27 eq ftp
access-list outside_access_in extended permit tcp any host 201.218.218.27 eq www
access-list outside_access_in extended permit udp any host 201.218.218.26 eq domain
access-list outside_access_in extended permit udp any host 201.218.218.27 eq domain
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq domain
access-list outside_access_in extended permit tcp any host 201.218.218.27 eq domain
access-list outside_access_in extended permit icmp any host 201.218.218.41 object-group PING
access-list outside_access_in extended permit icmp any host 201.218.218.43 object-group PING
access-list outside_access_in extended permit icmp any host 201.218.218.44 object-group PING
access-list outside_access_in extended permit icmp any host 201.218.218.45 object-group PING
access-list outside_access_in extended permit icmp any host 201.218.218.42 object-group PING
access-list outside_access_in extended permit tcp any host 201.218.218.43 eq ssh
access-list outside_access_in extended permit tcp any host 201.218.218.44 eq ssh
access-list outside_access_in extended permit tcp any host 201.218.218.45 eq ssh
access-list outside_access_in extended permit icmp any host 201.218.218.46 object-group PING
access-list outside_access_in extended permit tcp any host 201.218.218.46 eq ssh
access-list outside_access_in extended permit tcp any host 201.218.218.43 eq www
access-list outside_access_in extended permit tcp any host 201.218.218.43 eq https
access-list outside_access_in extended permit tcp any host 201.218.218.44 eq www
access-list outside_access_in extended permit tcp any host 201.218.218.45 eq www
access-list outside_access_in extended permit tcp any host 201.218.218.46 eq www
access-list outside_access_in extended permit tcp any host 201.218.218.46 eq ftp
access-list outside_access_in extended permit tcp any host 201.218.218.29 eq smtp
access-list outside_access_in extended permit tcp any host 201.218.218.29 eq domain
access-list outside_access_in extended permit tcp any host 201.218.218.29 eq www
access-list outside_access_in extended permit tcp any host 201.218.218.29 eq nntp
access-list outside_access_in extended permit tcp any host 201.218.218.29 eq 2021
access-list outside_access_in extended permit tcp any host 201.218.218.29 eq 1024
access-list outside_access_in extended permit tcp any host 201.218.218.29 eq 65535
access-list outside_access_in extended permit tcp any host 201.218.218.45 eq domain
access-list outside_access_in extended permit udp any host 201.218.218.45 eq domain
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq ssh
access-list outside_access_in extended permit tcp any host 201.218.218.27 eq ssh
access-list outside_access_in extended permit tcp any host 201.218.218.45 eq pop3
access-list outside_access_in extended permit tcp any host 201.218.218.45 eq imap4
access-list outside_access_in extended permit tcp any host 201.218.218.45 eq 993
access-list outside_access_in extended permit tcp any host 201.218.218.45 eq 995
access-list outside_access_in extended permit tcp any host 201.218.218.45 eq smtp
access-list outside_access_in extended permit tcp any host 201.218.218.45 eq 587
access-list outside_access_in extended permit tcp any host 201.218.218.28 eq 81
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq 88
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq ftp-data
access-list outside_access_in extended permit udp any host 201.218.218.26 eq 20
access-list outside_access_in extended permit tcp any host 201.218.218.27 eq 3306
access-list outside_access_in extended deny ip any any
access-list inside_access_in extended permit ip any any
pager lines 24
logging asdm informational
mtu OUT 1500
mtu IN 1500
mtu management 1500
no asdm history enable
arp timeout 14400
global (OUT) 1 201.218.218.16 netmask 255.255.255.240
nat (IN) 1 10.10.10.1 255.255.255.255
static (IN,OUT) 201.218.218.0 201.218.218.0 netmask 255.255.255.248
access-group outside_access_in in interface OUT
access-group inside_access_in in interface IN
route OUT 0.0.0.0 0.0.0.0 201.218.218.1 1
route IN 201.218.218.16 255.255.255.240 10.10.10.2 1
route IN 201.218.218.32 255.255.255.240 10.10.10.2 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout uauth 0:05:00 absolute
http server enable
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
telnet 192.168.1.0 255.255.255.0 management
telnet timeout 5
ssh timeout 5
console timeout 0
!
!
prompt hostname context
Cryptochecksum:1fe47c45815053a38965c2bc6e8eb9e0
: end        
SPIRIT-ISLANDA-ASA2#  

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-07-25 at 09:54:32ID22720574
Tags

asa

,

ftp

,

passive

,

cisco

Topics

Networking Hardware Firewalls

,

Cisco PIX Firewall

,

Enterprise Firewalls

Participating Experts
2
Points
500
Comments
9

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. PIX and xlate problems
    I administer a PIX IOS 6.2(2), and I have problems connecting to an external FTP/Telnet server, the error is as follows: %PIX-3-305006: portmap translation creation failed for tcp src inside:11.254.20.43/1589 dst outside:204.153.24.233/21 the problem is solved after I run ...
  2. No ssh or telnet access to Cisco ASA 5505 on inside po…
    Everything else seems to be working on the ASA. First time working with the ASA, have a couple of years experience with PIX's. Config: ASA Version 7.2(2) ! hostname xxxxx enable password dhMoxw89cQeiXJFe encrypted names ! interface Vlan1 nameif inside security-level 100 ...
  3. ASA 5510 and problems with SIP
    After upgrading to ASA version 8.0(3) im having problems with sip traffic. I can recive calls but i can not call out anymore meaning the people can hear me but i cant hear them. ASA Version 8.0(3) ! hostname ciscoasa domain-name nordicsol enable password TPElrzuRXEajseWy...
  4. ASA 5520 xlate
    I'm replacing an old 2651 with a ASA 5520 with 8.0(3). I'm new at this, but have pieced it together so that it seems to work and test out OK; however, once I place it on my network most users experience symptoms of congestion. If I do a clear xlate it will clear up for a minu...
  5. Sip
    I am trying too open for sip port udp 5060 to 192.168.58.40 But it is not working what I am missing
  6. Allow SIP through Cisco ASA 8.x
    Hi, I have an asterisk server and would like to register a SIP trunk. I need to allow SIP through the ASA. I setup a port forward for TCP/UDP 5060 but it doesnt seem to work. Would anyone know how to config this. Thanks, Joe

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: xephaelPosted on 2007-07-25 at 11:11:18ID: 19568202

Could you please post a log of the FTP session you're attempting to make through the ASA?  Details about if it's inbound or outbound would also be appreciated.

 

by: xephaelPosted on 2007-07-25 at 11:13:52ID: 19568226

Also... it looks like you're only allowing ftp-data inbound for a single device.  This would need to be done for all of your FTP servers.

 

by: ostsupportPosted on 2007-07-25 at 11:33:45ID: 19568404

This is a shared port firewall and I only want to allow FTP on this one server. Does that answer your 2nd post? On the logs i will post in 1 min.

 

by: ostsupportPosted on 2007-07-25 at 12:22:20ID: 19568833

This is inbound traffic trying to allow FTP connections to the server all i know is Passive FTP connections to  server are failing.

 

by: ostsupportPosted on 2007-07-25 at 12:50:23ID: 19569081

Here is the log

**** Normal connection START ****

Connecting to: 201.218.218.26
220 FTP Server ready.
USER xxxxxx
331 Password required for dev.
PASS xxxxxx
230 User dev logged in.
TYPE I
200 Type set to I
STRU F
200 Structure set to F.
MODE S
200 Mode set to S.
REST 0
350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer REST 1 350 Restarting at 1. Send STORE or RETRIEVE to initiate transfer REST 0 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer CWD
501 Invalid number of arguments.
TYPE A
200 Type set to A
PORT 192,168,1,117,12,122
200 PORT command successful
LIST -la
150 Opening ASCII mode data connection for file list
226 Transfer complete.

**** Normal connection END ****

**** Passive connection START ****

Connecting to: 201.218.218.26
220 FTP Server ready.
USER xxxxxx
331 Password required for dev.
PASS xxxxxx
230 User dev logged in.
TYPE I
200 Type set to I
STRU F
200 Structure set to F.
MODE S
200 Mode set to S.
REST 0
350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer REST 1 350 Restarting at 1. Send STORE or RETRIEVE to initiate transfer REST 0 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer CWD
501 Invalid number of arguments.
TYPE A
200 Type set to A
PASV
227 Entering Passive Mode (201,218,218,26,128,186).

**** Passive connection END ****

 

by: xephaelPosted on 2007-07-25 at 12:54:28ID: 19569124

Your config is allowing ftp into five hosts: 18,22,26,27,46
Your config is only allowing ftp-data for one host: 26

access-list outside_access_in extended permit tcp any host 201.218.218.46 eq ftp
access-list outside_access_in extended permit tcp any host 201.218.218.27 eq ftp
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq ftp
access-list outside_access_in extended permit tcp any host 201.218.218.26 eq ftp-data
access-list outside_access_in extended permit tcp any host 201.218.218.22 eq ftp
access-list outside_access_in extended permit tcp any host 201.218.218.18 eq ftp

All in all I'm completely confused by the purpose of your firewall since there doesn't appear any NAT translation between the public IP's and generally what would be your internal private IP's.

For example, maybe 10.10.10.130 is mapped to the public IP of 201.218.218.26, and the firewall ACL's allow various traffic to pass from your public IP's to your private IP's.



 

by: xephaelPosted on 2007-07-25 at 12:57:08ID: 19569163

Oh thanks for the FTP logs....

Try: no fixup protocol ftp

Let me know what happens

 

by: jsabrownPosted on 2008-08-07 at 15:44:39ID: 22186200

Aren't fixup commands defunct w/ ASA?  

 

by: xephaelPosted on 2008-08-08 at 07:07:05ID: 22189983

" Aren't fixup commands defunct w/ ASA?" -- jsabrown

Not at all... Although by default they're disabled.  

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...