| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Re: curl vs. socks5
From: Jochen Hayek <Jochen+curl_at_Hayek.name>
Date: Tue, 13 Feb 2007 00:22:55 +0100
>>>>> "DS" == Daniel Stenberg <daniel_at_haxx.se> writes:
DS> On Mon, 12 Feb 2007, Jochen Hayek wrote:
>> "NAT + socks + FTP active mode" works for the ftp cmd line utility,
DS> Right, so why doesn't it? What's the difference?
Alright, I am going to try to show the difference.
short version:
the socksified ftp cmd line *does* a "socks-bind",
"curl --socks5" does *not* do any "socks-bind",
long version following below.
J.
####################################################################################################
this thing here does its job properly;
[2007-02-12 23:09:37] johayek_at_HayekJ $ socksify ftp -A -n ftp.this_domain.com
================================================================================
ftp> dir
"PORT 10,0,4,117,183,244" ---> 183*256+244 = (+ (* 183 256) 244) = 47092 // the remote FTP server's port
socks server log:
Feb 12 23:10:30 HayekH sockd[4550]: pass(1): tcp/bind [: 10.0.4.119.56451 -> 151.208.116.130.47092
end of socks server log.
200 PORT command successful
================================================================================
---> LIST
####################################################################################################
this thing here does not achieve its jobs;
on purpose we apply "--ftp-port 10.0.4.117", i.e. the socks server's internal address, not our own internal address.
[2007-02-12 23:33:17] johayek@HayekJ $ /usr/local/src/tmp/curl-7.16.1-20070208/src/curl --verbose --ftp-port 10.0.4.117 --disable-eprt --socks5 10.0.4.117:1080 --list-only ftp://this_user:this_password@ftp.this_domain.com
================================================================================
neither before nor during this block any "socks-bind" gets executed:
> PORT 10,0,4,117,198,36
================================================================================
* RETR response: 425
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info