From owner-freebsd-questions@FreeBSD.ORG Mon Jun 3 22:25:55 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 19ED2B43 for ; Mon, 3 Jun 2013 22:25:55 +0000 (UTC) (envelope-from lkchen@k-state.edu) Received: from ksu-out.merit.edu (ksu-out.merit.edu [207.75.117.133]) by mx1.freebsd.org (Postfix) with ESMTP id DACF51BCB for ; Mon, 3 Jun 2013 22:25:54 +0000 (UTC) X-Merit-ExtLoop1: 1 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgQFACsXrVHPS3TT/2dsb2JhbABWAxaCczCDPLxUFnSCIwEBAQMBAQEBICsgCwUHAg0aAg0ZAh0MAQkmDgcEARoCBIdmBgyqQYl3iBYEgSKMPxCBSgWCLoEUA5R6g22QF4MrUoEDNg X-IronPort-AV: E=Sophos;i="4.87,795,1363147200"; d="scan'208";a="223874538" X-MERIT-SOURCE: KSU Received: from ksu-sfpop-mailstore02.merit.edu ([207.75.116.211]) by sfpop-ironport07.merit.edu with ESMTP; 03 Jun 2013 18:25:48 -0400 Date: Mon, 3 Jun 2013 18:25:48 -0400 (EDT) From: "Lawrence K. Chen, P.Eng." To: vadims@libre.lv Message-ID: <823454234.22177113.1370298348163.JavaMail.root@k-state.edu> In-Reply-To: Subject: Re: cannot ftp using proxy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [129.130.0.181] X-Mailer: Zimbra 7.2.2_GA_2852 (ZimbraWebClient - GC27 ([unknown])/7.2.2_GA_2852) 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: Mon, 03 Jun 2013 22:25:55 -0000 Delving through the source code...it appears that it only uses the ftp_proxy when given an ftp url something like: > ftp ftp://ftp.freebsd.org/pub/FreeBSD/README.TXT Requesting ftp://ftp.freebsd.org/pub/FreeBSD/README.TXT (via www-proxy.ksu.edu:8080) 100% |***********************************| 3795 26.38 KiB/s 00:00 ETA 3795 bytes retrieved in 00:00 (26.36 KiB/s) Only the fetch side uses proxy (triggered by there being a ':' in the argument.) The interactive ftp side doesn't. ----- Original Message ----- > Hello! > Still can't resolve problem with "ftp" utility. > > root@ona:/root # ftp ftp2.freebsd.org > ftp: Can't connect to `128.205.32.24:21': Operation timed out > ftp: Can't connect to `ftp2.freebsd.org:ftp' > ftp> > > "socksta -4" tells me that it is not even trying to connect to proxy > server, connecting directly instead: > > root@ona:/root # sockstat -4 > USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN > ADDRESS > root ftp 54160 3 tcp4 10.10.15.26:50457 > 128.205.32.24:21 > > > root@ona:/root # uname -a > FreeBSD ona.iem.gov.lv 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon > Apr 29 18:27:25 UTC 2013 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > amd64 > > > root@ona:/root # env > TERM=screen > ftp_proxy=http://myproxy:8080 > http_proxy=http://myproxy: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=ona > EDITOR=vi > PAGER=more > BLOCKSIZE=K > > Tried to google with no luck - no solution works for me. By the way, > "fetch" works as expected, I can fetch and install ports. > I would appreciate any help and/or any hints! > > Best regards! > VS. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > -- Who: Lawrence K. Chen, P.Eng. - W0LKC - Senior Unix Systems Administrator For: Enterprise Server Technologies (EST) -- & SafeZone Ally Snail: Computing and Telecommunications Services (CTS) Kansas State University, 109 East Stadium, Manhattan, KS 66506-3102 Phone: (785) 532-4916 - Fax: (785) 532-3515 - Email: lkchen@ksu.edu Web: http://www-personal.ksu.edu/~lkchen - Where: 11 Hale Library