From owner-freebsd-questions Mon Oct 2 16: 3: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pop.hccnet.nl (pop.hccnet.nl [193.172.127.94]) by hub.freebsd.org (Postfix) with ESMTP id 4DB4037B502 for ; Mon, 2 Oct 2000 16:02:57 -0700 (PDT) Received: from parmenides.utp.net by pop.hccnet.nl via uds94-123.dial.hccnet.nl [193.173.123.94] with ESMTP id BAA24139 (8.8.5/1.13); Tue, 3 Oct 2000 01:02:52 +0200 (MET DST) Received: from localhost (janko@localhost) by parmenides.utp.net (8.9.3/8.9.3) with ESMTP id BAA01180; Tue, 3 Oct 2000 01:02:24 +0200 (CEST) (envelope-from janko@compuserve.com) X-Authentication-Warning: parmenides.utp.net: janko owned process doing -bs Date: Tue, 3 Oct 2000 01:02:24 +0200 (CEST) From: Janko van Roosmalen X-Sender: janko@parmenides.utp.net To: Louis Valentine Cc: freebsd-questions@FreeBSD.ORG Subject: Re: UDP Mapping w/ 1 Interface, how? In-Reply-To: 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 I never wandered into the world of Unix sockets programming. But redirection should not be too difficult. A daemon listening on udp port 20000, which sends the received UPD datagrams out again to user.domain.org:20000. Several weeks ago Richard Stevens' books on Unix network programming were mentioned as an excellent resource for this type of thing. ===Janko van Roosmalen - Vught - Netherlands=== On Sat, 30 Sep 2000, Louis Valentine wrote: > > Here's the scenario: > > I have a box running FreeBSD 4.1-RELEASE with a single interface (ethernet > card). I want to listen for UDP packets on a specified port, say 20000, and > redirect these packets to an external host, say user.domain.org:20000. I > initially tried doing this with NAT and ipfw, but after posting a message on > this list last week, it seems that the consensus is that this is not correct > method. So, my question now is, what _is_ the correct method for setting up > such a router? No need to give me step-by-step instructions, but if someone > could point me in the direction to look at I would greatly appreciate it. > > FYI: I have an Win98 box with WinGate on it right now that is currently > performing this exact same service (UDP Mapping with 1 NIC). For obvious > reasons I would rather have my BSD box handling this. ;) > > Thanks! > > -Louis Valentine To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message