cannot use ftp utility throught proxy
freebsd at edvax.de
Tue May 28 04:36:21 UTC 2013
On Tue, 28 May 2013 07:08:12 +0300 (EEST), vadims at libre.lv wrote:
> Can someone help me, please?
> Have no luck seting up ftp utility for using proxy.
> Already have set environment variables:
> When try to connect:
> root# root at zerver:/root # ftp -a ftp2.FreeBSD.org
> root# ftp: Can't connect to `22.214.171.124:21': Operation timed out
> root# ftp: Can't connect to `ftp2.FreeBSD.org:ftp'
> Used tcpdump to check where it connects:
> root# tcpdump -n -ttt -i em0 port ftp
> & I can see, that ftp is trying to connect directly to 126.96.36.199.21.
I think I can see the problem. Please check "man ftp" for the
correct name of the environment variables. Unlike typical for
many other programs, those for ftp are written in lower case:
ftp_proxy URL of FTP proxy to use when making FTP URL requests (if
not defined, use the standard FTP protocol).
See http_proxy for further notes about proxy use.
http_proxy URL of HTTP proxy to use when making HTTP URL requests.
If proxy authentication is required and there is a user-
name and password in this URL, they will automatically be
used in the first attempt to authenticate to the proxy.
If ``unsafe'' URL characters are required in the username
or password (for example `@' or `/'), encode them with RFC
1738 `%XX' encoding.
Note that the use of a username and password in ftp_proxy
and http_proxy may be incompatible with other programs
that use it (such as lynx(1)).
NOTE: this is not used for interactive sessions, only for
You can also interactively set those (again, see "man ftp" for
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions