Newsgroup: it.comp.os.linux.iniziare
Titolo: Server ppp per accesso a rete lan da remoto

Vorrei configurare il mio server di posta Linux  RH6.0 (mgetty
1.1.14-8) anche per accettare connessioni via modem e per tale motivo
ho fatto le sehuenti configurazioni:
inittab:
S1:23456:respawn:/sbin/mgetty -n 3  -s 115200 ttyS0
 login.config:
/AutoPPP/ -	a_ppp	/usr/sbin/pppd auth -chap +pap login kdebug 7
debug
pap-secrets:
# Secrets for authentication using PAP
# client	server	secret	IP addresses
pippo   	*	Pippo1	192.168.0.6
Quando provo a connettermi con il client (....cesso remoto di W95) il
modem riceve 3 squilli viene alzata la linea iniziano a comunicare i 2
modem,  l'altoparlante si ammutolisce e dopo 1-2 secondi la linea
cade.
il log di mgetty è il seguente:
01/29 11:16:33 yS0  waiting...
01/29 11:20:38 yS0  lock not made: lock file exists (pid=639)
--
01/29 11:21:33 yS0  mgetty: experimental test release 1.1.14-Apr02
01/29 11:21:33 yS0  no config file found:
/etc/mgetty+sendfax/mgetty.config
01/29 11:21:33 yS0  check for lockfiles
01/29 11:21:33 yS0  locking the line
01/29 11:21:33 yS0  lowering DTR to reset Modem
01/29 11:21:34 yS0  send: \dATQ0V1H0[0d]
01/29 11:21:34 yS0  waiting for ``OK'' ** found **
01/29 11:21:35 yS0  send: ATS0=0Q0&D3&C1[0d]
01/29 11:21:35 yS0  waiting for ``OK'' ** found **
01/29 11:21:35 yS0  mdm_send: 'ATI'
01/29 11:21:35 yS0  USR Courier/Sportster V.34(+) detected
01/29 11:21:35 yS0  mdm_send: 'ATI3'
01/29 11:21:35 yS0  additional info: 'USRobotics Sportster Voice 33600
Fax Rev. 2.0'
01/29 11:21:35 yS0  mdm_send: 'AT+FCLASS=2.0' -> OK
01/29 11:21:35 yS0  mdm_send: 'AT+FAA=1;+FCR=1' -> OK
01/29 11:21:36 yS0  mdm_send: 'AT+FBO=1' -> OK
01/29 11:21:36 yS0  mdm_send: 'AT+FNR=1,1,1,0' -> OK
01/29 11:21:36 yS0  mdm_send: 'AT+FLI="49 89 xxxxxxxx"' -> OK
01/29 11:21:36 yS0  mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0' -> OK
01/29 11:21:37 yS0  waiting...
01/29 11:25:28 yS0  waiting for ``RING'' ** found **
01/29 11:25:28 yS0  waiting for ``RING'' ** found **
01/29 11:25:33 yS0  waiting for ``RING'' ** found **
01/29 11:25:38 yS0  send: ATA[0d]
01/29 11:25:38 yS0  waiting for ``CONNECT'' ** found **
01/29 11:25:50 yS0  send: 
01/29 11:25:50 yS0  waiting for ``_'' ** found **
01/29 11:25:52 yS0  clean_line: only 500 of 630 bytes logged
--
01/29 11:25:53 yS0  mgetty: experimental test release 1.1.14-Apr02
01/29 11:25:53 yS0  no config file found:
/etc/mgetty+sendfax/mgetty.config
01/29 11:25:53 yS0  check for lockfiles
01/29 11:25:53 yS0  locking the line
01/29 11:25:53 yS0  lowering DTR to reset Modem
01/29 11:25:54 yS0  send: \dATQ0V1H0[0d]
01/29 11:25:54 yS0  waiting for ``OK'' ** found **
01/29 11:25:54 yS0  send: ATS0=0Q0&D3&C1[0d]
01/29 11:25:54 yS0  waiting for ``OK'' ** found **
01/29 11:25:55 yS0  mdm_send: 'ATI'
01/29 11:25:55 yS0  USR Courier/Sportster V.34(+) detected
01/29 11:25:55 yS0  mdm_send: 'ATI3'
01/29 11:25:55 yS0  additional info: 'USRobotics Sportster Voice 33600
Fax Rev. 2.0'
01/29 11:25:55 yS0  mdm_send: 'AT+FCLASS=2.0' -> OK
01/29 11:25:55 yS0  mdm_send: 'AT+FAA=1;+FCR=1' -> OK
01/29 11:25:55 yS0  mdm_send: 'AT+FBO=1' -> OK
01/29 11:25:56 yS0  mdm_send: 'AT+FNR=1,1,1,0' -> OK
01/29 11:25:56 yS0  mdm_send: 'AT+FLI="49 89 xxxxxxxx"' -> OK
01/29 11:25:56 yS0  mdm_send: 'AT+FCC=1,5,0,2,0,0,0,0' -> OK
01/29 11:25:56 yS0  waiting...
Qualche idea ?


Lascerei perdere mgetty. Fare quello che vuoi con pppd è
più semplice.  Ti posto il mio script.
Devi procurarti modem-stats, con chat ho avuto problemi.
===============================================================
#!/bin/sh
#
# Questo script fa partire il daemon pppd con impostazione server
#
function remove
{
   if [ -f /var/run/ppp-server.pid ]; then
	IFACE=$(/usr/bin/grep [a-z] /var/run/ppp-server.pid)
        /bin/kill -9 $(grep ^[0-9] /var/run/ppp-server.pid)
	if [ $IFACE ]; then
        	/sbin/ifconfig $IFACE down
	fi
        /bin/rm /var/run/ppp-server.pid
   fi
}
case "$1" in
start)
	remove
# Lancia il daemon
exec /usr/sbin/pppd /dev/modem	\
57600				\
192.168.0.1:192.168.0.200	\
auth				\
crtscts				\
mru 296				\
linkname server			\
init "/usr/bin/modem-stats -c 'AT&F1S0=1' /dev/ttyS1 >/dev/null" \
&
;;
stop)
	remove
;;
*)
	echo "Usage: $0 start | stop"
        exit 1
        esac
        exit 0
===============================================================
_________________________
Sandro Marrone
  Roma - Italy
e-mail: 
sm...@tiscalinet.it

01/29 11:21:33 yS0  no config file found: /etc/mgetty+sendfax/mgetty.config
Questo in compenso mi sembra ovvio che sia un bel problema. (-:
Il resto e` piu` o meno normale...
-- 
  _      ___ ____
 | | /| / (_)_  /
 | |/ |/ / / / /_	ANTI-SPAM WARNING:
 |__/|__/_/ /___/	the e-mail address is fake.
 
Mancino fino all'osso (-: