Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 1998 13:06:43 -0700 (PDT)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        charlespeters@chickenbean.com
Cc:        questions@FreeBSD.ORG
Subject:   Re: Problem with dial-out gateway - ppp
Message-ID:  <Pine.BSF.4.00.9808061303110.28098-100000@resnet.uoregon.edu>
In-Reply-To: <000101bdbf0c$6da84920$20710418@ci1000971-c.sptnbrg1.sc.home.c om>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 3 Aug 1998 charlespeters@chickenbean.com 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 192.168.0.1
> 1 internal modem 56K -  /dev/cuaa1   (com2)
> 
> 	Several Win95 computers with tcp/ip addresses set as follows:
> 		192.168.0.43
> 		192.168.0.40
> 		192.168.0.48
> 		...
> 
> 		Default gateway is set to 192.168.0.1, 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 ftp.cdrom.com 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:
> 
> 	de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> 		inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
> 		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 206.139.129.158 --> 206.139.129.5 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 127.0.0.1 netmask 0xff000000
> 
> 
> When I run netstat on the bsd-gateway, the first two lines displayed are as
> follows:
> 
> 	tcp	0	0	192.168.0.1.telnet		192.168.0.42.1039	ESTABLISHED
> 	tcp	0	0	206.139.129.141.telnet		24.4.113.32.1025	ESTABLISHED
> 
> I am telnetted into the computer from 192.168.0.48, and was also telnetted
> into the computer from 24.4.113.32.  The freebsd boxes ppp ip address was
> 206.139.129.141.  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
box.

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

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major



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.00.9808061303110.28098-100000>