[Mikrotik] Strange FTP problem

Blake Covarrubias blake at beamspeed.com
Tue Apr 24 23:07:11 CDT 2012


Port & firewall wise, SCP is less complex. It should be fine.

--
Blake Covarrubias

On Apr 24, 2012, at 10:11, Terri Kelley <neteng at farm-market.net> wrote:

> Worked for me in 4x.
> 
> tk
> On Apr 24, 2012 10:13 AM, "Simon Westlake" <simon at powercode.com> wrote:
> 
>> I'll have to try this - already been through PASV mode and all that jazz,
>> no luck. Hopefully scp works in 4.x, none of these boxes are at 5.x yet.
>> 
>> ----------------------------------------
>> 
>> From: "Terri Kelley" <neteng at farm-market.net>
>> 
>> Sent: Monday, April 23, 2012 6:36 PM
>> 
>> To: "Mikrotik discussions" <mikrotik at mail.butchevans.com>
>> 
>> Subject: Re: [Mikrotik] Strange FTP problem
>> 
>> 
>> I have seen those errors for firewall rules, alternate port being used or
>> for one reason or another I was trying active and had to change to passive
>> mode.
>> 
>> 
>> Just fyi on mine I use scp, pre shared key, script with export, etc then
>> cron kicks it off every weekend. Fixing to change that to export compact
>> shortly.
>> 
>> 
>> Terri Kelley
>> 
>> Network Engineer
>> 
>> Farm to Market Broadband
>> 
>> 
>> On Apr 23, 2012, at 3:09 PM, Simon Westlake wrote:
>> 
>> 
>>> I was previously backing up all our Mikrotik routers in RANCID but it was
>> difficult for some techs to work with - the files wouldn't always paste
>> back in correctly and randomly had capitalization errors, etc, that would
>> cause issues. So I decided to build an FTP system to back up the binary
>> configuration files instead.
>> 
>>> 
>> 
>>> I have something in the scheduler that backs up the current config to
>> 'today.backup'. I then have a script on a remote server that FTPs in, pulls
>> the file and exits. It works fine.. other than the fact that ~50% of the
>> Mikrotiks do not work. What specifically does not work is any kind of data
>> transfer - I *can* connect and authenticate.
>> 
>>> 
>> 
>>> 220 BRLLWIKSSW-RTR1 FTP server (MikroTik 4.12) ready
>> 
>>> Name (x.x.x.x:simon): admin
>> 
>>> 331 Password required for admin
>> 
>>> Password:
>> 
>>> 230 User admin logged in
>> 
>>> Remote system type is UNIX.
>> 
>>> ftp> ls
>> 
>>> 200 PORT command successful
>> 
>>> 425 Can't build data connection
>> 
>>> ftp> ls
>> 
>>> 200 PORT command successful
>> 
>>> 425 Can't build data connection
>> 
>>> ftp> Terminated
>> 
>>> 
>> 
>>> I am not firewalling the port at all, tried disabling every firewall rule
>> just in case to no avail. Neither box is behind a NAT of any kind (the
>> backup system or the Mikrotik.) There seems to be no reason why the ones
>> that work DO work.. and the ones that don't work DON'T.. they both have
>> identical configs from a firewall/FTP perspective. Google didn't lead me
>> anywhere helpful. Any ideas?
>> 
>>> 
>> 
>>> --
>> 
>>> Simon Westlake
>> 
>>> Powercode.com
>> 
>>> (920) 351-1010
>> 
>>> 
>> 
>>> 
>> 
>>> _______________________________________________
>> 
>>> Mikrotik mailing list
>> 
>>> Mikrotik at mail.butchevans.com
>> 
>>> http://www.butchevans.com/mailman/listinfo/mikrotik
>> 
>>> 
>> 
>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>> RouterOS
>> 
>> 
>> -------------- next part --------------
>> 
>> An HTML attachment was scrubbed...
>> 
>> URL:
>> <
>> http://www.butchevans.com/pipermail/mikrotik/attachments/20120423/cf0c508b/
>> attachment.html>
>> 
>> _______________________________________________
>> 
>> Mikrotik mailing list
>> 
>> Mikrotik at mail.butchevans.com
>> 
>> http://www.butchevans.com/mailman/listinfo/mikrotik
>> 
>> 
>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>> RouterOS
>> 
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://www.butchevans.com/pipermail/mikrotik/attachments/20120424/a25f719e/attachment.html
>>> 
>> _______________________________________________
>> Mikrotik mailing list
>> Mikrotik at mail.butchevans.com
>> http://www.butchevans.com/mailman/listinfo/mikrotik
>> 
>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>> RouterOS
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.butchevans.com/pipermail/mikrotik/attachments/20120424/4aecf646/attachment.html>
> _______________________________________________
> Mikrotik mailing list
> Mikrotik at mail.butchevans.com
> http://www.butchevans.com/mailman/listinfo/mikrotik
> 
> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS


More information about the Mikrotik mailing list