From owner-freebsd-questions@FreeBSD.ORG Fri Sep 15 07:44:43 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E20C16A4AB for ; Fri, 15 Sep 2006 07:44:43 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABBE043D46 for ; Fri, 15 Sep 2006 07:44:41 +0000 (GMT) (envelope-from nvass@teledomenet.gr) Received: from iris ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id k8F7idEY007181; Fri, 15 Sep 2006 10:44:39 +0300 From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Fri, 15 Sep 2006 10:42:22 +0300 User-Agent: KMail/1.9.1 References: <9773.209.204.181.224.1158244818.squirrel@webmail.sonic.net> In-Reply-To: <9773.209.204.181.224.1158244818.squirrel@webmail.sonic.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609151042.22542.nvass@teledomenet.gr> Cc: billgg@sonic.net Subject: Re: FTP server behind router/gateway X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Sep 2006 07:44:43 -0000 On Thursday 14 September 2006 17:40, billgg@sonic.net wrote: > I have a FreeBSD 6.1 box running behind a router/gateway. When it tries > to go into passive mode, it returns it's internal 192.168. ip address to > the client which the client stupidly uses to try to connect to. I've > confirmed this by tyring to FTP from several external systems (windows & > linux). Is there anyway to get the FreeBSD box to return the external > address without making it act as the router/gateway? In addition to what Andreas said: The problem is not the "router/gateway" in front of the ftp. The problem is the internal address the ftp server has and the nat that the router has to do. FreeBSD knows nothing about the external address... I think you'll have better results getting a second IP address for your ftp server and just route packets. Or you could search for an ftp server with this feature and/or a router with a big bag of tricks(similar to ftp-proxy FreeBSD has) I would go for a second IP address if that was a choice Nikos