From owner-freebsd-questions Fri Dec 14 19:21:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail5.sdc1.sfba.home.com (femail5.sdc1.sfba.home.com [24.0.95.85]) by hub.freebsd.org (Postfix) with ESMTP id 72B2737B417 for ; Fri, 14 Dec 2001 19:21:50 -0800 (PST) Received: from main ([24.14.243.57]) by femail5.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20011215032150.OQSP936.femail5.sdc1.sfba.home.com@main>; Fri, 14 Dec 2001 19:21:50 -0800 Message-ID: <000f01c18517$869eca60$0300a8c0@jayyness.com> From: "Totally Jayyness" To: "Edwin Groothuis" Cc: References: <000501c1850a$58742b60$0300a8c0@jayyness.com> <20011215125227.J724@k7.mavetju.org> Subject: Re: 2 FTP Sites running on the same machine Date: Fri, 14 Dec 2001 20:21:01 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks, that worked out great... here is what I did just so others might follow along. I checked /etc/services for a port that wasn't currently assigned to something else. Saw that 16 didn't seemed to be being used so I added. mp3ftp 16/tcp #MP3 File Transfer mp3ftp 16/udp #MP3 File Transfer Then I took a look at /etc/inetd.conf and copied the ftp lines then edited them so I had 2 new lines reading mp3ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l mp3ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l Did the kill -HUP inetd and recieved an error... kill: Arguments should be jobs or process id's. So I tried killall -HUP inetd which worked. checked netstat -Aan and poof... c7fdcd80 tcp6 0 0 *.16 *.* LISTEN c7fdd500 tcp4 0 0 *.16 *.* LISTEN c7fd7d80 tcp6 0 0 *.21 *.* LISTEN c7fd6d80 tcp4 0 0 *.21 *.* LISTEN port 16 and port 21 listening.... fired up FlashFXP and logged into port 16 with ftp... thanks for the help!!!! ----- Original Message ----- From: "Edwin Groothuis" To: "Totally Jayyness" Cc: Sent: Friday, December 14, 2001 6:52 PM Subject: Re: 2 FTP Sites running on the same machine > On Fri, Dec 14, 2001 at 06:46:41PM -0700, Totally Jayyness wrote: > > I am pretty sure this can be done, but I am having trouble tracking down > > exactly how to do it. > > > > I currently am running ftp on the standard port 21. What I would like to do > > is run a second ftp on a different port, say 1000) and have that ftp launch > > automatically if I have to reboot my server for whatever reason. > > Look at how ftp is started from /etc/inetd.conf. > Just add a new port to /etc/services, for example "myftp 1000/tcp" > and copy the line in inetd.conf, just replace the first ftp with > myftp. Kill -HUP inetd and you're in! > > Edwin > > -- > Edwin Groothuis | Personal website: http://www.MavEtJu.org > edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: > ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message