From owner-freebsd-questions@FreeBSD.ORG Tue Aug 5 15:06:16 2003 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 54C9B37B401 for ; Tue, 5 Aug 2003 15:06:16 -0700 (PDT) Received: from mail-2.tiscali.it (mail-2.tiscali.it [195.130.225.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B82B43FDD for ; Tue, 5 Aug 2003 15:06:15 -0700 (PDT) (envelope-from fcasadei@inwind.it) Received: from goku.kasby (217.133.211.108) by mail-2.tiscali.it (6.7.019) id 3F210E44005B7DC0 for freebsd-questions@FreeBSD.org; Wed, 6 Aug 2003 00:06:13 +0200 Received: (qmail 3087 invoked by uid 1000); 5 Aug 2003 22:06:08 -0000 Date: Wed, 6 Aug 2003 00:06:08 +0200 From: Francesco Casadei To: freebsd-questions@FreeBSD.org Message-ID: <20030805220608.GA3046@goku.kasby> Mail-Followup-To: freebsd-questions@FreeBSD.org, Jacob Vennervald References: <3F2FC71A.8040104@proventum.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <3F2FC71A.8040104@proventum.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.8-STABLE i386 cc: Jacob Vennervald Subject: Re: NATD and PPP problem 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: Tue, 05 Aug 2003 22:06:16 -0000 --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 05, 2003 at 05:02:50PM +0200, Jacob Vennervald wrote: > Hi >=20 > I've installed a FreeBSD 4.8 machine, which I wanna use as a=20 > NAT/Router/Firewall. > I have setup the pppoe connection which works perfectly and then I've=20 > tried to setup the machine as a NAT Router by setting the following in=20 > the rc.conf: > firewall_enable=3D"YES" > firewall_type=3D"open" > natd_enable=3D"YES" > natd_interface=3D"tun0" > But when I restart the machine it gives me the following error: > "Firewall rules loaded, starting divert daemons: natdnatd: tun0: cannot= =20 > get interface address" >=20 > When I log in and type "ifconfig" I can also see that the tun0 interface= =20 > doesn't exist, but when I turn off the two natd settings in rc.conf and= =20 > reboot it does exist. >=20 > Can anybody help? >=20 > Cheers, > Jacob Vennervald >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > end of the original message Use the -dynamic flag if the tun0 interface is not configured when natd starts up. From natd(8) manpage: [...] -dynamic If the -n or -interface option is used, natd will monitor the routing socket for alterations to the interface passed. If the interface's IP number is changed, natd will dynamically alter its concept of the alias address. [...] Add the following line to /etc/rc.conf: natd_flags=3D"-dynamic" Even if you solved the problem, you may also want to try this solution. Francesco Casadei --=20 You can download my public key from http://digilander.libero.it/fcasadei/ or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...) Key fingerprint is: 1671 9A23 ACB4 520A E7EE 00B0 7EC3 375F 164E B17B --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/MCpPfsM3XxZOsXsRAvF0AKDyypsLJL1H6oPBzAdy7paaojOBgACgyl4M nhx6OUdtaPTgUMAxGUatjpI= =Z0R0 -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--