Operating System - Linux
1748172 Members
4155 Online
108758 Solutions
New Discussion юеВ

FTP error "425 Use PORT or PASV first."

 
Mohd. Abdul Hannan Chow
Occasional Contributor

FTP error "425 Use PORT or PASV first."

I am using RHEL4. I have installed vsftpd-server....... in my server and configured the vsftpd.conf and have run the ftp service successfully. The machine is using a real IP.
I have connected and loggend in to the ftp server successfully. but when I am trying to use "put " command from my local private network (an WindowsXP PC), the following error message "425 Use PORT or PASV first." were displayed. But FTP to another Server with real IP from the same PC works properly.

But when trying to transfer files from another client machine that is configured with real IP (windows XP) to both the server using FTP and same user, it works correctly.

Please help me to solve the problem.

M A Hannan Chowdhury
Dhaka, Bangladesh
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: FTP error "425 Use PORT or PASV first."

Have you tried stopping the firewall service?

service iptables stop

If that works, then check your firewall configuration.

Also check if SELinux is not doing something, do:

setenforce 0

And try again.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: FTP error "425 Use PORT or PASV first."

Shalom,

Your firewall may have been configured to limit simultaneous sessions.

I think service iptables stop is a good way to run tests.

vsftpd has a standard message advising you to use PASV, instead of other methodologies. This is not an error message, it is advice.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mohd. Abdul Hannan Chow
Occasional Contributor

Re: FTP error "425 Use PORT or PASV first."

The command-
service iptables stop
cannot solv my problem. I am still having problems with the FTP error "425 Use PORT or PASV first."
It may not be the problem related to firewall settings for more than one simulteneous user login. Because, when first user failed the second person tried to do the same thing from another computer and he was successful. First user is still having the same problem while the command above was entered.

Please Help me to solve the problem.
Rob Leadbeater
Honored Contributor

Re: FTP error "425 Use PORT or PASV first."

Maybe there's another firewall in between the user(s) and the FTP server...

Some FTP clients (Windows XP command line for one) are also not particularly good at negotiating between active and passive FTP servers.

Cheers,

Rob
Mohd. Abdul Hannan Chow
Occasional Contributor

Re: FTP error "425 Use PORT or PASV first."

I checked the client firewall and the FTP is in exception list that is my WinXP firewall is not blocking the FTP connection.
In another way I can say the same thing that, I can transfer file using FTP to the second server but failed for the first server (the troubled server). But from another machine file transfer to first and second server is OK using same account.
I cannot solv the problem till now.