Re: cannot use ftp utility throught proxy

2013-05-27 Thread vadims

Tried "ftp_proxy=http://proxyserver:8080"; - no connection to proxy server.

root@:/root # env
TERM=screen
FTP_PROXY=http://proxyserver:8080
HTTP_PROXY=http://proxyserver:8080
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
SHELL=/bin/csh
HOME=/root
USER=root
HOSTTYPE=FreeBSD
VENDOR=amd
OSTYPE=FreeBSD
MACHTYPE=x86_64
SHLVL=1
PWD=/root
LOGNAME=root
GROUP=wheel
HOST=myserver
EDITOR=vi
PAGER=more
BLOCKSIZE=K
FETCH_CMD=/usr/bin/fetch -ARrvp -T 10
ftp_proxy=http://proxyserver:8080

Thank You!

VS.

On Tue, 28 May 2013, Polytropon wrote:


On Tue, 28 May 2013 07:08:12 +0300 (EEST), vad...@libre.lv wrote:

Hello!
Can someone help me, please?

Have no luck seting up ftp utility for using proxy.
Already have set environment variables:
FTP_PROXY=http://proxyserver:8080
HTTP_PROXY=http://proxyserver:8080

When try to connect:
root# root@zerver:/root # ftp -a ftp2.FreeBSD.org
root# ftp: Can't connect to `128.205.32.24: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 128.205.32.24.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
   command-line fetches.

You can also interactively set those (again, see "man ftp" for
more details).





--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: cannot use ftp utility throught proxy

2013-05-27 Thread staticsafe
On Tue, May 28, 2013 at 07:08:12AM +0300, vad...@libre.lv wrote:
> Hello!
> Can someone help me, please?
> 
> Have no luck seting up ftp utility for using proxy.
> Already have set environment variables:
> FTP_PROXY=http://proxyserver:8080
> HTTP_PROXY=http://proxyserver:8080
> 
> When try to connect:
> root# root@zerver:/root # ftp -a ftp2.FreeBSD.org
> root# ftp: Can't connect to `128.205.32.24: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 128.205.32.24.21.
> 
> Tried to use this env variable, but without acceptable results:
> FETCH_CMD=/usr/bin/fetch -ARrvp -T 10
> 
> uname -a
> 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC
> 2013 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
> amd64
> 
> Excuses my language, not native English.
> 
> Have a lucky day!
> VS.

According to the ftp manpage, the variables for proxying are:

 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
RFC3986 `%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
command-line fetches.

Notice the capitalization, "ftp_proxy" as opposed to "FTP_PROXY". Not sure why
environment variables are not all caps, seems inconsistent.
-- 
staticsafe
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post - http://goo.gl/YrmAb
Don't CC me! I'm subscribed to whatever list I just posted on.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: cannot use ftp utility throught proxy

2013-05-27 Thread Polytropon
On Tue, 28 May 2013 07:08:12 +0300 (EEST), vad...@libre.lv wrote:
> Hello!
> Can someone help me, please?
> 
> Have no luck seting up ftp utility for using proxy.
> Already have set environment variables:
> FTP_PROXY=http://proxyserver:8080
> HTTP_PROXY=http://proxyserver:8080
> 
> When try to connect:
> root# root@zerver:/root # ftp -a ftp2.FreeBSD.org
> root# ftp: Can't connect to `128.205.32.24: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 128.205.32.24.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
command-line fetches.

You can also interactively set those (again, see "man ftp" for
more details).





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


cannot use ftp utility throught proxy

2013-05-27 Thread vadims

Hello!
Can someone help me, please?

Have no luck seting up ftp utility for using proxy.
Already have set environment variables:
FTP_PROXY=http://proxyserver:8080
HTTP_PROXY=http://proxyserver:8080

When try to connect:
root# root@zerver:/root # ftp -a ftp2.FreeBSD.org
root# ftp: Can't connect to `128.205.32.24: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 128.205.32.24.21.

Tried to use this env variable, but without acceptable results:
FETCH_CMD=/usr/bin/fetch -ARrvp -T 10

uname -a
9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013 
r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64


Excuses my language, not native English.

Have a lucky day!
VS.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"