Subject: Re: dumb port redirection
To: None <netbsd-users@netbsd.org>
From: Richard Grace <rgrace@aapt.com.au>
List: netbsd-users
Date: 06/03/2002 18:06:40
>>> Wojciech Puchar <wojtek@chylonia.3miasto.net> 3/06/2002 17:41:40 >>>

>   map fxp1 10.10.10.10/32 -> 1.2.3.4/32

That one is for outgoing, mapping your Private IP to a Public IP.
But, it doesn't do the port mapping now that I think of it, and I
don't really know how to do that.

>   rdr fxp1 1.2.3.4/32 port 1234 -> 10.10.10.10/32 port 1000 udp

That one does the incoming, from Public to Private.

> will
>=20
> rtr fxp0 10.10.10.10/32 port 10000 -> 1.2.3.4/32 port 1234 udp

*scratches head*

Yes, perhaps that is the way to do it.  The following lines load OK,
but I don't have a network set up to test it - you will have to try
it and hope for the best.

  rdr fxp1 1.2.3.4/32 port 1234 -> 10.10.10.10 port 10000
  rdr fxp0 10.10.10.10/32 port 10000 -> 1.2.3.4 port 1234

It's probably a question for the IP Filter mailing list.  Try a
search of the archives on www.false.net.

Richard.