From owner-freebsd-questions Thu Mar 14 8:58:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by hub.freebsd.org (Postfix) with SMTP id 9248337B41A for ; Thu, 14 Mar 2002 08:58:38 -0800 (PST) Received: from bara?zani (AUTH login) at unknown (HELO moti) (bara?zani@12.27.148.78) by smtp.mail.vip.sc5.yahoo.com with SMTP; 14 Mar 2002 16:58:38 -0000 Message-ID: <0a7c01c1cb79$c776af50$fd6e34c6@moti> From: "Bara Zani" To: References: <3C90B7E0.2030906@gmx.net> Subject: Re: firewall, ppp and tun0 Date: Thu, 14 Mar 2002 11:12:52 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG it lloks like yoor firewall starts before ppp so there's no tun0 device yet . I usually put a restart script in the ppp.linkup file so that it runs after ppp and it's device is up . ----- Original Message ----- From: To: Sent: Thursday, March 14, 2002 9:46 AM Subject: firewall, ppp and tun0 > I want to setup a FreeBSD machine to the Internet via PPPoE and DSL. > This is no problem with the basic installation. But if I want to run it > with natd and a firewall it does not work. To connect to the ISP is no > problem, but I can not send and do not receive any data. > > My /etc/rc.conf has following entries: > > ifconfig ed0 up # start PPPoE-interface > gateway_enable="YES" > firewall_enable="YES" > firewall_script="name of firewall script" > ppp_nat="NO" > natd_enable="YES" > natd_interface="tun0" > natd_flags="-dynamic" > > As proposed in manpage natd(8) I have following firewall script: > > /sbin/ipfw -f flush > /sbin/ipfw add 50 divert natd all from any to any via tun0 > /sbin/ipfw add pass all from any to any > > At boot time I get these messages: > > ipfw : warning: interface " tun0 " does not exist (at > proceeding the firewall script) > Firewall rules loaded, starting divert daemons: natdnatd : > Unknown interface name tun0 > > > Can anybody tell what's wrong here? > > Thanks > > > Klaus > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message