Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Apr 1999 16:01:12 +1000
From:      Kyle Buttress <kyle@pchost.com>
To:        freebsd-questions@freebsd.org
Subject:   mgetty ppp dialin server?
Message-ID:  <370AF4A7.CF692477@pchost.com>

next in thread | raw e-mail | index | archive | help
At the moment I am trying to have my FreeBSD 3.1 box accept dialin, its
partially working.

we I call up the modem answers and i get a terminal screen.

how can I get it to pass over to ppp?

I am using mgetty+sendfax to auto answer and this is where I get stuck.

I have the following configs.

ppp.conf
_______
default:
 set log Phase Chat LCP IPCP CCP tun command
 set device /dev/cuaa1
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK
ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"

PAPServerwithPASSWD:
 enable pap
 enable passwdauth
 enable proxy
 set ifaddr 192.168.1.100
 accept dns

direct-server:
 set timeout 0
 set lqrperiod 10
 set log Phase LQM
 set ifaddr 192.168.1.100
 enable lqr
 accept lqr

pap:
  enable pap
  set ifaddr 192.168.1.100
  enable proxy
  accept dns

kyle:
  set ifaddr 192.168.1.100 192.168.1.100 255.255.255.0

kyle:
  add 192.168.1.100 netmask 255.255.255.0 HISADDR
___________
options
___________
crtscts                         # Hardware flow control
passive                         # wait for LCP
modem                           # modem line
+pap
login
auth
domain pchost.com               # your domain
proxyarp                        # use ARP proxy routing
defaultroute
___________
options.ttyd0
___________
203.24.253.106:192.168.1.100 # ip's of local and remote hosts
___________
ppp-pap-dialup
___________
#!/bin/sh
exec /usr/sbin/ppp -direct pap$IDENT
___________
pap-secrets
___________
kyle    *       mypasswd
___________
ppp.secret
___________
kyle        mypass       192.168.1.100            kyle
___________
login.config (mgetty)
___________
/AutoPPP/ -     -       /etc/ppp/ppp-pap-dialup
___________
ttys
___________
cuaa1   "/usr/local/sbin/mgetty -s 19200" dialup on secure
___________

here is part of the ppp.log
___________________
Apr  7 12:26:17 bob ppp[320]: Phase: Using interface: tun0
Apr  7 12:26:17 bob ppp[320]: Phase: deflink: Created in closed state
Apr  7 12:26:17 bob ppp[320]: Phase: PPP Started (direct mode).
Apr  7 12:26:18 bob ppp[320]: Phase: bundle: Establish
Apr  7 12:26:18 bob ppp[320]: Phase: deflink: closed -> opening
Apr  7 12:26:18 bob ppp[320]: Phase: deflink: Connected!
Apr  7 12:26:18 bob ppp[320]: Phase: deflink: opening -> lcp
Apr  7 12:26:34 bob ppp[320]: Phase: deflink: Disconnected!
Apr  7 12:26:34 bob ppp[320]: Phase: deflink: Connect time: 16 secs: 198
octets in, 475 octets out
Apr  7 12:26:34 bob ppp[320]: Phase:  total 42 bytes/sec, peak 57
bytes/sec on Wed Apr  7 12:26:34 1999
Apr  7 12:26:34 bob ppp[322]: Phase: 320 -> 322: Dropped session control

Apr  7 12:26:34 bob ppp[322]: Phase: deflink: lcp -> closed
Apr  7 12:26:34 bob ppp[322]: Phase: bundle: Dead
Apr  7 12:26:34 bob ppp[322]: Phase: deflink: Carrier lost
Apr  7 12:26:34 bob ppp[322]: Phase: PPP Terminated (normal).
___________________
here is part of the mgetty.cuaa1 log
___________________04/07 14:39:30 aa1  mgetty: experimental test release
1.1.19-Nov24
04/07 14:39:30 aa1  check for lockfiles
04/07 14:39:30 aa1  locking the line
04/07 14:39:33 aa1  lowering DTR to reset Modem
04/07 14:39:33 aa1  send: ATS0=0Q0&D3&C1[0d]
04/07 14:39:33 aa1  waiting for ``OK'' ** found **
04/07 14:39:33 aa1  mdm_send: 'ATI'
04/07 14:39:34 aa1  USR Courier/Sportster V.34(+) detected
04/07 14:39:34 aa1  mdm_send: 'ATI3'
04/07 14:39:34 aa1  additional info: 'Texas Instruments 33600/Fax V2.5'
04/07 14:39:34 aa1  mdm_send: 'AT+FCLASS=2.0' -> OK
04/07 14:39:34 aa1  mdm_send: 'AT+FAA=1;+FCR=1' -> OK
04/07 14:39:34 aa1  mdm_send: 'AT+FBO=1' -> OK
04/07 14:39:34 aa1  mdm_send: 'AT+FNR=1,1,1,0' -> OK
04/07 14:39:35 aa1  mdm_send: 'AT+FLI="00 00 000000"' -> OK
04/07 14:39:35 aa1  mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0' -> OK
04/07 14:39:35 aa1  waiting...
04/07 15:39:35 aa1  checking if modem is still alive
04/07 15:39:35 aa1  mdm_send: 'AT' -> OK
04/07 15:39:36 aa1  waiting...
______________________
I have made these changes in the rc.config
______________________
ifconfig_tun0="inet 192.168.1.100 netmask 255.255.255.0"
gateway_enable="YES"
______________________


I think that I am close to getting it working but I cannot see what I
have missed I have gone through the tutorials on FreeBSD and read many
mails but i cannot see the answer.

Any help would be very much appreciated.

Kyle






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




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