Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

m'gettying closer! (was Re: modem not responding to mgetty)

 
   FreeBSD Hosting (Home) -> FreeBSD Handbook RSS
Next:  Netgear MA111 wifi card with Project Evil  
Author Message
Timothy Luoma

External


Since: Jan 08, 2005
Posts: 1



(Msg. 1) Posted: Sat Jan 08, 2005 11:04 am
Post subject: m'gettying closer! (was Re: modem not responding to mgetty)
Archived from groups: mailing>freebsd>questions (more info?)

Update on progress on project "ppp dialin". I am following the
instructions at
http://node.to/freebsd/how-tos/how-to-freebsd-pppserver.html.

On the advice of Charles Ulrich on FBSD-Questions, I bought a serial
modem Creative Modem Blaster v.92 Model DE5621. I shut off the
machine, hooked up the modem (removed the old PCI modem) and rebooted.

Here's the relevant configuration that I have (note: 5.3, standard
kernel)

I am unsure about several things
- should be using cuaa0 or ttyd0 (I am using mgetty)?

- are the 'set ifaddr' lines right in ppp.conf? I'm using 192.168.1.x
and have selected unused IP addresses in that range

$ fgrep mgetty /etc/ttys|fgrep -v '#'
ttyd0 "/usr/local/sbin/mgetty -s 115200" dialup on secure

note: in ppp.conf, I'm not sure if I need ttyd0 or cuaa0.

(NOTE: FRED is not really the username)

$ cat /etc/ppp/ppp.conf
default:
set device /dev/cuaa0
set debug log Phase Chat LCP IPCP CCP tun command
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK
ATE1Q0 OK \\dATDT\\TTIMEOUT 40 CONNECT"
set timeout 120
set ifaddr 192.168.1.1/0 192.168.1.2/0 255.255.255.0 0.0.0.0
add default HISADDR

cuaa0:
set ifaddr 192.168.1.3 192.168.1.4-192.168.1.9
enable passwdauth
allow users FRED ppp
accept dns
set dns 67.36.13.26
enable proxy

ttyd0:
set ifaddr 192.168.1.3 192.168.1.4-192.168.1.9
enable passwdauth
allow users FRED ppp
accept dns
set dns 67.36.13.26
enable proxy

$ cat /usr/local/etc/mgetty+sendfax/mgetty.config

port cuaa0
debug 4
fax-id 00 00 000000
speed 115200
direct NO
blocking NO
port-owner uucp
port-group uucp
port-mode 0660
toggle-dtr YES
toggle-dtr-waittime 500
data-only YES
fax-only NO
modem-type auto
init-chat "" AT OK
modem-check-time 3600
rings 1
answer-chat "" ATA CONNECT \c \r
answer-chat-timeout 30
autobauding NO
ringback NO
ringback-time 30
ignore-carrier false
issue-file /etc/issue
prompt-waittime 500
login-prompt @!login:
login-time 240
diskspace 1024
notify faxadmin
fax-owner uucp
fax-group modem
fax-mode 0660

$ fgrep ppp /etc/passwd
ppp:*:1003:1003:ppp:/home/ppp:/etc/ppp/ppp-dialup

$ ls -l /etc/ppp/ppp-dialup
-rwxr-xr-x 1 root wheel 258 Jan 7 19:56 /etc/ppp/ppp-dialup*

(the content of the script is the same from the webpage, which says it
is the same as the FreeBSD handbook)

XXXXXXX is the dialin number

here is what I get on the *client end* when I try to dial my PPP server
Fri Jan 7 21:12:06 2005 : Dialing XXXXXXX
Fri Jan 7 21:12:06 2005 : CCLWrite : ATDTXXXXXXX\13
Fri Jan 7 21:12:37 2005 : CCLMatched : +ER:
Fri Jan 7 21:12:37 2005 : CCLMatched : LAPM
Fri Jan 7 21:12:37 2005 : Modem Reliable Link Established.
Fri Jan 7 21:12:37 2005 : CCLMatched : +DR:
Fri Jan 7 21:12:37 2005 : CCLMatched : V42B\13
Fri Jan 7 21:12:37 2005 : Modem Compression Established.
Fri Jan 7 21:12:37 2005 : CCLMatched : CONNECT
Fri Jan 7 21:12:37 2005 : CCLMatched : 26400
Fri Jan 7 21:12:40 2005 : Serial connection established.
Fri Jan 7 21:12:40 2005 : using link 0
Fri Jan 7 21:12:40 2005 : Using interface ppp0
Fri Jan 7 21:12:40 2005 : Connect: ppp0 <--> /dev/cu.modem
Fri Jan 7 21:12:41 2005 : sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<magic 0x32727ef4> <pcomp> <accomp>]
Fri Jan 7 21:12:41 2005 : Hangup (SIGHUP)
Fri Jan 7 21:12:41 2005 : Modem hangup
Fri Jan 7 21:12:41 2005 : Connection terminated.

and here is what happens on the *server* end

tail -50 /var/log/mgetty.ttyd0
01/07 21:12:35 yd0 mgetty: experimental test release 1.1.31-Jul24
01/07 21:12:35 yd0 check for lockfiles
01/07 21:12:35 yd0 locking the line
01/07 21:12:36 yd0 lowering DTR to reset Modem
01/07 21:12:36 yd0 send: \dATQ0V1H0[0d]
01/07 21:12:37 yd0 waiting for ``OK'' ** found **
01/07 21:12:37 yd0 send: ATS0=0Q0&D3&C1[0d]
01/07 21:12:37 yd0 waiting for ``OK'' ** found **
01/07 21:12:37 yd0 mdm_send: 'ATI'
01/07 21:12:37 yd0 Generic Rockwell modem (56000)
01/07 21:12:37 yd0 mdm_send: 'ATI3'
01/07 21:12:37 yd0 mdm_send: 'ATI4'
01/07 21:12:37 yd0 additional info: 'a007040284C6002F'
01/07 21:12:37 yd0 modem quirks: 0004
01/07 21:12:37 yd0 mdm_send: 'AT+FCLASS=2' -> OK
01/07 21:12:37 yd0 mdm_send: 'AT+FCLASS=0' -> OK
01/07 21:12:37 yd0 mdm_send: 'AT+FAA=1;+FCR=1' -> OK
01/07 21:12:38 yd0 mdm_send: 'AT+FBOR=0' -> OK
01/07 21:12:38 yd0 mdm_send: 'AT+FLID="49 115 xxxxxxxx"' -> OK
01/07 21:12:38 yd0 mdm_send: 'AT+FDCC=1,5,0,2,0,0,0,0' -> OK
01/07 21:12:38 yd0 waiting...

[as far as I know, everything before this is just mgetty setting up,
and the rest is what happens when a call comes in]

01/07 21:16:04 yd0 wfr: waiting for ``RING''
01/07 21:16:04 yd0 send: ATA[0d]
01/07 21:16:04 yd0 waiting for ``CONNECT'' ** found **
01/07 21:16:30 yd0 send:
01/07 21:16:30 yd0 waiting for ``_'' ** found **
01/07 21:16:34 ##### data dev=ttyd0, pid=966, caller='none',
conn='115200', name='', cmd='/etc/ppp/ppp-pap-dialup', user='/AutoPPP/'

[at that point mgetty just resets]

So it's been a long day, and I've banged my head against this for a
couple hours. Going to eat. Any ideas will be appreciated.

TjL

_______________________________________________
freebsd-questions.TakeThisOut@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"

 >> Stay informed about: m'gettying closer! (was Re: modem not responding to mgetty) 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Installation & fdisk partitioning (slices) - I picked up a copy of the "FreeBSD Handbook 2nd Ed" the other day, it came with a installation disk for version 5.1 Current and that is what I am trying to install. This is my first attempt to do anything with FreeBSD. First let me describe my...

CVSup vs. portupgrade - Reading from the FreeBSD handbook on "Using the Ports Collection" leaves me a bit confused wrt CVSup and portupgrade... do these utilities accomplish the same thing? Thanks, Jay _______________________________________________..

configuring freebsd dhcp server/router to listen on device - Hello, Im trying to move away from my linksys wireless router and move onto an old Pentium 200 Mhz I have. It will be the gateway between my modem and my network. I installed isc-dhcp3 on the box and took the sample dhcp.conf file in the freebsd..

PPP - Hi! I'm french and don't understand the chapter 18.2.1.2 (Creating PPP device Nodes) in the freeBSD handbook. Precicely I don't understand what is N in the first paragraph. Is it necessary to change the tun0? I have an other question.(I'm sorry if it..

PPP - Hi!! In the FreeBSD handbook, the chapter 18.3.3 talk about the file /etc/ppp/options. I think I must create it and copy that it's written in the handbook concerning this file but I'm not sure. Xavier --------------------------------- Yahoo! Mail...
   FreeBSD Hosting (Home) -> FreeBSD Handbook All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]