Date: Mon, 3 Nov 1997 11:44:09 -0800 (PST) From: Dave Smith <dave@xoom.com> To: Wolfram Schneider <wosch@cs.tu-berlin.de> Cc: freebsd-questions@FreeBSD.ORG, Bill Clark <wclark@xoom.com> Subject: Re: redirect ftp requests from one machine to another machine Message-ID: <Pine.BSF.3.96.971103114012.20322F-100000@vortex.xoom.com> In-Reply-To: <p1ik9erfmqz.fsf@panke.panke.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <dave@xoom.com> 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 <wosch@apfel.de> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971103114012.20322F-100000>