Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 1997 11:24:54 -0000
From:      "George Yegoroff" <georgeye@sibtel.ru>
To:        <freebsd-questions@freebsd.org>
Subject:   Run "ppp -alias -ddial" problem.
Message-ID:  <199708281234.SAA12912@gy.sibtel.ru>

next in thread | raw e-mail | index | archive | help
Hi , I try run ppp on FreeBSD 2.2.1 machine i485 DX4 66/ 8 Mb RAM/ 406 Mb
HDD/NE-2000 ethernet card, leased line to ISP. And I can't connect.
This is my ppp.conf file .

#################################################################
#
#  	PPP  Sample Configuration File
#
#	  Written by Toshiharu OHNO
#
# $Id: ppp.conf.sample,v 1.5.2.3 1997/03/17 00:29:48 jmg Exp $
#
#################################################################

# Default setup. Always executed when PPP is invoked.
#
default:
 set device /dev/cuaa0
 set speed 19200
 disable lqr
 deny lqr
 set dial  

# Example with login script
#   o From PPP prompt,
#	ppp> dial simplesite
#     automatically dials and performs the login script.
#
#       ppp> load simplesite
#     loads and executes commands, but doesn't dial.
#
#   o From shell, invoke as
#       % ppp simplesite
#     to load commands associated with the 'simplesite' label. Use,
#       ppp> dial
#     to establish the connection.
#    THIS LINES I USE FOR CONNECT TO MY ISP
sibtel:
set ns 195.58.11.24
set ifaddr 195.58.11.18 195.58.11.10 255.255.255.0
set openmode active
set timeout 3600
add 0 0 195.58.11.18

# Multi-phone example
#
multiphone:
 set phone 12345678:12345679:12345670:12345671
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp ocol: ppp"

# If the peer requires to use CHAP, don't forget to supply authname
# and authkey.
#
# If you'd like to use CHAP to authenticate with the peer, comment out
# the line ``enable chap'' below. You also need to prepare /etc/ppp.secret.
#
# If the remote system sends its system name within the CHAP packet and it
# is found in /etc/ppp.secret, then the secret key is taken from that file
# and value of authkey specified here is ignored.
#
chapsite:
 set phone 12345678
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 deny pap
 accept chap
# enable chap
 set authname MySystemName
 set authkey  OurSecretKey

# Speaking PAP is like speaking CHAP
#
papsite:
 set phone 12345678
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 deny chap
 accept pap
# enable pap
 set authname MyUserName
 set authkey  MyPassword

# On demand dialup example
#  Here, we assume that local side use 192.244.185.226 and
#  remote side use 192.244.176.44 as their IP address.
#  You must supply -auto option to invoke PPP.
#
#  $ ppp -auto ondemand
#
ondemand:
set phone
set timeout 100
set login "\r Username: TCMS-26 Password: FriendBldfkt address:
195.58.11.18"
set ifaddr 195.58.11.18/0 195.58.11.10/0  255.255.255.0
add 0 0 195.58.11.10
set openmode active

# Another on demand example
#  If the peer assigns us an arbitrary IP and we can't predict what their
#  IP will be either, take a wild guess at an some IPs that you can't
#  currently route to.  Ensure that the "delete" and "add" lines are also
#  present in ppp.linkup so that when we connect, things will be put
straight.
#
#  The /0 bit says that we insist on 0 bits of the specified IP actually
#  being correct, therefore, the other side can assign any IP numbers.
#
#  We also set openmode active - this makes us initiate ppp negotiation.
#  The default is to wait for the server to start talking.
#
pmdemand:
 set phone 1234567
 set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
 set timeout 120
 set ifaddr 10.10.10.10/0 10.10.11.11/0 255.255.255.0
 delete ALL
 add 0 0 HISADDR
 set openmode active

# Example to validate incoming user with CHAP
#  Invoke as ``ppp -direct users'' from login script. User's system name
#  and secret-key must be registered into /etc/ppp.secret.
#  IP address assigned to peer is registered in ppp.secret, then that
#  value is used and value in ``ifaddr'' command has no effect.
#
users:
 disable pap
 enable chap
 enable  proxy
 set authname ppp-server
 set ifaddr 192.244.176.44 292.244.184.31

# Example of Callback Request
#
#  Here, we assume that peer will hangup the line and initiates a callback
#  after successful authentication. We simply use chat script capability
#  and wait for a "NO CARRIER" response from our modem.
#
#  $ ppp callback
#
callback:
 set phone 0312345678
 set login "ABORT NO\\sCARRIER TIMEOUT 5 login:-\\r-login: MyName word:
MySecret TIMEOUT 20 DUMMY"
 set debug phase chat
 dial
 quit

# Example for PPP/TELNET and PPP/TCP. Read doc for further details
#
ppptelnet:
 set escape 0xff

ppptcp:
 set device 192.244.191.33:2400

modems have fulltime connection on leased line in async mode

NOW I START PPP
^^^^^^^^^^^
# ppp
User Process PPP. Written by Toshiharu OHNO.
Log level is 281
can't open /etc/ppp/ppp.secret.
Warning: No password entry for this host in ppp.secret
Warning: All manipulation is allowed by anyone in the world
Using interface: tun0
Interactive mode
ppp ON mail> dial sibtel
Dial attempt 1
dial OK!
login OK!
ppp ON mail> Packet mode.
ppp ON mail>
PPP ON mail> show log
08-28 10:41:15 [205] Using interface: tun0
08-28 10:41:15 [205] PPP Started.
08-28 10:41:23 [205] Phase: Authenticate
08-28 10:41:23 [205] Phase: Network
08-28 10:41:23 [205]  myaddr = 195.58.11.18  hisaddr = 195.58.11.10
08-28 10:41:23 [205] OsLinkup: 195.58.11.10
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ALL WORKING
,AND NOW I RUN PPP AS DEDICATED

# ppp -dedicated -alias sibtel
User Process PPP. Written by Toshiharu OHNO.
Packet aliasing enabled.
Log level is 281
can't open /etc/ppp/ppp.secret.
Warning: No password entry for this host in ppp.secret
Warning: All manipulation is allowed by anyone in the world
Using interface: tun0

,AND PING INTERFACE

# ping 195.58.11.18
PING 195.58.11.18 (195.58.11.18): 56 data bytes
ping: sendto: No route to host

What's wrong ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708281234.SAA12912>