From owner-freebsd-questions Tue Nov 21 21:53:46 2000 Delivered-To: freebsd-questions@freebsd.org Received: from proxy.outblaze.com (proxy.outblaze.com [202.77.223.120]) by hub.freebsd.org (Postfix) with SMTP id E68E137B4CF for ; Tue, 21 Nov 2000 21:53:42 -0800 (PST) Received: (qmail 88184 invoked from network); 22 Nov 2000 05:53:36 -0000 Received: from unknown (HELO yusufg.portal2.com) (202.77.181.217) by proxy.outblaze.com with SMTP; 22 Nov 2000 05:53:36 -0000 Received: (qmail 24458 invoked by uid 500); 22 Nov 2000 05:53:35 -0000 Date: 22 Nov 2000 05:53:35 -0000 Message-ID: <20001122055335.24457.qmail@yusufg.portal2.com> From: Yusuf Goolamabbas To: freebsd-questions@freebsd.org Subject: Port redirection using ipfw Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I am trying to solve the following problem. I have a machine with a single Ethernet interface. I would like incoming packets sent to a certain port on this machine to be redirected/forward to another machine (different IP/subnet) and a different port I compile a 4.2-stable kernel with the following options options IPFIREWALL #firewall options IPFIREWALL_FORWARD #enable transparent proxy support options IPDIVERT #divert sockets options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default For e.g if the machine is at 10.0.0.2 and I want to forward incoming packets at port 81 to 192.168.1.2 port 80. I wrote the following ipfw rule ipfw add fwd 192.168.1.2,80 log tcp from any to 10.0.0.2 81 However, this doesn't seem to work. Any ideas where I am going wrong or this is not possible with ipfw and I need some other toolchain for this Regards, Yusuf -- Yusuf Goolamabbas yusufg@outblaze.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message