From owner-freebsd-questions Fri Nov 30 10: 8:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from chaos.evolve.za.net (chaos.evolve.za.net [196.34.172.107]) by hub.freebsd.org (Postfix) with ESMTP id 8763437B416 for ; Fri, 30 Nov 2001 10:07:45 -0800 (PST) Received: from DAVE ([192.168.0.54]) by chaos.evolve.za.net (8.11.6/1.1.3) with SMTP id fAUI7MT03584; Fri, 30 Nov 2001 20:07:23 +0200 (SAST) (envelope-from dave@raven.za.net) Message-ID: <001d01c179c9$7c4b94c0$3600a8c0@DAVE> From: "Dave Raven" To: "Joe & Fhe Barbish" , References: Subject: Re: Kermit (and pppd) Date: Fri, 30 Nov 2001 20:04:37 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0018_01C179DA.3CB96920" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0018_01C179DA.3CB96920 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I see how it may have been unclear. I am able to dial out; contact = another isp etc. However, I am an ISP. I need my fBSD box to ANSWER the = modem, provide an internet account as though you were dialed into a normal isp. = No access to the local box; but direct access to the internet. The link is in the handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ppp.html Check the using pppd as a server section. Bear in mind I am new to this; and may have it completely wrong. So if = anyone has a better / working way, I am open to any suggestion. Thanks all; --Dave. ----- Original Message -----=20 From: Joe & Fhe Barbish=20 To: Dave Raven=20 Sent: Friday, November 30, 2001 7:33 PM Subject: RE: Kermit (and pppd)=20 I do not understand why you would want to use Kermit with PPP. FBSD = ppp was rewritten at 4.0 and no longer needs any kind of external modem = dialer software to make ppp connections using modems. I have read the = man ppp pages in 4.4 and did not see any references to Kermit. First = thing you need to keep in mind with FBSD is the documentation sucks big = time. The man pages are almost always outdated. The man ppp in FBSD 4.4 = still contains errors even though there has been 4 new releases since = it's rewrite at 4.0. Even the brand new published version of the FBSD = handbook section on user-ppp is outdated right from the printer with = damp ink. Why don't you reword your question saying what your goal is. = Like using a modem to dial your ISP, accepting an dial in call from a = ms/windows box, connect a FBSD box to a second FBSD box using phone = lines ECT ECT. To get help you have to say what PC make you are on and = what version of FBSD you are running at a min.=20 =20 Joe =20 -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG = [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Dave Raven Sent: Friday, November 30, 2001 9:46 AM To: freebsd-questions@freebsd.org Subject: Kermit (and pppd) =20 Hello all, =20 I copied a few ppp scripts from the fBSD man pages and it uses = kermit to handle the modem connections / whatever. I have created a = /etc/ppp/pppserv file containing: =20 #!/bin/sh ps ax |grep pppd |grep -v grep pid=3D`ps ax |grep pppd |grep -v grep|awk '{print $1;}'` if [ "X${pid}" !=3D "X" ] ; then echo 'killing pppd, PID=3D' ${pid} kill ${pid} fi ps ax |grep kermit |grep -v grep pid=3D`ps ax |grep kermit |grep -v grep|awk '{print $1;}'` if [ "X${pid}" !=3D "X" ] ; then echo 'killing kermit, PID=3D' ${pid} kill -9 ${pid} fi =20 # reset ppp interface ifconfig ppp0 down #ifconfig ppp0 delete ifconfig ppp0 =20 # enable autoanswer mode kermit -y /etc/ppp/kermit.ans =20 # run ppp pppd /dev/cuaa0 19200 =20 =20 =20 My kermit.ans contains:=20 =20 set line /dev/cuaa0 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 =20 pau 1 out +++ inp 5 OK out ATH0\13 inp 5 OK echo \13 out ATS0=3D1\13 ; change this to out ATS0=3D0\13 if you want to = disable ; autoanswer mod inp 5 OK echo \13 exit =20 =20 This should all work. However, when I run the kermit -y kermit.ans I get these errors = everytime it sends a command: =20 [root@chaos /etc/ppp]# sh pppserv ppp0: flags=3D8010 mtu 1500 ?Connection on /dev/cuaa0 is not open. ?Connection on /dev/cuaa0 is not open. ?Connection on /dev/cuaa0 is not open. ?Connection on /dev/cuaa0 is not open. =20 ?Connection on /dev/cuaa0 is not open. ?Connection on /dev/cuaa0 is not open. =20 Closing /dev/cuaa0...OK [root@chaos /etc/ppp]#=20 =20 =20 Any ideas on why this would be happening? =20 Thanks in advance --Dave OpteqSec =20 ------=_NextPart_000_0018_01C179DA.3CB96920 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I see how it may have been unclear. I = am able to=20 dial out; contact another isp etc. However, I am an ISP. I need my fBSD = box to=20 ANSWER the modem,
provide an internet account as though = you were=20 dialed into a normal isp. No access to the local box; but direct access = to the=20 internet.
 
