Date: Fri, 14 Dec 2001 20:21:01 -0700 From: "Totally Jayyness" <Jayyness@mindspring.com> To: "Edwin Groothuis" <edwin@mavetju.org> Cc: <freebsd-questions@freebsd.org> Subject: Re: 2 FTP Sites running on the same machine Message-ID: <000f01c18517$869eca60$0300a8c0@jayyness.com> References: <000501c1850a$58742b60$0300a8c0@jayyness.com> <20011215125227.J724@k7.mavetju.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <edwin@mavetju.org> To: "Totally Jayyness" <Jayyness@mindspring.com> Cc: <freebsd-questions@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000f01c18517$869eca60$0300a8c0>