From owner-freebsd-questions@FreeBSD.ORG Tue Aug 5 12:26:26 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 EB5AD37B408 for ; Tue, 5 Aug 2003 12:26:26 -0700 (PDT) Received: from pc-80-195-57-71-ll.blueyonder.co.uk (pc-80-195-57-71-ll.blueyonder.co.uk [80.195.57.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id B756D43FAF for ; Tue, 5 Aug 2003 12:26:25 -0700 (PDT) (envelope-from andrew@cream.org) Received: from spatula.home (spatula.home [192.168.0.4]) by gateway.home (Postfix) with ESMTP id 2AFE3E7; Tue, 5 Aug 2003 20:26:23 +0100 (BST) From: Andrew Boothman To: Jacob Vennervald Date: Tue, 5 Aug 2003 20:26:31 +0100 User-Agent: KMail/1.5.2 References: <3F2FC71A.8040104@proventum.net> In-Reply-To: <3F2FC71A.8040104@proventum.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308052026.31670.andrew@cream.org> cc: freebsd-questions@FreeBSD.org 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 19:26:27 -0000 On Tuesday 05 August 2003 4:02 pm, Jacob Vennervald wrote: > I have setup the pppoe connection which works perfectly and then I've > tried to setup the machine as a NAT Router by setting the following in > the rc.conf: > firewall_enable="YES" > firewall_type="open" > natd_enable="YES" > natd_interface="tun0" > But when I restart the machine it gives me the following error: > "Firewall rules loaded, starting divert daemons: natdnatd: tun0: cannot > get interface address" Hmmm.... Strange..... I've got 4.8 doing what you want, except using an xl0 instead of a tun0 as the natd_interface because I get an ethernet port on my cable modem. Do you have ifconfig_tun0 = "DHCP" or something simiar in your rc.conf, or does pppoe set things up differently? How is pppoe configured to start in your setup? Can we see a more complete rc.conf (you can remove any specific addresses or other incriminating evidance ;) I can't say I have any experience with your problem - but hopefully we can shed some light on it. Cheers. Andrew