Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Apr 2004 23:25:35 +0000
From:      "gffds fsdff" <eurijk666@hotmail.com>
To:        questions@FreeBSD.org
Subject:   pppd (Server)
Message-ID:  <BAY7-F76KL5DvXgyfNy000298f8@hotmail.com>

next in thread | raw e-mail | index | archive | help
I have downloaded and installed kermit, typed in the configuration as listed 
in "18.3.3". When I try to run pppd with no setting options, I get this:

192# pppd
~ÿ}#À!}!}!} }.}%}&}2z¢;}'}"}(}" C~~ÿ}#À!}!}!} }.}%}&}2z¢;}'}"}(}" 
C~~ÿ}#À!}!}!} }.}%}&}2z¢;}'}"}(}" C~~ÿ}#À!}!}!} }.}%}&}2z¢;}'}"}(}" 
C~~ÿ}#À!}!}!} }.}%}&}2z¢;}'}"}(}" C~~ÿ}#À!}!}!} }.}%}&}2z¢;}'}"}(}" 
C~~ÿ}#À!}!}!} }.}%}&}2z¢;}'}"}(}" C~~ÿ}#À!}!}!} }.}%}&}2z¢;}'}"}(}" 
C~~ÿ}#À!}!}!} }.}%}&}2z¢;}'}"}(}" C~~ÿ}#À!}!}!} }.}%}&}2z¢;}'}"}(}" C~


When I try to run pppd with terminal options, they are somehow improper. I 
do not know where to set the device for listening (I want to use a v.92/56k 
modem), in kermit.dial, I know I am supposed to change the username and 
password, but I do not understand how it is to be done.

As for my configurations, here you go:









----------------------------------------------------Kermit.ans-----------------------------------------------------
set line /dev/tty01
set speed 19200
set file type binary
set file names literal
set win 8
set rec pack 1024
set send pack 1024
set block 3
set term bytesize 8
set command bytesize 8
set flow none

pau 1
out +++
inp 5 OK
out ATH0\13
inp 5 OK
echo \13
out ATS0=1\13   ; change to ATS0=0\13 if you want to disable autoanswer 
mode.
inp 5 OK
echo \13
exit
-----------------------------------------------------------------------------------------------------------------------



----------------------------------------------------Kermit.dial-----------------------------------------------------
set line /dev/tty01
set speed 19200
set file type binary
set file names literal
set win 8
set rec pack 1024
set send pack 1024
set block 3
set term bytesize 8
set command bytesize 8
set flow none
set modem hayes
set dial hangup off
set carrier auto
set dial display on
set input echo on
set input timeout proceed
set input case ignore
def \%x 0
goto slhup

:slcmd
echo Put the modem in command mode.
clear
pause 1
output +++
input 1 OK\13\10
if success goto slhup
output \13
pause 1
output at\13
input 1 OK\13\10
if fail goto slcmd

:slhup
clear
pause 1
echo Hanging up the phone.
output ath0\13
input 2 OK\13\10
if fail goto slcmd

:sldial
pause 1
echo Dialing.
output atdt9,550311\13\10
assign \%x 0

:look
clear
increment \%x
input 1 {CONNECT }
if success goto sllogin
reinput 1 {NO CARRIER\13\10}
if success goto sldial
reinput 1 {NO DIALTONE\13\10}
if success goto slnodial
reinput 1 {\255}
if success goto slhup
reinput 1 {\127}
if success goto slhup
if < \%x 60 goto look
else goto slhup

:sllogin
assign \%x 0
pause 1
echo Looking for login prompt.

:slloop increment \%x
clear
output \13
input 1 {Username: }
if success goto sluid
reinput 1 {\255}
if success goto slhup
reinput 1 {\127}
if success goto slhup
if < \%x 10 goto slloop
else goto slhup

:sluid
output ppp-login\13
input 1 {Password: }
output ppp-password\13
input 1 {Entering SLIP mode.}
echo
quit

:slnodial
echo \7No dialtone. Check the telephone line!\7
exit 1

; local variables:
; mode: csh
; comment-start: "; "
; comment-start-skip: "; "
; end:
-------------------------------------------------------------------------------------------------------------------

----------------------------------------------------options-----------------------------------------------------
crtscts
netmask 255.255.255.0
domain ppp.solodox.com
passive
modem
-------------------------------------------------------------------------------------------------------------------

---------------------------------------------------pppserv-----------------------------------------------------
#!/bin/sh
ps ax |grep pppd |grep -v grep
pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'`
if [ "X${pid}" != "X" ] ; then
        echo 'killing pppd, PID=' ${pid}
        kill ${pid}
fi
ps ax |grep kermit |grep -v grep
pid=`ps ax |grep kermit |grep -v grep|awk '{print $1;}'`
if [ "X${pid}" != "X" ] ; then
        echo 'killing kermit, PID=' ${pid}
        kill -9 ${pid}
fi

#reset ppp interface
ifconfig ppp0 down
ifconfig ppp0 delete

#enable autoanswer mode
kermit -y /etc/ppp/kermit.ans

#run ppp
pppd /dev/tty01 19200
-------------------------------------------------------------------------------------------------------------------

------------------------------------------------pppservdown-------------------------------------------------
#!/bin/sh
ps ax |grep pppd |grep -v grep
pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'`
if [ "X${pid}" != "X" ] ; then
        echo 'killing pppd, PID=' ${pid}
        kill ${pid}
fi
ps ax |grep kermit |grep -v grep
pid=`ps ax |grep kermit |grep -v grep|awk '{print $1;}'`
if [ "X${pid}" != "X" ] ; then
        echo 'killing kermit, PID=' ${pid}
        kill -9 ${pid}
fi
ifconfig ppp0 down
ifconfig ppp0 delete

kermit -y /etc/ppp/kermit.noans
-------------------------------------------------------------------------------------------------------------------

So there you are, thanks for reading. I would appriciate any help you may be 
willing to give. Thank you.

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/



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