From owner-freebsd-ipfw Mon Jul 29 9:57:21 2002 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 9728C37B400 for ; Mon, 29 Jul 2002 09:57:19 -0700 (PDT) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id E704E43E3B for ; Mon, 29 Jul 2002 09:57:18 -0700 (PDT) (envelope-from m@devzerog.com) Received: from devzerog.com ([80.4.0.140]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020729165717.GOJV5047.mta06-svc.ntlworld.com@devzerog.com> for ; Mon, 29 Jul 2002 17:57:17 +0100 Message-ID: <3D45740A.2000704@devzerog.com> Date: Mon, 29 Jul 2002 17:57:46 +0100 From: Mike Dewhirst User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-ipfw@freebsd.org Subject: divert a port to another ip Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, If I want to divert all requests on a certain port to another ip address and another port, e.g. 80.0.0.123:666 --> 192.10.10.5:22 what would be the rule? I thought: divert 8668 tcp from any 666 to 192.10.10.5 22 via xl0 8668 is the natd port (I think) - I have this rule that works: divert 8668 ip from any to any via xl1 But it doesn't seem to work. Any ideas? Also, what is a good online resource for ipfw? Thanks for any advice in advance! Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message