[opensuse] 10.3: FTP client ignores ftp_proxy
Hi, the (command line) ftp client which comes with openSUSE 10.3 seems to not honor the ftp_proxy settings: % env | grep ftp_proxy ftp_proxy=http://my.ftp.proxy:1234/ % ftp ftp> set anonpass mylogin@ ftp_proxy http://my.ftp.proxy:1234/ http_proxy http://my.ftp.proxy:1234/ no_proxy localhost, 127.0.0.1 pager less prompt ftp> rprompt ftp> open ftp.gwdg.de <no connection> A tcpdump shows 13:48:16.055718 IP my.host.58311 > ftp3.gwdg.de.ftp: S 1317814807:1317814807(0) win 5840 <mss 1460,sackOK,timestamp 608758765 0,nop,wscale 5> 13:48:19.050618 IP my.host.58311 > ftp3.gwdg.de.ftp: S 1317814807:1317814807(0) win 5840 <mss 1460,sackOK,timestamp 608759515 0,nop,wscale 5> 13:48:25.051660 IP my.host.58311 > ftp3.gwdg.de.ftp: S 1317814807:1317814807(0) win 5840 <mss 1460,sackOK,timestamp 608761015 0,nop,wscale 5> 13:48:37.052185 IP my.host.58311 > ftp3.gwdg.de.ftp: S 1317814807:1317814807(0) win 5840 <mss 1460,sackOK,timestamp 608764015 0,nop,wscale 5> (names have been mangled) So the ftp client attempts a direct connection rather than contacting the proxy. Does this sound familiar? Any ideas how to fix this? Kind regards Ingolf PS: The very same proxy settings work when using firefox (on the same machine), so it's not a problem with the proxy itself or with the FTP server. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
the (command line) ftp client which comes with openSUSE 10.3 seems to not honor the ftp_proxy settings:
-snip-
So the ftp client attempts a direct connection rather than contacting the proxy. Does this sound familiar? Any ideas how to fix this?
The FTP proxy as configured is for web browsers - it works by a HTTP(proxy) connection being initiated to the proxy server, and that proxy then goes and does all the FTP stuff, delivering you a page rendered in HTML as the result. The FTP CLI client actually does all the FTP guff - it doesn't interpret the output (of ls, etc) in any way - just sends it on - so if it spoke to a (HTTP) proxy, it'd have to interpret the HTML it got back, or have some sort of a rendering engine, and it would no longer be the nice simple client it is today, etc, etc. Hope this makes some sort of sense... Phil -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
2009/5/12 Philip Dowie <philip.dowie@integrationworks.co.nz>:
The FTP proxy as configured is for web browsers - it works by a HTTP(proxy) connection being initiated to the proxy server, and that proxy then goes and does all the FTP stuff, delivering you a page rendered in HTML as the result.
I don't think that the proxy is for web browsers only. After all, the CLI FTP client automatically detects the ftp_proxy environment variable and updates its own settings correspondingly. From the ftp man page: set [option value] Set option to value. If option and value are not given, dis- play all of the options and their values. The currently sup- ported options are: [...] ftp_proxy Defaults to $ftp_proxy. [...] So ftp_proxy is definitively also applicable to the CLI client. However, after re-reading the man page, I find ftp_proxy URL of FTP proxy to use when making FTP URL requests (if not defined, use the standard FTP protocol). It seems that the ftp client is intended to only respect ftp_proxy when used non-interactively... But then again % ftp ftp://ftp.gwdg.de/pub/ does not work -- it attempts to connect to port 21 on ftp.gwdg.de. Ingolf -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Ingolf Steinbach
-
Philip Dowie