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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"