From owner-freebsd-questions@FreeBSD.ORG Tue Aug 5 13:09:34 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 C476E37B401 for ; Tue, 5 Aug 2003 13:09:34 -0700 (PDT) Received: from relay.webpartner.dk (relay.webpartner.dk [195.184.96.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id A55BE43F85 for ; Tue, 5 Aug 2003 13:09:33 -0700 (PDT) (envelope-from jvennervald@proventum.net) Received: from proventum.net (unknown [213.150.63.92]) by relay.webpartner.dk (Postfix) with ESMTP id 8AA1ECA09D for ; Tue, 5 Aug 2003 22:09:31 +0200 (CEST) Message-ID: <3F300F0A.5060203@proventum.net> Date: Tue, 05 Aug 2003 22:09:46 +0200 From: Jacob Vennervald User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org References: <3F2FC71A.8040104@proventum.net> <200308052026.31670.andrew@cream.org> <3F3007D0.1060908@proventum.net> In-Reply-To: <3F3007D0.1060908@proventum.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 20:09:35 -0000 Hi again I finally got it working by specifying the static ip of my external interface in the natd_interface instead of tun0. Hope somebody else finds this helpfull. Cheers, Jacob Vennervald Jacob Vennervald wrote: > Hi > > Here is the ppp.conf file: > default: > set log Phase tun command # you can add more detailed logging > if you wish > set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0 > > webpartner: > set device PPPoE:xl0 > set authname XXXXXXXX > set authkey XXXXXXXX > set dial > set login > add default HISADDR > > > Here's the complete rc.conf file: > > # Setup PPPoE for internet connection > ppp_enable="YES" > ppp_mode="ddial" > ppp_nat="NO" # if you want to enable nat for your local network, > otherwise NO > ppp_profile="webpartner" > > # Setup NAT on external interface > firewall_enable="YES" > firewall_type="open" > gateway_enable="YES" > natd_enable="YES" > natd_interface="tun0" > > # Setup internal interface > ifconfig_fxp0="inet 10.0.0.1 netmask 255.255.255.0" > > # Set the hostname of the server > hostname="myhost.mydomain.com" > > # Extra network settings > inetd_enable="NO" > kern_securelevel_enable="NO" > nfs_reserved_port_only="YES" > sendmail_enable="NO" > sshd_enable="YES" > > # Enable linux binaries > linux_enable="YES" > > # Localization > font8x8="iso-8x8" > font8x14="iso-8x14" > font8x16="iso-8x16" > scrnmap="NO" > keymap="danish.iso" > > # Enable mouse daemon > moused_enable="YES" > > Andrew Boothman wrote: > >> 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 >> >> >> >> > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >