[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Wget PASV parsing
From: Richard Kojedzinszky <krichy () tvnetwork ! hu>
Date: 2007-11-26 8:46:46
Message-ID: Pine.LNX.4.64.0711260941480.18010 () krichy ! tvnetwork ! hu
[Download RAW message or body]
Dear Ralf,
Not the gw is badm because the original wget works right. What happens, is
that the ftp-proxy answers the PASV command, not the real ftp server. And
in such a situation, the returned address is the gw's inner address, which
was not handled correctly by busybox's wget. Of course, you can emulate
this in linux also, just install ftp-proxy (on debian etch)
$ apt-get install ftp-proxy
do little configuration, then make a redirection as:
$ iptables -A PREROUTING -t nat -i eth1 -p tcp --dport 21 -j DNAT
--to-destination 192.168.1.1:2121
192.168.1.1 is the gw's inner address.
Anyway, why is an ip there in PASV's reply? Of course its there to use it.
Regards,
Kojedzinszky Richard
TvNetWork Nyrt. E-mail: krichy (at) tvnetwork [dot]
hu PGP: 0x24E79141
Fingerprint = 6847 ECFF EF58 0C09 18A5 16CF 270F 0C6F 24E7 9141
On Sat, 24 Nov 2007, Ralf Friedl wrote:
> Date: Sat, 24 Nov 2007 12:17:41 +0100
> From: Ralf Friedl <Ralf.Friedl@online.de>
> To: Richard Kojedzinszky <krichy@tvnetwork.hu>
> Cc: Busybox Mail List <busybox@mail.busybox.net>
> Subject: Re: Wget PASV parsing
>
> Richard Kojedzinszky wrote:
>> I've been using busybox for a while, and ran into the problem when using
>> wget behind an openbsd gw, with nat and ftp-proxy. Without this patch wget
>> connects to the wrong host, so the operation fails. This fixes that, but
>> increases size by ~60 bytes in my environment. But maybe it is worth to
>> apply for full functionality.
> Could you describe what is wrong?
> For all you write, it may as well be an error in the gateway that you try to
> fix in busybox.
>
> Regards
> Ralf Friedl
>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic