From owner-freebsd-questions Thu Jul 15 18:23:43 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alicia.nttmcl.com (alicia.nttmcl.com [216.69.69.10]) by hub.freebsd.org (Postfix) with ESMTP id C3FE314D56 for ; Thu, 15 Jul 1999 18:23:39 -0700 (PDT) (envelope-from norman@nttmcl.com) Received: from localhost by alicia.nttmcl.com (8.8.5/3.5W(96/10/22)) id SAA11080 for ; Thu, 15 Jul 1999 18:23:32 -0700 (PDT) Date: Thu, 15 Jul 1999 18:23:32 -0700 (PDT) From: Norman Nie To: freebsd-questions@freebsd.org Subject: ipfw fwd not working Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I'm having a problem with ipfw's fwd feature. Would you please help me. My freebsd has 3 NIC and is configed as below: |------| | Hub |---| ServerA --| | |fxp2|-------| |------| 10.0.11.2 |______| |----|FreeBSD| |Router| | | 3.2 |----| A |---|Internal |----| |fxp0|--|---| |network | |_______| | |192.168.11.2 etc |------| |fxp1 | | |Router|---| | ServerB ---| B | | 10.0.10.2 |______|------------------------| I want to redirect to ServerB all the packets going to ServerA if the source address of the packets are from the internal network. My ipfw rule is: 50 fwd [ServerB] log all from 192.168.11.2 to [ServerA] via fxp0 The problem is that when I try to ping from 192.168.11.2 to ServerA, the packet still reaches ServerA, not ServerB, although the above rule is invoked according to the log. So seems to me fwd feature isn't working in ipfw. Thank you very much in advance for any help. Please email me at norman@nttmcl.com as I don't subscribe to the mailing list. Norman Nie norman@nttmcl.com NTT Multimedia Communications Lab To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message