From owner-freebsd-security Tue Jun 19 2:41:26 2001 Delivered-To: freebsd-security@freebsd.org Received: from mail.webmonster.de (datasink.webmonster.de [194.162.162.209]) by hub.freebsd.org (Postfix) with SMTP id BAE9537B403 for ; Tue, 19 Jun 2001 02:41:22 -0700 (PDT) (envelope-from karsten@rohrbach.de) Received: (qmail 30794 invoked by uid 1000); 19 Jun 2001 09:41:42 -0000 Date: Tue, 19 Jun 2001 11:41:42 +0200 From: "Karsten W. Rohrbach" To: Chris Kesler Cc: freebsd-security@FreeBSD.ORG Subject: Re: ipnat.conf oddity Message-ID: <20010619114142.C30037@mail.webmonster.de> Mail-Followup-To: "Karsten W. Rohrbach" , Chris Kesler , freebsd-security@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="kVXhAStRUZ/+rrGn" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from chris@pconline.com on Mon, Jun 18, 2001 at 01:34:13PM -0500 X-Arbitrary-Number-Of-The-Day: 42 X-URL: http://www.webmonster.de/ X-Disclaimer: My opinions do not necessarily represent those of my employer Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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