From owner-freebsd-net@FreeBSD.ORG Mon Jul 21 03:49:05 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4420437B401 for ; Mon, 21 Jul 2003 03:49:05 -0700 (PDT) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 835FC43FBF for ; Mon, 21 Jul 2003 03:49:04 -0700 (PDT) (envelope-from zel@free.fr) Received: from imptest1-2.proxad.net (impt1-2.free.fr [213.228.0.144]) by postfix3-2.free.fr (Postfix) with ESMTP id 918DFC225 for ; Mon, 21 Jul 2003 12:49:02 +0200 (CEST) Received: by imptest1-2.proxad.net (Postfix, from userid 33) id 89470C24B; Mon, 21 Jul 2003 12:49:02 +0200 (MEST) Received: from 81.80.243.157 ([81.80.243.157]) by impt1-2.free.fr (IMP) with HTTP for ; Mon, 21 Jul 2003 12:49:02 +0200 Message-ID: <1058784542.3f1bc51e40238@impt1-2.free.fr> Date: Mon, 21 Jul 2003 12:49:02 +0200 From: zel@free.fr To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 Subject: Pb with nat and redirection X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 10:49:05 -0000 Hye !!! Ok, yesterday, I posted a question, and someone answerd me, but, the solution (or what I've done to install it) failed. Does someone could say me why ? The situation is described below: Ethernet ADSL modem o ---10.0.0.0/24--- A --- 10.1.0.0 / 24 --- | | | 192.168.1.0/24 | | | A is a routing firewall computer (creating a DMZ). (Based on a freeBsd 4.4). Its IP addresses are 10.0.0.1 10.1.0.254 192.168.1.254 Workstations are on 192.168.1.0/24 network and servers are on 10.1.0.0/24. ifconfig on A displays: ep0 ....... ed1 ....... ed2 ....... tun0 ...... .... -> .... .... -> .... The FTP server is 10.1.0.1 so natd is running on A with this parameters: -dynamic -n tun0 -redirect_port tcp 10.1.0.1:ftp ftp But when I try to connect to my FTP server from outside, I receive the classic message : "Connection closed by host", but I can access to my FTP server from inside. What can I do, where is the mistake ? Thanks.