(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



FTP Problem




2008/04/17

Josh

Hello - I'm having a problem with a server running SCO OpenServer 5.0.7 and ftp. ftp connections used to work fine, but now I can connect to the server via ftp, I can issue type, pwd, and cd commands successfully and receive the response-- but when I issue ls, dir, get, or put commands, I get the message: "425 Can't build data connection: Invalid argument." No file configuration changes were made. The server was moved and is behind a new firewall, but as I said, I can connect and issue some commands successfully. Port 21 is open on the firewall so I can connect.

From the server, I can ftp to other sites and all commands work.

I do suspect the firewall, but I don't know why some commands work and others dont.




More Articles by Josh




Click here to add your comments





Thu Apr 17 17:37:55 2008: Subject:   TonyLawrence

gravatar
Yes, Josh, it is the firewall, and to understand why you need to read up on how ftp actually works - what you want is to have it work in "passive" mode.

I thought I had an article here somewhere that explained this well, but can't seem to find it.. I'll look a bit more..



Thu Apr 17 19:22:37 2008: Subject:   Josh


Thanks Tony.
I did try to get passive mode to work before I wrote, but the connection disconnects at the server when switching to PASV mode. Perhaps there is a config entry I'm missing?
Josh




Thu Apr 17 19:30:41 2008: Subject:   TonyLawrence

gravatar
Perhaps the server can't do passive mode?



Thu Apr 17 21:06:28 2008: Subject:   BruceGarlock


Doesn't port 20 need to be open at the firewall as well (ftp-data).



Fri Apr 18 01:55:11 2008: Subject:   Josh


I can ftp Active and Passive behind the firewall. Since neither Active nor Passive is working on the public side, it must be a firewall issue...an odd one to be sure, but a firewall issue nonetheless.
Port 20 and 21 are both open on the firewall.
I have a local Cisco engineer looking at it.
Thanks for your comments- both of you-- you helped me narrow this down very quickly.

Josh



Fri Apr 18 02:16:32 2008: Subject:   TonyLawrence

gravatar
Ayup - firewall is blocking you for sure.. strange symptoms though.

Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



/Forum/josh.html copyright April 2008 Josh All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!



 I sell and support
 Kerio Mail server






More:
       - OSR5
       - Forum


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress