Date: Wed, 8 Sep 1999 20:06:24 -0400 (EDT) From: "Zips.Net El Directorio de Venezuela y Miami." <zips@zips.net> To: Peter Kok <cckok00@stlinux.ouhk.edu.hk> Cc: "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG> Subject: Re: help for dns Message-ID: <Pine.BSF.4.10.9909082001470.34731-100000@justice.zips.net> In-Reply-To: <37D6F5E0.93B8E518@stlinux.ouhk.edu.hk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9909082001470.34731-100000>
