Subject: Re: confused about IPNAT
To: Quentin Garnier <cube@cubidou.net>
From: theo borm <theo_nbsdhelp@borm.org>
List: netbsd-help
Date: 03/10/2006 17:58:11
[sound of head bashing into wall repeatedly]

Thanks a lot, that solved my problems.

regards,

Theo.

(yet another case of looking too hard and thereby missing the obvious; 
just spent half a day trying to figure out where and how my packets were 
going)


Quentin Garnier wrote:
> On Fri, Mar 10, 2006 at 05:29:41PM +0100, theo borm wrote:
> 
>>vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>>        inet 192.168.41.254 netmask 0xffffff00 broadcast 192.168.41.255
>>
>>rtk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>>        inet 176.20.197.22 netmask 0xffffff00 broadcast 176.20.197.255
>>
>>It has my providers' default gateway configured:
>>
>>Internet:
>>Destination       Gateway            Flags
>>default           176.20.197.254     UG
> 
> [...]
> 
>># ipnat -l
>>List of active MAP/Redirect filters:
>>map vr0 192.168.41.0/24 -> 176.20.197.22/32  portmap tcp/udp 20000:60000
>>map vr0 192.168.41.0/24 -> 176.20.197.22/32
> 
> 
> Your outgoing interface is rtk0, this is where NAT has to be performed.
> 
> I.e., "map rtk0 ..."
>