[NCLUG] debugging ftp iptables

Quentin Hartman qhartman at gmail.com
Wed Jan 23 19:16:14 MST 2013


The easiest solution would be to use an ftp client that just works the way
you need it to. Filezilla is a good one.

Next to that, you could write a simple cmd script called "myftp.cmd" or
something that calls ftp and then passes any arguments you give it through
to the real ftp command with the switch you need appended. Then just use
the wrapper instead. You could also nove the ftp executable to some other
file (real_ftp.exe for example) and then replace the real binary with your
wrapper. This will likely make Windows throw a fit though.

Maybe there's a registry key or config file that controls the default
behavior? If this one Windows machine has trouble but others work fine,
that suggest something is wonky with that machine.


On Wed, Jan 23, 2013 at 6:16 PM, Matt Rosing <rosing at peakfive.com> wrote:

>
>  >-I can upload a small file from my laptop to the server just fine (536
>  >bytes works, 537 fails). The file I'm trying to upload is 2500 bytes.
>
> I found something interesting. 536 bytes is the default packet size,
> except the stock client thinks it's 4096 or something. Ftp should start
> off with some transaction to decide what the transfer size is but it
> doesn't apprear to do this. Or is it possible that my firewall is
> interfering with that transaction? When the server sends a RST packet
> does nf_conntrack_ftp send that packet through to the client?
>
> Anyway, I also found a windows ftp switch that can specify the buffer
> size. So I set it to 500 bytes and now ftp works fine.
>
> Now, for a really stupid question, how do I modify ftp.exe in windows to
> use the -w:500 option? or replace it with something else? I do linux so
> am not at all familiar with this (I know, this isn't the right place to
> ask). It's a dot-net application if that means anything.
> _______________________________________________
> NCLUG mailing list       NCLUG at lists.nclug.org
>
> To unsubscribe, subscribe, or modify
> your settings, go to:
> http://lists.nclug.org/mailman/listinfo/nclug
>



More information about the NCLUG mailing list