Subject: Re: GNUtella + ipf + ipnat - port-forwarding?
To: Benjamin Walkenhorst <krylon@gmx.net>
From: Byron Servies <bservies@pacang.com>
List: netbsd-users
Date: 11/22/2003 08:51:00
On Nov 22, 2003, at 6:01 AM, Benjamin Walkenhorst wrote:
> This seems to be exactly what I want to do. I guess this has to be done
> in ipnat.conf. But how?
> I see from the man-page this is done with the rdr command. The problem
> is, since I'm using a dial-up connection, there's no way to know my
> external ip-adress in advance. Can I use a variable for my external
> ip-adress?
>
According to <http://www.obfuscation.org/ipf/ipf-howto.txt> , section
4.6, you should be able to do something like:
rdr xl0 0.0.0.0/0 port 21 -> 127.0.0.1 port 21
which will redirect any traffic on xl0 to the local machine. The
example in the docs is specifically for ftp, but if you replace the
localhost with your gnutella destination machine, it should be the
same.
Byron