Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 1998 13:06:43 -0700 (PDT)
From:      Doug White <>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Problem with dial-out gateway - ppp
Message-ID:  <>
In-Reply-To: <000101bdbf0c$6da84920$ om>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

On Mon, 3 Aug 1998 wrote:

> I have set up a dialout gateway using freebsd 2.2.6, but I am having some
> problems that I don't seem to be able to solve.
> Here is the setup:
> 	Freebsd 2.2.6 gateway with:
> 1 network card configured as
> 1 internal modem 56K -  /dev/cuaa1   (com2)
> 	Several Win95 computers with tcp/ip addresses set as follows:
> 		...
> 		Default gateway is set to, and dns is set to the ISP's DNS
> servers.  This configuration works fine.
> I am able to ping the win95 boxes from the freebsd box, and I am able to
> ping the freebsd box from all win95 boxes.
> The goal is to allow internet access to all win95 computers via the freebsd
> gateway machine.  When it is working, I am able to ping all internet
> addresses from the win95 boxes (ie. ping works fine), but I
> cannot ping the same internet address from the freebsd gateway box.

Routing difficulty, perhaps?

> I would like to establish a ppp connection to the ISP, and keep the
> connection alive for 10 mins after the last data is transmitted (to speed up
> access for users who leave their desks for a few minutes, and then come back
> to continue browsing or checking/sending email).  It seems to me like the
> system dials up the ISP as soon as the connection is lost.  This seems
> wasteful.

Are you running ppp in -ddial or -auto mode?

> Also, I often (once or twice daily) have to shutdown -r now and then during
> the reboot, turn of the power for a few seconds to reset the modem.  This is
> also a pain in the ass, as I am not always there to reset the machine for my
> users.  The system works fine for our application when it works, but it
> locks up too often.

This is why External Modems are Good.

> On the bsd gateway, running ifconfig -a yields the following result:
> 		inet netmask 0xffffff00 broadcast
> 		ether 00:c0:f0:30:86:f6
> 		media: autoselect (10baseT/UTP) status: active
> 	lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST>mtu 1500
> 	tun0: flags=8051 <UP,POINTOPOINT,RUNNING,MULTICAST>mtu 1500
> 		inet --> netmask 0xffffff00
> 	sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST>mtu 552
> 	ppp0: flags= 8010<POINTOPOINT,MULTICAST>mtu 1500
> 	lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST>mtu 16384
> 		inet netmask 0xff000000
> When I run netstat on the bsd-gateway, the first two lines displayed are as
> follows:
> 	tcp	0	0	ESTABLISHED
> 	tcp	0	0	ESTABLISHED
> I am telnetted into the computer from, and was also telnetted
> into the computer from  The freebsd boxes ppp ip address was
>  That connection has been lost for at least an hour now,
> but netstat still says that it is established.

It'll die eventually, probably the next time you try to telnet to that

I'm interested in seeing the output of netstat -rn...

Doug White                              | University of Oregon  
Internet:    | Residence Networking Assistant    | Computer Science Major

To Unsubscribe: send mail to
with "unsubscribe freebsd-questions" in the body of the message

Want to link to this message? Use this URL: <>