Date: Thu, 14 Mar 2002 11:12:52 -0500 From: "Bara Zani" <bara_zani@yahoo.com> To: <freebsd-questions@freebsd.org> Subject: Re: firewall, ppp and tun0 Message-ID: <0a7c01c1cb79$c776af50$fd6e34c6@moti> References: <3C90B7E0.2030906@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <KHaeberlein@gmx.net> To: <freebsd-questions@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0a7c01c1cb79$c776af50$fd6e34c6>