From owner-freebsd-questions Wed Sep 8 17: 3:28 1999 Delivered-To: freebsd-questions@freebsd.org Received: from justice.zips.net (justice.zips.net [207.234.219.219]) by hub.freebsd.org (Postfix) with ESMTP id 7972A15101 for ; Wed, 8 Sep 1999 17:03:21 -0700 (PDT) (envelope-from zips@zips.net) Received: from localhost (zips@localhost) by justice.zips.net (8.9.3/8.9.3) with ESMTP id UAA34859; Wed, 8 Sep 1999 20:06:24 -0400 (EDT) (envelope-from zips@zips.net) Date: Wed, 8 Sep 1999 20:06:24 -0400 (EDT) From: "Zips.Net El Directorio de Venezuela y Miami." To: Peter Kok Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: help for dns In-Reply-To: <37D6F5E0.93B8E518@stlinux.ouhk.edu.hk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You need natd running in your freebsd machine ! add this entry to your ppp.linkup file !bg /bin/sh /etc/ppp/natd.conf then make this file natd.conf /usr/sbin/natd -l -dynamic -interface tun0 /sbin/ipfw -f flush /sbin/ipfw add divert natd all from any to any via tun0 /sbin/ipfw add pass all from any to any Also you need another entry for your ppp.linkdown !bg /bin/sh /etc/ppp/ip.down and the file ip.down /bin/ps -auxw |grep natd|awk '{print $2}'|xargs kill -9 That will do it for you Peter ! ;-) On Thu, 9 Sep 1999, Peter Kok wrote: > Hello all > > I tried many times but i still not know what is the problem > my win98 use freebsd to connect internet, but fail > and freebsd use dial up (ppp). > > > ------------------------------------ > freebsd: > > > > netstat -r, it displays > > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif > Expire > default max92-2 UGSc 1 82 > tun0 > 10 link#1 UC 0 0 > 10.0.0.2 0:60:8:68:46:ce UHLW 0 9 vx0 > 970 > localhost localhost UH 1 84 > lo0 > max92-2 ip92-237 UH 2 0 > tun0 > > > > > --------------------------------------------------------------------------- > > ------- > > windows98 > > > C:\WIN98>netstat -r > > Route Table > > Active Routes: > > Network Address Netmask Gateway Address Interface > Metric > 0.0.0.0 0.0.0.0 10.0.0.1 > 10.0.0.2 1 > 10.0.0.0 255.0.0.0 10.0.0.2 > 10.0.0.2 1 > 10.0.0.2 255.255.255.255 127.0.0.1 > 127.0.0.1 1 > 10.255.255.255 255.255.255.255 10.0.0.2 > 10.0.0.2 1 > 127.0.0.0 255.0.0.0 127.0.0.1 > 127.0.0.1 1 > 224.0.0.0 224.0.0.0 10.0.0.2 > 10.0.0.2 1 > 255.255.255.255 255.255.255.255 10.0.0.2 > 0.0.0.0 1 > > Active Connections > > Proto Local Address Foreign Address State > > C:\WIN98> > --------------------------------------------------------------------------- > > -------- > > > > > thank you > regards > Peter > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message