From owner-freebsd-questions Fri Mar 15 22:35:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by hub.freebsd.org (Postfix) with SMTP id E061E37B400 for ; Fri, 15 Mar 2002 22:35:08 -0800 (PST) Received: from donniejones18 (AUTH login) at 12-220-244-231.client.insightbb.com (HELO Kaiser) (donniejones18@12.220.244.231) by smtp.mail.vip.sc5.yahoo.com with SMTP; 16 Mar 2002 06:35:07 -0000 Date: Sat, 16 Mar 2002 01:31:51 -0500 From: Donnie Jones To: freebsd-questions@freebsd.org Subject: ftp server and freebsd gateway ( ipnat ) Message-Id: <20020316013151.12f9b698.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 Hey all. I am having some problems with people connecting to my ftp servers behing my FBSD gateway. I am using ip nat for my LAN with 3 hosts running ftp servers behing the FBSD gateway. IP Addresses for LAN ftp servers: 192.168.0.5 -- 1st ftp server 192.168.0.6 -- 2nd ftp server 192.168.0.7 -- 3rd ftp server To access these ftp servers I am using ip nat's port redirection: rdr fxp0 12.220.244.231/32 port 13005 -> 192.168.0.5 port 21 # 1st ftp server rdr fxp0 12.220.244.231/32 port 13006 -> 192.168.0.6 port 21 # 2nd ftp server rdr fxp0 12.220.244.231/32 port 13007 -> 192.168.0.7 port 21 # 3rd ftp server By doing this, a person using ftp can connect to my IP Address at that specific port and then it gets redirected to the correct ftp server behind the FBSD gateway on the LAN. Now, this works for some ftp clients, but most of them, especially windows clients, have issues with getting the "list" for their directories, and it just stalls. Eventually, the client will timeout and they are disconnected, therefore, preventing any files to be transferred. I am not sure what else can be done to fix this. I've tried having the clients use active and tried passive with no better results. Any ideas on things to try to solve this would be wonderful. I have attempted to set up an ftp proxy, but I was confused in how to use the program jftpgw. If anyone has had success with this program, a sample jftpgw.conf, other than the one that comes with the program, or some url's for online docs would be great for me to look at. Also, part of the reason I am asking is that this seems to be a big problem for other users also, and there is not very much documentation available for explanations on how to fix these issues. So, I would like to write up a "howto" to facilitate others in this, with the help I receive from this list. I have already written a "FBSD gateway howto" available at http://www.darthik.com, under the FreeBSD tab, if anyone would like to take a look at it and give me some comments. Thanks for your time, sorry about the length. -Donnie Jones _________________________________________________________ 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