From owner-freebsd-questions Thu Mar 14 6:46:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by hub.freebsd.org (Postfix) with SMTP id 866DD37B416 for ; Thu, 14 Mar 2002 06:46:11 -0800 (PST) Received: (qmail 23752 invoked by uid 0); 14 Mar 2002 14:46:09 -0000 Received: from p3ee022a3.dip.t-dialin.net (HELO gmx.net) (62.224.34.163) by mail.gmx.net (mp006-rz3) with SMTP; 14 Mar 2002 14:46:09 -0000 Message-ID: <3C90B7E0.2030906@gmx.net> Date: Thu, 14 Mar 2002 15:46:56 +0100 From: KHaeberlein@gmx.net User-Agent: Mozilla/5.0 (Windows; U; Win98; de-DE; CDonDemand; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: de-DE MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: firewall, ppp and tun0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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