From owner-freebsd-questions Sun Sep 24 21:42:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 9CD6537B422 for ; Sun, 24 Sep 2000 21:42:12 -0700 (PDT) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sun, 24 Sep 2000 21:41:00 -0700 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id e8P4g6j61787; Sun, 24 Sep 2000 21:42:06 -0700 (PDT) (envelope-from cjc) Date: Sun, 24 Sep 2000 21:42:05 -0700 From: "Crist J . Clark" To: Ben Schumacher Cc: Louis Valentine , freebsd-questions@FreeBSD.ORG Subject: Re: Routing UDP Packets...? Message-ID: <20000924214205.E59015@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <000a01c025b0$92716270$382bd080@louisv> <5.0.0.25.2.20000923231412.01f65380@pop.henshaw.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <5.0.0.25.2.20000923231412.01f65380@pop.henshaw.net>; from ben@henshaw.net on Sat, Sep 23, 2000 at 11:21:43PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Sep 23, 2000 at 11:21:43PM -0600, Ben Schumacher wrote: > At 03:49 PM 9/23/2000 -0700, Louis Valentine wrote: > > Hey, I'm trying to setup my FreeBSD box with 4.1-RELEASE to act as a > > UDP router. I only have one interface, my ethernet card, and what I want > > to do is listen for UDP packets on a port, say 20000, and redirect these > > packets to some destination, say my.host.com:20000. So far I have: > > > >1. Recompiled the kernel with the IPFIREWALL and IPDIVERT options. > >2. Set firewall_enable=YES, firewall_type=OPEN, gateway_enable=YES, > >natd_enable=YES, natd_interface=de0 in rc.conf. > >3. Added natd to /etc/services. > >3. Started natd with "-redirect_port udp my.host.com:20000 20000 -n de0". > > > > I have then tried sending a UDP packet to the machine at that port, but > > it doesn't seem to be listening properly. I tried running natd with the > > -verbose option to debug it, but it never shows any output. Please help! > > Louis- > > Trying compiling the kernel with IPFIREWALL_FORWARD instead of > IPDIVERT. Then add a firewall rule that forwards the packets. Ex: > > ipfw add fwd my.host.com,20000 udp from any to local.ip.address 20000 > > I'm not 100% certain that this will work, but I believe it will. No it won't. That is not what ipfw forwarding does. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message