From owner-freebsd-questions@FreeBSD.ORG Mon Feb 23 16:43:54 2004 Return-Path: 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 4375816A4CE for ; Mon, 23 Feb 2004 16:43:54 -0800 (PST) Received: from ns1.unixmexico.net (ns1.unixmexico.net [69.10.138.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15DEC43D1F for ; Mon, 23 Feb 2004 16:43:54 -0800 (PST) (envelope-from nbari@unixmexico.com) Received: (qmail 49507 invoked by uid 85); 24 Feb 2004 00:45:44 -0000 Received: from nbari@unixmexico.com by ns1.unixmexico.net by uid 82 with qmail-scanner-1.16 (hbedv: 6.22.0.1/6.22.0.6. Clear:. Processed in 0.345139 secs); 24 Feb 2004 00:45:44 -0000 Received: from ns1.unixmexico.net (HELO mail.unixmexico.com) ([69.10.138.161]) (envelope-sender ) by ns1.unixmexico.net (qmail-ldap-1.03) with SMTP for ; 24 Feb 2004 00:45:44 -0000 Received: from 200.57.40.53 (SquirrelMail authenticated user nbari@unixmexico.com) by mail.unixmexico.com with HTTP; Mon, 23 Feb 2004 18:45:44 -0600 (CST) Message-ID: <1480.200.57.40.53.1077583544.squirrel@mail.unixmexico.com> Date: Mon, 23 Feb 2004 18:45:44 -0600 (CST) From: =?iso-8859-1?Q?Nicol=E1s_de_Bari_Embr=EDz_G._R.?= To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: ftp Redirect problems using RDR X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 00:43:54 -0000 Hi all. I am having some problems redirecting a ftp using rrd, i am using ipfilter and ipnat my ipnat.rules on Server 1 file has some thing like: map fxp0 192.168.50.1/24 -> 148.243.246.2/32 portmap tcp/udp auto map fxp0 192.168.50.1/24 -> 148.243.246.2/32 rdr fxp0 148.243.246.2/32 port 21 -> 192.168.60.1/32 port 21024 My net is something like: server 1 server 2 148.243.246.2 200.50.59.30 --------- --------------------------- | FreBSD | <----IPSEC tunnel---> | FTP (pureftp port 11021) | --------- --------------------------- 192.168.50.1 192.168.60.1 | | | | ----- ----- | NAT | | NAT | ----- ----- | | 192.168.50.0/24 192.168.60.0/24 I want to redirect ftp connections on server 1 (port 21) to server 2 (port 11021) so when a user, ftp to 148.243.246.2 he gets redirected to server 200.50.59.30, but using the IPSEC tunnel. ftp 148.243.246.2 port 21 ----> redirect to 192.168.60.1 port 11021 right now the IPSEC tunnel works fine i can ping an see machines from 192.168.50.0/24 to 192.168.60.0/24 Any idea on how could i fix this ? both servers are using FreeBSD 4.9-STABLE