The link is in the = handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ppp.html=
Check the using pppd as a server=20 section.
 
Bear in mind I am new to this; and may = have it=20 completely wrong. So if anyone has a better / working way, I am open to = any=20 suggestion.
 
Thanks all;
--Dave.
 
 
----- Original Message -----
From:=20 Joe=20 & Fhe Barbish
Sent: Friday, November 30, 2001 = 7:33=20 PM
Subject: RE: Kermit (and pppd) =

I=20 do not understand why you would want to use Kermit with PPP. FBSD ppp = was=20 rewritten at 4.0 and no longer needs any kind of external modem dialer = software to make ppp connections using modems. I have read the man ppp = pages=20 in 4.4 and did not see any references to Kermit. First thing you need = to keep=20 in mind with FBSD is the documentation sucks big time. The man pages = are=20 almost always outdated. The man ppp in FBSD 4.4 still contains errors = even=20 though there has been 4 new releases since it=92s rewrite at 4.0. Even = the brand=20 new published version of the FBSD handbook section on user-ppp is = outdated=20 right from the printer with damp ink. Why don=92t you reword your = question=20 saying what your goal is. Like using a modem to dial your ISP, = accepting an=20 dial in call from a ms/windows box, connect a FBSD box to a second = FBSD box=20 using phone lines ECT ECT. To get help you have to say what PC make = you are on=20 and what version of FBSD you are running at a min.=20

 

Joe

 

-----Original=20 Message-----
From:=20 owner-freebsd-questions@FreeBSD.ORG=20 [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Dave = Raven
Sent: Friday, November 30, 2001 = 9:46=20 AM
To:=20 freebsd-questions@freebsd.org
Subject: Kermit (and=20 pppd)

 

Hello=20 all,

 

    I=20 copied a few ppp scripts from the fBSD man pages and it uses kermit to = handle=20 the modem connections / whatever. I have created a /etc/ppp/pppserv = file=20 containing:

 

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

 

# reset=20 ppp interface
ifconfig ppp0 down
#ifconfig ppp0 = delete
ifconfig=20 ppp0

 

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

 

# run=20 ppp
pppd /dev/cuaa0 19200

 

 

 

My=20 kermit.ans contains:

 

set=20 line /dev/cuaa0
set speed 19200
set file type binary
set file = names=20 literal
set win 8
set rec pack 1024
set send pack 1024
set = block=20 3
set term bytesize 8
set command bytesize 8
set flow=20 none

 

pau=20 1
out +++
inp 5 OK
out ATH0\13
inp 5 OK
echo \13
out = ATS0=3D1\13   ; change this to out ATS0=3D0\13 if you want = to=20 = disable
          &n= bsp;        =20 ; autoanswer mod
inp 5 OK
echo \13
exit

 

 

This=20 should all work.

However, = when I run=20 the kermit -y kermit.ans I get these errors everytime it sends a=20 command:

 

[root@chaos=20 /etc/ppp]# sh pppserv
ppp0: = flags=3D8010<POINTOPOINT,MULTICAST> mtu=20 1500
?Connection on /dev/cuaa0 is not open.
?Connection on = /dev/cuaa0 is=20 not open.
?Connection on /dev/cuaa0 is not open.
?Connection on=20 /dev/cuaa0 is not open.

 

?Connection on=20 /dev/cuaa0 is not open.
?Connection on /dev/cuaa0 is not=20 open.

 

Closing=20 /dev/cuaa0...OK
[root@chaos /etc/ppp]#

 

 

Any=20 ideas on why this would be happening?

 

Thanks=20 in advance

--Dave

OpteqSec

 

------=_NextPart_000_0018_01C179DA.3CB96920-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message