Subject: Re: Port Redirector
To: Julio Merino <jmmv@hispabsd.org>
From: Michael Kukat <michael@unixiron.org>
List: netbsd-users
Date: 04/24/2002 17:03:46
Hi !

On Wed, 24 Apr 2002, Julio Merino wrote:
> > I wonder there is any port redirector program for netbsd.
> > Is ipf able to do the port redirecting instead of bimap?
>
> ipnat (a part of ipf) can do it. Just take a look at the man page and
> at the IPF-Howto.

Transparent HTTP proxy example in /etc/ipnat.conf here:

rdr fxp0 0/0        port 80   -> zeus port 80
(zeus is the IP-address of fxp0)

So something like

rdr fxp0 192.168.177.1/32 port 2000 -> 192.168.177.1 port 3000

should remap port 2000 to 3000 if your interface-ip is 192.168.177.1

...Michael

-- 
http://www.bsdfans.org/    Home network powered by: NetBSD OpenBSD FreeBSD IRIX
Solaris AIX HP-UX Tru64 MUNIX Ultrix VMS SINIX Dolphin_Unix OpenStep MacOS A/UX