From owner-freebsd-questions Tue Apr 16 5: 5:16 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by hub.freebsd.org (Postfix) with SMTP id A214837B405 for ; Tue, 16 Apr 2002 05:05:08 -0700 (PDT) Received: from 12-220-244-231.client.insightbb.com (HELO Kaiser) (donniejones18@12.220.244.231 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 16 Apr 2002 12:05:06 -0000 Date: Tue, 16 Apr 2002 08:05:11 -0400 From: Donnie Jones To: freebsd-questions@freebsd.org Subject: Re: Ftp proxy or jftpgw configuration Message-Id: <20020416080511.7422202b.donniejones18@yahoo.com> X-Mailer: Sylpheed version 0.6.6 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Begin forwarded message: Date: Tue, 16 Apr 2002 08:04:40 -0400 From: Donnie Jones To: Donnie Jones Subject: Re: Ftp proxy or jftpgw configuration As a reply to my own question, since I finally figured it out. :-) Here is a sample configuration similar to my jftpgw configuration that solves my problems of having multiple ftp servers behind a freebsd gateway. I hope maybe this helps some other frustrated user at some point. jftpgw.conf: logstyle files listen x.x.x.x:2370 serverport 21 pidfile /var/run/jftpgw.pid runasuser nobody passiveportrange 44000:45000 activeportrange 55000:58000 debuglevel 9 logfile /home/joe/jftpgw.log cmdlogfile /home/joe/jftpgw.xferlog cmdlogfile-style "time: %T, bytes: %b, status: %s" cmdlogfile-specs RETR STOR cacheprefix /temp/cache access allow access deny access allow # forward any user with destination of pc1 to local ip address for pc1 forward 192.168.0.10:21,a cache off # forward any user with destination of pc2 to local ip address for pc2 forward 192.168.0.11:21,a cache off # forward any user with destination of pc3 to local ip address for pc3 forward 192.168.0.12:21,a cache off # forward any user with destination of pc4 to local ip address for pc4 forward 192.168.0.13:21,a cache off # end of jftpgw.conf http://www.darthik.com/freebsd-docs/gateway-docs/LAN.jpeg --- Is a graphical layout for the LAN. Also, make sure to have the lastest version of jftpgw from the ports or this will not work. Good luck to all, --Donnie http://www.darhtik.com On Sun, 14 Apr 2002 02:20:09 -0400 Donnie Jones wrote: > Hey all, > > I am trying to set up a proxy for ftp servers behind a freebsd gateway using ip nat. I would like to be able to have the users log in using something similar to "user@host" and the user/host information causing the proxy to forward the connection to an internal ftp server on my LAN. > > Here is a picture similar to my setup: > > http://www.darthik.com/freebsd-docs/gateway-docs/LAN.jpeg > > Assume that pc1, pc2, pc3, and pc4 are the hostnames on the LAN, and that each is running their own ftp server. > > My goal is for user such as 'john' to login at the user prompt with the ftp proxy: john@pc1 > > Then the ftp proxy to forward this request to the ftp server on pc1. I have tried to set this up with jftpgw, but I have not had success. > > Please help. > > http://www.mcknight.de/jftpgw/ --- jftpgw website. > > http://www.ftpproxy.org --- ftp proxy website. > > These are the only two programs I have found for freebsd that may meet my needs. I have preferred jftpgw due to that ftpproxy can only be ran through inetd, which I don't use. > > So, if anyone has a sample configuration or their own configuration that they could email to me that would be wonderful. > > Any help would be great... > > Thanks again! > > --Donnie > http://www.darthik.com > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message