From owner-freebsd-questions@FreeBSD.ORG Mon May 9 20:37:41 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD93416A4EA for ; Mon, 9 May 2005 20:37:41 +0000 (GMT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 73A1343D7F for ; Mon, 9 May 2005 20:37:40 +0000 (GMT) (envelope-from Emanuel.strobl@gmx.net) Received: (qmail invoked by alias); 09 May 2005 20:37:38 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) [62.245.232.135] by mail.gmx.net (mp014) with SMTP; 09 May 2005 22:37:38 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org, Date: Mon, 9 May 2005 22:37:35 +0200 User-Agent: KMail/1.8 References: In-Reply-To: X-Birthday: Oct. 6th 1972 X-CelPhone: +49 (0) 173 9967781 X-Tel: +49 (0) 89 18947781 X-Country: Germany X-Address: Munich, 80686 X-OS: FreeBSD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2205921.ci1ND2OrJP"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505092237.37700@harrymail> X-Y-GMX-Trusted: 0 Subject: Re: NAT with two different alias addresses. Is it possible? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 20:37:42 -0000 --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--