Subject: Re: confused about IPNAT
To: None <netbsd-help@netbsd.org>
From: Quentin Garnier <cube@cubidou.net>
List: netbsd-help
Date: 03/10/2006 16:32:00
--GPy9sxSfmnk0etkM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 10, 2006 at 05:29:41PM +0100, theo borm wrote:
> vr0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.41.254 netmask 0xffffff00 broadcast 192.168.41.255
>=20
> rtk0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 176.20.197.22 netmask 0xffffff00 broadcast 176.20.197.255
>=20
> It has my providers' default gateway configured:
>=20
> 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 ..."

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--GPy9sxSfmnk0etkM
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBRBGb8NgoQloHrPnoAQLRMgf/Xmq0lSkW8YZ+QIZfr/uJ4Uy8UB4iRIjk
262c96xvRxvfE/TNfsUoZFAxyfxwq65CzSqFNM78h/IbteQuNmZPh9soW40Iw3Zh
ZOfIWA6SqHlVsB36kiYo7SjgmK+DYsLVwzy3lthxKEX4VxBN8KGMj6HiT/byo1lc
J+jI293K8QwIK8HwfMbjjC/Q1uQAgGGn56Z7mLVTrHFxLJMzQFFf5zsKOw21Up5N
2mg7XXimJAJJrJ4U4vIC/eFm49G8k9VoeEC5IqQ4BaM2JRmlmdNFS5/H9Dq6r9fG
iIcIp5oVEstWo+UUhyUzPQIn22mCQ3zrFS9sexEMzptpQ2Kc523AWA==
=irr9
-----END PGP SIGNATURE-----

--GPy9sxSfmnk0etkM--