From: Harald Welte Subject: Re: NAPT with several IP addresses? Date: Fri, 21 Nov 2003 11:44:04 +0100 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <20031121104404.GI29432@sunbeam.de.gnumonks.org> References: <3FBDDCA2.5030307@netlab.hut.fi> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zOcTNEe3AzgCmdo9" Cc: netfilter-devel Return-path: To: Emmanuel Guiton Content-Disposition: inline In-Reply-To: <3FBDDCA2.5030307@netlab.hut.fi> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org --zOcTNEe3AzgCmdo9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 21, 2003 at 11:36:34AM +0200, Emmanuel Guiton wrote: > Hei! >=20 > I was looking at the Linux Netfilter Hacking HOWTO and at the source=20 > code in ip_nat_proto_tcp.c and I realized that doing NAPT with several=20 > ports is not supported, am I right? of course it is supported. > I mean, in the HOWTO it's written "If IP_NAT_RANGE_PROTO_SPECIFIED isn't= =20 > set, it means that the user is doing NAT, not NAPT". Well, we could also= =20 > use a range of IP addresses and still perform NAPT, couldn't we? Still=20 > this possibility is not implemented, isn't it? I don't really understand what your point. IP_NAT_RANGE_PROTO_SPECIFIED just tells us if the give nat range has only a layer 3 (ip) range, or also layer 4 (tcp/udp/...) range. It doesn't tell you at all if you nat to a single address or to multiple addresses. A nat mapping is internally always represented as a nat range. Even if the range has only the size of one (i.e. a single ip address or port). > Emmanuel --=20 - Harald Welte http://www.netfilter.org/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie --zOcTNEe3AzgCmdo9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/vex0XaXGVTD0i/8RAiyPAJ4wWXPjIx9AdesrGk6P0xnNzCvXkQCgrgak Bk78B7FeVgznZLMCLzUhew4= =MqUY -----END PGP SIGNATURE----- --zOcTNEe3AzgCmdo9--