Community discussions

MikroTik App
 
spectral0
just joined
Topic Author
Posts: 4
Joined: Sun Jun 24, 2012 4:38 pm

Mikrotik internal FTP server error 425 Problem

Sun Jun 24, 2012 5:10 pm

Hi guys!

I have one RB 433 AP that i would like to backup using automated windows cli ftp client. I can log in to the AP's FTP server but some weird things happened. I can execute commands like pwd, cd, but this AP won't let me list any file as well as upload/download.
ftp> o 10.2.0.27 21
Connected to 10.2.0.27.
220 AP 10 FTP server (MikroTik 5.6) ready
User (10.2.0.27:(none)): backup
331 Password required for backup
Password:
230 User backup logged in
ftp> pwd
257 "/" is current directory
ftp> cd skins
250 CWD command successful
ftp> ls
425 Can't build data connection
ftp> cd /
250 CWD command successful
ftp> ls
425 Can't build data connection
ftp> lcd c:\temp
Local directory now C:\temp.
ftp> put somescript.rsc
425 Can't open data connection
ftp>
FTP service and service port is active.
[admin@AP 10] > ip firewall service pr
Flags: X - disabled, I - invalid 
 #   NAME                                                                   PORT
 0 I ftp                                                                    21  
 1 X tftp                                                                   69  
 2 X irc                                                                    6667
 3 X h323                                                                  
 4 X sip                                                                    5060
                                                                            5061
 5 X pptp

[admin@AP 10] > ip service pr
Flags: X - disabled, I - invalid 
 #   NAME       PORT ADDRESS                                         CERTIFICATE   
 0   telnet       23
 1   ftp          21 10.0.0.0/8                                     
 2 X www          80
 3 X ssh          22
 4 X www-ssl     443                                                 none          
 5 X api        8728
 6   winbox     8291
                                                                  
That's what it looks like. I can download/upload using filezilla ftp client but not windows ftp.exe. Note that i accessed this AP from my internal network and no firewall/NAT exists between my PC and this AP.

Can anyone enlighten me? Any help would be appreciated. Thanks.
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: Mikrotik internal FTP server error 425 Problem

Tue Jun 26, 2012 6:08 pm

Hi guys!

I have one RB 433 AP that i would like to backup using automated windows cli ftp client. I can log in to the AP's FTP server but some weird things happened. I can execute commands like pwd, cd, but this AP won't let me list any file as well as upload/download.
ftp> o 10.2.0.27 21
Connected to 10.2.0.27.
220 AP 10 FTP server (MikroTik 5.6) ready
User (10.2.0.27:(none)): backup
331 Password required for backup
Password:
230 User backup logged in
ftp> pwd
257 "/" is current directory
ftp> cd skins
250 CWD command successful
ftp> ls
425 Can't build data connection
ftp> cd /
250 CWD command successful
ftp> ls
425 Can't build data connection
ftp> lcd c:\temp
Local directory now C:\temp.
ftp> put somescript.rsc
425 Can't open data connection
ftp>
FTP service and service port is active.
[admin@AP 10] > ip firewall service pr
Flags: X - disabled, I - invalid 
 #   NAME                                                                   PORT
 0 I ftp                                                                    21  
 1 X tftp                                                                   69  
 2 X irc                                                                    6667
 3 X h323                                                                  
 4 X sip                                                                    5060
                                                                            5061
 5 X pptp

[admin@AP 10] > ip service pr
Flags: X - disabled, I - invalid 
 #   NAME       PORT ADDRESS                                         CERTIFICATE   
 0   telnet       23
 1   ftp          21 10.0.0.0/8                                     
 2 X www          80
 3 X ssh          22
 4 X www-ssl     443                                                 none          
 5 X api        8728
 6   winbox     8291
                                                                  
That's what it looks like. I can download/upload using filezilla ftp client but not windows ftp.exe. Note that i accessed this AP from my internal network and no firewall/NAT exists between my PC and this AP.

Can anyone enlighten me? Any help would be appreciated. Thanks.

This is an active versus passive connection issue. FileZilla will switch to pasv mode without you knowing it, so it works fine.

The windows ftp.exe will not switch automatically. Here are instructions to make ftp.exe work in passive mode:
http://myonecent.wordpress.com/2010/11/ ... -transfer/
 
spectral0
just joined
Topic Author
Posts: 4
Joined: Sun Jun 24, 2012 4:38 pm

Re: Mikrotik internal FTP server error 425 Problem

Thu Jun 28, 2012 3:11 pm

Thanks for replying jan, however switching to passive mode doesn't solve the problem.
ftp> o 10.254.0.2
Connected to 10.254.0.2.
220 AP 10 FTP server (MikroTik 5.6) ready
User (10.254.0.2:(none)): backup
331 Password required for backup
Password:
230 User backup logged in
ftp> quote pasv
227 Entering Passive Mode (10,254,0,2,236,203).
ftp> ls
425 Can't build data connection
ftp> dir
425 Can't build data connection
ftp> cd skins
250 CWD command successful
ftp> ls
425 Can't build data connection
ftp> bin
200 Type set to I
ftp> ls
425 Can't build data connection
The same error 425 still occurs.
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: Mikrotik internal FTP server error 425 Problem

Fri Jun 29, 2012 3:55 pm

The fact remains, error 425 is a pasv/active issue, and is a problem with your FTP client, not with the Mikrotik. Perhaps you should search for a different ftp client that works properly.
 
spectral0
just joined
Topic Author
Posts: 4
Joined: Sun Jun 24, 2012 4:38 pm

Re: Mikrotik internal FTP server error 425 Problem

Wed Jul 04, 2012 10:11 am

Thanks for the info, jan!

I tried to switch some ftp clients and somehow ftp.exe issue solved with that AP. However, i found out that another AP of mine also have the same behavior that won't be solved with the same approach.

Do you have any suggestion which ftp client that can easily scripted for automatic backup job?
 
Mashimoto
Frequent Visitor
Frequent Visitor
Posts: 51
Joined: Thu Feb 24, 2011 3:55 pm

Re: Mikrotik internal FTP server error 425 Problem

Fri Oct 19, 2012 2:46 pm

I also have this issue with Filezilla.

Can ftp within LAN but not outside of it. 425 responses all the time...

Once it went through though, but didn't let me download what i needed
 
NelsonM
just joined
Posts: 2
Joined: Wed Jun 05, 2013 10:43 pm

Re: Mikrotik internal FTP server error 425 Problem

Wed Jun 05, 2013 10:46 pm

I had the same problem. Issue was I had no route to one of the IP Addresses on the Mikrotik. Distributing the route fixed the problem.