From owner-freebsd-questions Mon Nov 3 11:46:52 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA27884 for questions-outgoing; Mon, 3 Nov 1997 11:46:52 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from xoom.com (host069.xoom.com [207.90.142.69]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA27879 for ; Mon, 3 Nov 1997 11:46:50 -0800 (PST) (envelope-from dave@xoom.com) Received: from localhost (dave@localhost) by xoom.com (8.8.7/8.8.7) with SMTP id LAA21583; Mon, 3 Nov 1997 11:44:10 -0800 (PST) Date: Mon, 3 Nov 1997 11:44:09 -0800 (PST) From: Dave Smith To: Wolfram Schneider cc: freebsd-questions@FreeBSD.ORG, Bill Clark Subject: Re: redirect ftp requests from one machine to another machine In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I tried this and if I now do ftp xoom.com it redirects to xoomftp.xoom.com. I log in as a user and do an ls and I get the following error message: ftp> ls 500 Illegal PORT range rejected. 425 Can't build data connection: Connection refused. Here is the full ftp session: 11:39AM vortex.xoom.com 34 [ dave ][ ~ ] % ftp xoom.com Connected to xoom.com. 220 xoomftp.xoom.com FTP server (Version 6.00) ready. Name (xoom.com:dave): 331 Password required for dave. Password: 230 User dave logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 500 Illegal PORT range rejected. 425 Can't build data connection: Connection refused. ftp> If I use passive then 'ls' will work. Can it be made work in non-passive mode? Thanks, Dave. On 2 Nov 1997, Wolfram Schneider wrote: > > You can redirect ftp requests with the socket(1) program (*). Replace the > ftp entry in xoom.com:/etc/inetd.conf with socket. E.g. > > ftp stream tcp nowait nobody /usr/local/bin/socket socket ftp.xoom.com ftp > > and restart inetd: killall -HUP inetd > > (*) socket is must-have software ;-) > See ports/sysutils/socket. > > Dave Smith writes: > > I need a quick fix. Our load balancing server is down > > undergoing repair so I need a way to redirect FTP > > requests to xoom.com to go to our ftp server, ftp.xoom.com. > > > > I don't want to have to email our users who are used > > of doing 'ftp xoom.com' and tell them to do 'ftp ftp.xoom.com' > > for the next couple of days. I am trying to come up with a > > seamless solution. > > > > Putting the ftp server on the machine which answers to xoom.com > > is not feasible. The ftp server is on xoomftp.xoom.com. > > -- > Wolfram Schneider http://www.apfel.de/~wosch/ > -- David Smith - MIS Manager CONTACT INFORMATION Xoom Software, Inc. E-mail: dave@xoom.com 433 California St., Suite 910, Tel: (415) 445-2525 x122 San Francisco, Ca 94104 Fax: (415) 445-2526