From owner-freebsd-ipfw@FreeBSD.ORG Mon Aug 11 03:12:35 2003 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8B3137B405; Mon, 11 Aug 2003 03:12:35 -0700 (PDT) Received: from smtp.hotbox.ru (smtp.hotbox.ru [80.68.244.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BB3D43F75; Mon, 11 Aug 2003 03:12:34 -0700 (PDT) (envelope-from denb@front.ru) Received: from ws-2.dep624 ([212.1.235.150]) (authenticated bits=0) by smtp.hotbox.ru (8.12.9/8.12.9) with ESMTP id h7B9xOCe035049; Mon, 11 Aug 2003 13:59:40 +0400 (MSD) (envelope-from denb@front.ru) From: Denis Borisov To: ipfw@freebsd.org Date: Mon, 11 Aug 2003 14:12:18 +0400 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308111412.18099.denb@front.ru> cc: current@freebsd.org Subject: natd over ipfw2 problem. X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2003 10:12:36 -0000 Hi, All I want redirect incoming traffic to internal server. Why natd don't redirect packet? OS - FreeBSD 5.1-CURRENT 192.168.0.104 | | | 192.168.0.102 | router | 172.16.0.102 | | | 172.16.0.253 internal server #ipfw add divert 7777 ip from 172.16.0.253 to any out #ipfw add divert 6666 ip from any to 192.168.0.102 in #ipfw sh 00100 0 0 divert 7777 ip from 172.16.0.253 to any out 00200 0 0 divert 6666 ip from any to 192.168.0.102 in 65535 3363 607801 allow ip from any to any #natd -v -u -m -a 192.168.0.102 -i 6666 -o 7777 -redirect_address 172.16.0.253 192.168.0.102 In [TCP] [TCP] 192.168.0.104:49155 -> 192.168.0.102:80 aliased to [TCP] 192.168.0.104:49155 -> 172.16.0.253:80 ^C Why natd don't changes source IP address? Where OUT chain? ------------------------ Regards, Denis Borisov