From owner-freebsd-questions@FreeBSD.ORG Thu Apr 8 16:25:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D9EB16A4CE for ; Thu, 8 Apr 2004 16:25:36 -0700 (PDT) Received: from hotmail.com (bay7-f76.bay7.hotmail.com [64.4.11.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0111E43D31 for ; Thu, 8 Apr 2004 16:25:36 -0700 (PDT) (envelope-from eurijk666@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 8 Apr 2004 16:25:35 -0700 Received: from 66.82.9.55 by by7fd.bay7.hotmail.msn.com with HTTP; Thu, 08 Apr 2004 23:25:35 GMT X-Originating-IP: [66.82.9.55] X-Originating-Email: [eurijk666@hotmail.com] X-Sender: eurijk666@hotmail.com From: "gffds fsdff" To: questions@FreeBSD.org Date: Thu, 08 Apr 2004 23:25:35 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 Apr 2004 23:25:35.0894 (UTC) FILETIME=[CB89AB60:01C41DC0] Subject: pppd (Server) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 23:25:36 -0000 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/