From owner-freebsd-questions@FreeBSD.ORG Tue May 28 05:07:40 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6A7EB772 for ; Tue, 28 May 2013 05:07:40 +0000 (UTC) (envelope-from vadims@libre.lv) Received: from mail.skynet.lv (mail.skynet.lv [195.244.128.84]) by mx1.freebsd.org (Postfix) with ESMTP id 2F2CF85E for ; Tue, 28 May 2013 05:07:39 +0000 (UTC) Received: from mail.skynet.lv (localhost [127.0.0.1]) by mail.skynet.lv (Postfix) with ESMTP id 3EEBC19B88; Tue, 28 May 2013 08:08:28 +0300 (EEST) Received: from vbsd (unknown [87.110.30.129]) by mail.skynet.lv (Postfix) with ESMTPSA id ED26619B86; Tue, 28 May 2013 08:08:27 +0300 (EEST) Date: Tue, 28 May 2013 08:07:35 +0300 (EEST) From: vadims@libre.lv To: Polytropon Subject: Re: cannot use ftp utility throught proxy In-Reply-To: <20130528063626.3ca6e4cf.freebsd@edvax.de> Message-ID: References: <20130528063626.3ca6e4cf.freebsd@edvax.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 May 2013 05:07:40 -0000 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), vadims@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, ... >