From owner-freebsd-current@FreeBSD.ORG Wed May 16 16:02:08 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 286F716A405 for ; Wed, 16 May 2007 16:02:08 +0000 (UTC) (envelope-from jhs@tower.berklix.net) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.freebsd.org (Postfix) with ESMTP id A6EC713C484 for ; Wed, 16 May 2007 16:02:07 +0000 (UTC) (envelope-from jhs@tower.berklix.net) Received: from js.berklix.net (p549A5977.dip.t-dialin.net [84.154.89.119]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id l4GG1ViN053287; Wed, 16 May 2007 18:01:32 +0200 (CEST) (envelope-from jhs@tower.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.13.6/8.13.6) with ESMTP id l4GG1Xfh037821; Wed, 16 May 2007 18:01:33 +0200 (CEST) (envelope-from jhs@tower.berklix.net) Received: from fire.jhs.private (localhost.jhs.private [127.0.0.1]) by fire.jhs.private (8.13.6/8.13.6) with ESMTP id l4GG237U098063; Wed, 16 May 2007 18:02:03 +0200 (CEST) (envelope-from jhs@fire.jhs.private) Message-Id: <200705161602.l4GG237U098063@fire.jhs.private> To: Buki In-reply-to: <20070516152319.GG378@dev.null.cz> References: <200705101342.l4ADgCgg007728@lurza.secnetix.de> <20070510221221.GA44910@FreeBSD.czest.pl> <464392EC.5090203@elischer.org> <20070510223739.GA66016@lor.one-eyed-alien.net> <4643C90D.9040906@elischer.org> <20070511015204.GA66910@lor.one-eyed-alien.net> <1178935327.1786.6.camel@localhost> <200705151030.l4FAUbEE063594@fire.jhs.private> <86d5125fxo.fsf@dwp.des.no> <20070516152319.GG378@dev.null.cz> Comments: In-reply-to Buki message dated "Wed, 16 May 2007 17:23:19 +0200." Date: Wed, 16 May 2007 18:02:03 +0200 From: "Julian H. Stacey" X-Mailman-Approved-At: Wed, 16 May 2007 16:53:31 +0000 Cc: Dag-Erling Sm??rgrav , freebsd-current@freebsd.org, Tom McLaughlin Subject: Re: We don't really need two FTP daemons X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 16:02:08 -0000 > On Tue, May 15, 2007 at 04:17:55PM +0200, Dag-Erling Sm??rgrav wrote: > > "Julian H. Stacey" writes: > > > Someone asked whether lukemftpd offered functionality other(s) don't ? > > > What about proxy ? > > > > > > I've never been sure which ftpd to run on my gateway (with IPFW, with n= > o NAT) > > > to provide proxy, so internal hosts could cd /usr/ports; make fetch > >=20 > > You don't need a proxy. Do the following on each internal host: > >=20 > > # echo 'FTP_PASSIVE_MODE=3DYES' >>/etc/profile Thanks Dag-Erling, To make sure, I've just added FTP_PASSIVE_MODE=YES to my /etc/profile though I've long had in my csh : printenv | grep -i FTP | sort FTPSERVER=gate.jhs.private FTP_LOGIN=ftp FTP_PASSIVE_MODE=YES FTP_PASSWORD=jhs@berklix.net PACKAGEROOT=ftp://ftp ftp_proxy=ftp://gate.jhs.private:21 printenv | grep -i http | sort WWW_HOME=http://gate.jhs.private all_proxy=http://gate.jhs.private http_proxy=http://gate.jhs.private:80 But it just occured to me as long shot, that when fetch does a system() or fork() it may invoke sh not csh, so I need to check again what env vars fetch inherits (though I recall it inherited OK last I looked). > actually, if the internal hosts use RFC1918 addresses this wouldn't > suffice. He really needs either ftp proxy (and redirect all ftp traffic > to it) or NAT. Thanks Buki, Yes, that's what I'd thought too: I do need an ftpd proxy too. I still need to know which ftpd is good for proxy & how to config to it ? ( My guess is many people use NAT, which is why not so many know /reply re. ftpd proxy ? ) -- Julian Stacey. Munich Computer Consultant, BSD Unix C Linux. http://berklix.com Ihr Rauch = mein allergischer Kopfschmerz. Dump cigs: Try snuff.