Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 1998 18:29:29 -0400 (EDT)
From:      "Stan Brown" <stanb@awod.com>
To:        freebsd-questions@FreeBSD.ORG (Free BSD Questions list)
Subject:   ppp and routeing table help, please.
Message-ID:  <199804272229.PAA26223@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
	I am a little over my head here, and could use some assistance, please.

	I have a  home network that is happily working and gatewayed to the
	internet using a FreeBSD machine and ppp. This machine of course is the
	default gateway for all of the boxes on this network.

	I have another box on this network that I can dial inot and start ppp.
	I do ths from a FreebSDS lpatop. This works great and I can access all
	of my home network, and on out to the world like this.

	Now what I am trying to do is use theis laptop as a temporary gateway
	for a small network at work. I have the laptop configures so that it
	becomes an active member of the work network, and then I can still dial
	out from it to my home network.

	At this point in time I add a default route on one of the machiens on
	the wokr network that points to the laptop. traceroute shows packests
	bound for my home network going to it, but no furehter. 

	Here are the ppp config files:

	One the machine on the home network:


#################################################################
#
#  	PPP  Sample Configuration File
#
#	  Written by Toshiharu OHNO
#
#################################################################
#
# Default setup. Executed always when PPP is invoked.
#
default:
 set device /dev/tty01
 set speed 38400
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIR TIMEOUT 5 \"\" AT OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
simplesite:
 set phone 12345678
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 set timeout 120
#
ondemand:
 set phone 1234567
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 set timeout 120
 set ifaddr 192.244.185.226 192.244.176.44
 add 0 255.255.255.0 192.244.176.44
users:
 disable pap
 enable proxy
# enable chap
# set authname ppp-server
# set ifaddr 192.244.176.44 292.244.184.31
# set ifaddr 192.244.176.44 192.244.184.31
 set ifaddr 192.168.0.1 192.168.1.1
 route add net 170.85.106. 205.159.77.240 1
# Really need to change this to a differnt clause, and modify
# script /usr/local/bin/spp
# to be invoke diferntly when the call is from westvaco
# since this route *only* applies under those circumstances

	On the laptop:


#################################################################
#
#  	PPP  Sample Configuration File
#
#	  Written by Toshiharu OHNO
#
# $Id: ppp.conf.sample,v 1.3.4.3 1996/06/17 09:17:50 jkh Exp $
#
#################################################################
#
# Default setup. Executed always when PPP is invoked.
#
default:
 set device /dev/cuaa1
 set speed 38400
 set parity even
 allow users *
 disable lqr
 deny lqr
# set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 4 \"\" \\dATZ OK ATX7 OK ATS37=11 OK ATS7=180 OK ATN0 OK ATDT\\T TIMEOUT 180 CONNECT"
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 120 \"\" \\dATDT\\T TIMEOUT 120 CONNECT"
 set log phase lcp iccp ccp chat
 set redial 1
grizzly:
 set timeout 120
 set phone "9w8864919"
 set parity even
 set login "TIMEOUT 10 gin:-\\r-gin: XXXX word: XXXXXXX tan spp"
 set timeout 6000
 deny chap
 set timeout 6000
 set ifaddr 127.1.1.1/0 127.1.1.2/0
 delete all
 add 0 0 HISADR
ppp_grizzly:
 set timeout 120
 set phone "8864919"
 set parity even
 set login "TIMEOUT 10 gin:-\\r-gin: ppp word: ppp_test"
 set timeout 6000
 deny chap
 set timeout 6000
 delete all
 set ifaddr 127.1.1.1/0 127.1.1.2/0
 add 0 0 127.1.1.2

 Here is the script that is invoked on the incoming machine on the home

ppp -direct users
 network:

	I have a static route on the FreebSD machine that serves as the
	internet gateway so that I don;t have to add the incoming ppp machine
	to all the machines on the home network routeing tablees. It looks like
	this:

	192.168.1.1        205.159.77.240     UGHS        0      240       ed0

	What else do I need?

	Thanks for the help on this.



-- 
Stan Brown     stanb@netcom.com                                    770-996-6955
Factory Automation Systems
Atlanta Ga.
-- 
Look, look, see Windows 95.  Buy, lemmings, buy!   
Pay no attention to that cliff ahead...            Henry Spencer
(c) 1998 Stan Brown.  Redistribution via the Microsoft Network is prohibited.

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?199804272229.PAA26223>