Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2001 11:41:42 +0200
From:      "Karsten W. Rohrbach" <karsten@rohrbach.de>
To:        Chris Kesler <chris@pconline.com>
Cc:        freebsd-security@FreeBSD.ORG
Subject:   Re: ipnat.conf oddity
Message-ID:  <20010619114142.C30037@mail.webmonster.de>
In-Reply-To: <Pine.LNX.3.95.1010618132448.5151M-100000@newton.pconline.com>; from chris@pconline.com on Mon, Jun 18, 2001 at 01:34:13PM -0500
References:  <Pine.LNX.3.95.1010618132448.5151M-100000@newton.pconline.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--kVXhAStRUZ/+rrGn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Chris Kesler(chris@pconline.com)@2001.06.18 13:34:13 +0000:
> This is my current ipnat.conf file.
>=20
> map vx0 192.168.1.0/24 -> 0/32 portmap tcp/udp 1025:65000
> map vx0 192.168.1.0/24 -> 0/32
>=20
> Notice that the address to the right of the -> is 0.  I discovered by
> accident that this configuration works on my system.  I'm using ipnat and
> ipf on 4.3-RELEASE.
>=20
> I couldn't find any docs describing why this config works.  I have a cable
> modem connection, and the DHCP-assigned IP address changes once in a
> while. I wonder if this is a feature intended to allow me to continue to
> forward packets after my address changes.  Or is it a bad idea to run the
> box this way?

i think it's exactly what you are looking for with a dialup connection.
0/0 expands to "world", the whole net, and 0/32 expands to the interface
ip that might get configured dynamically, so this is probably what you
want, since your ip address can change when your lease expires in dhcp.

/k

--=20
> Large cats can be dangerous, but a little pussy never hurt anyone.
KR433/KR11-RIPE -- WebMonster Community Founder -- nGENn GmbH Senior Techie
http://www.webmonster.de/ -- ftp://ftp.webmonster.de/ -- http://www.ngenn.n=
et/
karsten&rohrbach.de -- alpha&ngenn.net -- alpha&scene.org -- catch@spam.de
GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE  DF22 3340 4F4E 2964 B=
F46

--kVXhAStRUZ/+rrGn
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7Lx5WM0BPTilkv0YRArnYAKCtwfOwOvwESNyVJSO+IekiyKhiSACdE+AF
xrBMieq7/UWDHwoVzN/a1vg=
=pM6Q
-----END PGP SIGNATURE-----

--kVXhAStRUZ/+rrGn--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010619114142.C30037>