From owner-freebsd-questions Mon Jul 17 12: 0:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.techline.com (mx1.techline.com [204.201.36.16]) by hub.freebsd.org (Postfix) with ESMTP id 3F38E37BE46 for ; Mon, 17 Jul 2000 12:00:40 -0700 (PDT) (envelope-from ghp@techline.com) Received: from ghp0535.techline.com (ghp-gw.techline.com [204.201.38.80]) by mx1.techline.com (8.8.7/8.8.7) with ESMTP id MAA00048 for ; Mon, 17 Jul 2000 12:00:20 -0700 Message-Id: <4.3.2.7.2.20000717102628.00e03960@mail.techline.com> Date: Mon, 17 Jul 2000 11:07:12 -0700 To: freebsd-questions@freebsd.org From: Ben Hohman Subject: modem/ppp config problem Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_244416161==_.ALT" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --=====================_244416161==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hello, I'm trying to setup a BSD box as a gateway to work for my home network. I've gotten the ethernet network up and running (except for the stupid 98 box). The procedure I'm using is from the Tutorials section of FreeBSD.org http://www.freebsd.org/tutorials/ppp/index.html Pedantic PPP Primer. I copied the ppp directory to a backup and started editing the files to follow the format from the Primer. Here is rc.conf #This file now contains just the overrides from /etc/defaults/rc.conf # please make all changes to this file. # -- sysinstall generated deltas -- # saver="logo" ifconfig_fxp0="inet 192.168.1.1 netmask 255.255.255.0" hostname="hermes.jbenh.com" gateway_enable="YES" moused_port="/dev/psm0" moused_type="intellimouse" moused_enable="YES" font8x8="iso-8x8" font8x14="iso-8x14" font8x16="iso-8x16" keyrate="fast" keymap="us.iso" ifconfig_ppp0="inet 10.62.254.157 netmask 255.255.240.0" Here is ppp.conf ################################################################# # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by wself@cdrom.com # # $FreeBSD: src/etc/ppp/ppp.conf,v 1.1.2.2 1999/08/29 14:19:56 peter Exp $ ################################################################# # # Make sure that "device" references the correct serial port # for your modem. (cuaa0 = COM1, cuaa1 = COM2) default: set device /dev/cuaa0 set speed 57600 disable pred1 deny pred1 disable lqr deny lqr set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT" set redial 3 10 ################################################################ # # For interactive mode use this configuration: # # Invoke with `ppp -alias interactive` # ################################################################ interactive: set authname my_username set authkey my_password set phone 538-5649 set timeout 300 set openmode active accept chap #set ifaddr 127.1.1.1 127.2.2.2 255.255.240.0 ################################################################ # # For demand-dial (automatic) mode we'll use this configuration: # # Invoke with: 'ppp -auto -alias demand' # ################################################################ demand: set authname my_username set authkey my_password set phone 538-5649 set timeout 300 set openmode active accept chap set ifaddr 10.62.254.157 127.2.2.2 255.255.240.0 add 0 0 127.2.2.2 #install: # set ifaddr 10.62.254.157 10.62.254.252 # set timeout 300 # enable dns # set log local phase Here is ppp.linkup #########################################################################= # PPP Link Up File ('/etc/ppp/ppp.linkup') # # This file is checked after PPP establishes a network connection. # # This file is searched in the following order. # # 1) First, the IP address assigned to us is searched and # the associated command(s) are executed. # # 2) If the IP Address is not found, then the label name specified at # PPP startup time is searched and the associated command(s) # are executed. # # 3) If neither of the above are found then commands under the label # 'MYADDR:' are executed. #########################################################################= # This section is used for the "demand" configuration in # /etc/ppp/ppp.conf: demand: delete ALL add 0 0 HISADDR # All other configurations in /etc/ppp/ppp.conf use this: MYADDR: add 0 0 HISADDR ######################################################################## # Original Settings #MYADDR: # delete ALL # add 0 0 HISADDR Here is ppp.log Jul 16 18:35:07 hermes ppp[392]: Phase: PPP Started (interactive mode). Jul 16 18:35:15 hermes ppp[392]: Phase: bundle: Establish Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: closed -> opening Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: Connected! Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: opening -> dial Jul 16 18:35:15 hermes ppp[392]: Phase: Phone: 538-5649 Jul 16 18:35:20 hermes ppp[392]: Warning: Chat script failed Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: dial -> hangup Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Disconnected! Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out Jul 16 18:35:20 hermes ppp[392]: Phase: total 0 bytes/sec, peak 0 bytes/sec on Sun Jul 16 18:35:20 2000 Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: hangup -> opening Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Enter pause (3) for redialing. Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: Redial timer expired. Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: Connected! Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: opening -> dial Jul 16 18:35:23 hermes ppp[392]: Phase: Phone: 538-5649 Jul 16 18:35:28 hermes ppp[392]: Warning: Chat script failed Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: dial -> hangup Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Disconnected! Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out Jul 16 18:35:28 hermes ppp[392]: Phase: total 0 bytes/sec, peak 0 bytes/sec on Sun Jul 16 18:35:28 2000 Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: hangup -> opening Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Enter pause (3) for redialing. Jul 16 18:35:31 hermes ppp[392]: Phase: Caught signal 2, abort connection(s) Jul 16 18:35:31 hermes ppp[392]: Phase: deflink: Disconnected! Jul 16 18:35:31 hermes ppp[392]: Phase: deflink: opening -> closed Jul 16 18:35:31 hermes ppp[392]: Phase: bundle: Dead *** When I run ppp I get "Chat script failed". I I can enter terminal mode and take the model off hook, but I don't get a dial tone. I get a connected message, but no login prompt and "ppp" never changes to reflect its status. If I type atv1, I still get nothing in terms of volume. So I went into the FAQs on FreeBSD.org. I added the following to my remote file # Generic entry tip115200|Dial any phone number at 115200 bps:\ :dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du: tip57600|Dial any phone number at 57600 bps:\ :dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du: When I type 'tip -57600 my_#' f I get an error (which I didn't copy down), but is something like "unknown hayes type" The modem is an external Supra Express 57600. When I connect it to my Win98 box it dials fine. First off, do the entries in ppp.conf have a specific order? Should I use cu instead of tip in my remote file? Do I have to make cuaa0? If so where do I go to get the source (which CD in the 4 box FreeBSD set). Any other thoughts/suggestions? Ben Grays Harbor Paper, L.P. 801 23rd Street Hoquiam, Washington 98550 360.538.5713 (direct) 360.538.5716 (fax) contact: Ben Hohman ---------- I have a PGP public key (key ID 0x6F13E812). For more info http://www.pgp.com --=====================_244416161==_.ALT Content-Type: text/html; charset="us-ascii" Hello,

I'm trying to setup a BSD box as a gateway to work for my home network.  I've gotten the ethernet network up and running (except for the stupid 98 box).  The procedure I'm using is from the Tutorials section of FreeBSD.org http://www.freebsd.org/tutorials/ppp/index.html  Pedantic PPP Primer.

I copied the ppp directory to a backup and started editing the files to follow the format from the Primer.

Here is rc.conf

#This file now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to this file.

# -- sysinstall generated deltas -- #
saver="logo"
ifconfig_fxp0="inet 192.168.1.1  netmask 255.255.255.0"
hostname="hermes.jbenh.com"
gateway_enable="YES"
moused_port="/dev/psm0"
moused_type="intellimouse"
moused_enable="YES"
font8x8="iso-8x8"
font8x14="iso-8x14"
font8x16="iso-8x16"
keyrate="fast"
keymap="us.iso"
ifconfig_ppp0="inet 10.62.254.157  netmask 255.255.240.0"

Here is ppp.conf

#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.1.2.2 1999/08/29 14:19:56 peter Exp $
#################################################################
 #
 # Make sure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)

default:
 set device /dev/cuaa0
 set speed 57600
 disable pred1
 deny pred1
 disable lqr
 deny lqr
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT"
 set redial 3 10
   
 ################################################################
#
# For interactive mode use this configuration:
#
# Invoke with `ppp -alias interactive`
#
################################################################

interactive:
 set authname my_username
 set authkey my_password
 set phone 538-5649
 set timeout 300
 set openmode active
 accept chap
 #set ifaddr 127.1.1.1 127.2.2.2 255.255.240.0

################################################################
#
# For demand-dial (automatic) mode we'll use this configuration:
#
# Invoke with: 'ppp -auto -alias demand'
#
################################################################

