Subject: Redirecting one IP to an internal host (IPNAT, IPF)
To: None <netbsd-help@netbsd.org>
From: David Wetzel <dave@turbocat.de>
List: netbsd-help
Date: 03/21/2001 20:13:44
Hi folks,

I have an NetBSD 1.5 box with this external interface:
inet 62.159.114.107 netmask 0xfffffff8
inet alias 62.159.114.106 netmask 0xfffffff8 broadcast 62.159.114.111

There is an NAT rule that redirects ftp to anonther (internal) computer:

# ftp from the internet to the hp
rdr rtk1 62.159.114.107/29 port 20 -> 129.1.1.1 port 20 tcp
rdr rtk1 62.159.114.107/29 port 21 -> 129.1.1.1 port 21 tcp

That works. But I want this redirect only for 62.159.114.107 and NOT for 62.159.114.106.

Is there any way to do this?

Thanks in advance.

BTW: 129.1.1.1 is not internal according to RFC 1918 but we did not set the net up...

---
   _  _
 _(_)(_)_  David Wetzel, Turbocat's Development,
(_) __ (_) Buchhorster Strasse 23, D-16567 Muehlenbeck/Berlin, FRG,
  _/  \_   Fax +49 33056 82835 NeXTmail dave@turbocat.de
 (______)  http://www.turbocat.de/
           DEVELOPMENT * CONSULTING * ADMINISTRATION