Subject: Re: port mapping with ipnat
To: None <port-i386@NetBSD.org>
From: Matthias Scheler <tron@zhadum.de>
List: port-i386
Date: 06/26/2005 12:26:30
In article <20050626002822.X79558@claw.ees.com>,
	"Christoper 'Han' Tucker" <tucker@claw.ees.com> writes:
> Could someone help me out and tell me how to enable port mapping on my
> NetBSD 2.0 box?

I assume that your are using IPFilter's NAT functionality.

> I'm trying to run "LinBolo" on a linux box i have, and I need to tell the
> netbsd router to forward udp port 50000 to go to the linux box's IP
> (192.168.1.4).

Add this to "ipnat.conf" on your NetBSD router ...

rdr <interface> 0/0 port 50000 -> 192.168.1.4 port 50000 udp

[<interface> should be the name of your external interface e.g. "pppoe0".]

.. and use "/etc/rc.d/ipnat restart" afterwards.

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/