demand:
 set authname my_username
 set authkey my_password
 set phone 538-5649
 set timeout 300
 set openmode active
 accept chap
 set ifaddr 10.62.254.157 127.2.2.2  255.255.240.0
 add 0 0 127.2.2.2

#install:
# set ifaddr 10.62.254.157 10.62.254.252
# set timeout 300
# enable dns
# set log local phase

Here is ppp.linkup

#########################################################################=
# PPP Link Up File ('/etc/ppp/ppp.linkup')
#
#  This file is checked after PPP establishes a network connection.
#
#  This file is searched in the following order.
#
#  1) First, the IP address assigned to us is searched and
#     the associated command(s) are executed.
#
#  2) If the IP Address is not found, then the label name specified at
#     PPP startup time is searched and the associated command(s)
#     are executed.
#
#  3) If neither of the above are found then commands under the label
#     'MYADDR:' are executed.
#########################################################################=

# This section is used for the "demand" configuration in
#   /etc/ppp/ppp.conf:

demand:
delete ALL
add 0 0 HISADDR

# All other configurations in /etc/ppp/ppp.conf use this:

MYADDR:
add 0 0 HISADDR

########################################################################

# Original Settings
#MYADDR:
# delete ALL
# add 0 0 HISADDR

Here is ppp.log

Jul 16 18:35:07 hermes ppp[392]: Phase: PPP Started (interactive mode).
Jul 16 18:35:15 hermes ppp[392]: Phase: bundle: Establish
Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: closed -> opening
Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: Connected!
Jul 16 18:35:15 hermes ppp[392]: Phase: deflink: opening -> dial
Jul 16 18:35:15 hermes ppp[392]: Phase: Phone: 538-5649
Jul 16 18:35:20 hermes ppp[392]: Warning: Chat script failed
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: dial -> hangup
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Disconnected!
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 16 18:35:20 hermes ppp[392]: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Sun Jul 16 18:35:20 2000
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: hangup -> opening
Jul 16 18:35:20 hermes ppp[392]: Phase: deflink: Enter pause (3) for redialing.
Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: Redial timer expired.
Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: Connected!
Jul 16 18:35:23 hermes ppp[392]: Phase: deflink: opening -> dial
Jul 16 18:35:23 hermes ppp[392]: Phase: Phone: 538-5649
Jul 16 18:35:28 hermes ppp[392]: Warning: Chat script failed
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: dial -> hangup
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Disconnected!
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 16 18:35:28 hermes ppp[392]: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Sun Jul 16 18:35:28 2000
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: hangup -> opening
Jul 16 18:35:28 hermes ppp[392]: Phase: deflink: Enter pause (3) for redialing.
Jul 16 18:35:31 hermes ppp[392]: Phase: Caught signal 2, abort connection(s)
Jul 16 18:35:31 hermes ppp[392]: Phase: deflink: Disconnected!
Jul 16 18:35:31 hermes ppp[392]: Phase: deflink: opening -> closed
Jul 16 18:35:31 hermes ppp[392]: Phase: bundle: Dead

***
When I run ppp I get "
Chat script failed".  I
I can enter terminal mode and take the model off hook, but I don't get a dial tone.  I get a connected message, but no login prompt and "ppp" never changes to reflect its status.  If I type atv1, I still get nothing in terms of volume.  So I went into the FAQs on FreeBSD.org.  I added the following to my remote file

# Generic entry
tip115200|Dial any phone number at 115200 bps:\
:dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du:
tip57600|Dial any phone number at 57600 bps:\
:dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du:

When I type 'tip -57600 my_#' f I get an error (which I didn't copy down), but is something like "unknown hayes type"

The modem is an external Supra Express 57600.  When I connect it to my Win98 box it dials fine.

First off, do the entries in ppp.conf have a specific order?  Should I use cu instead of tip in my remote file?  Do I have to make cuaa0?  If so where do I go to get the source (which CD in the 4 box FreeBSD set).

Any other thoughts/suggestions?

Ben


Grays Harbor Paper, L.P.
801 23rd Street
Hoquiam, Washington  98550
360.538.5713 (direct)
360.538.5716 (fax)

contact: Ben Hohman

I have a PGP public key (key ID 0x6F13E812).  For more info http://www.pgp.com
--=====================_244416161==_.ALT-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message