Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2005 22:37:35 +0200
From:      Emanuel Strobl <Emanuel.strobl@gmx.net>
To:        freebsd-questions@freebsd.org,<medvedev_denis@mail.ru>
Subject:   Re: NAT with two different alias addresses. Is it possible?
Message-ID:  <200505092237.37700@harrymail>
In-Reply-To: <E1DVEsM-000FFw-00.medvedev_denis-mail-ru@f31.mail.ru>
References:  <E1DVEsM-000FFw-00.medvedev_denis-mail-ru@f31.mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2205921.ci1ND2OrJP
Content-Type: text/plain;
  charset="windows-1251"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Am Montag, 9. Mai 2005 22:29 schrieb =C4=E5=ED=E8=F1 =CC=E5=E4=E2=E5=E4=E5=
=E2:
> Hello, everybody!
>
> I've just installed freeBSD 5.3 on my old computer to make it NAT
> router for internet sharing. The example is classical: two machines in
> my internal network and one IP from provider. Except one moment - my
> internet connection is established through PPPoE. So my unix has 3
> network interfaces:
>   rl0 - provider's network 10.10.54.107/16
>   tun0 - pppoe (through rl0 of course). Here my IP is 192.168.54.107
>   rl1 - my internal network 172.16.0.1/24 (do not laugh i've made it
>         for difference)
>
> NAT has alias address 192.168.54.107, and internet connection works
> perfectly. BUT there are a lot of resources in 10.10.54.107/16
> network I can't get access from my internal machines. I think address
> translation to 10.10.54.107 could help. Or not? Maybe it is possible
> to launch second NATd for this interface?

Hmm, I don't know if I understood correctly but you don't need to NAT if=20
you want to route from 172.16.0/24 to 10.10/16. Just NAT anything on tun0=20
from !192.168.54.107 to any. (And make sure gateway_enable=3D"YES", resp.=20
net.inet.ip.forwarding=3D1)
You don't tell us whether you use IPFW, IPF or PF, but at least for the=20
latter two you could define more than one NAT rule!

=2DHarry

--nextPart2205921.ci1ND2OrJP
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCf8oRBylq0S4AzzwRAoj1AJ9aZUpUnmzUo5vzpW80KFwP0Ko9HgCeINgn
0fKa6X02xKnsyQsQ8Nj/CtU=
=i68/
-----END PGP SIGNATURE-----

--nextPart2205921.ci1ND2OrJP--



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