LINUX.ORG.RU

Ответ на: комментарий от Kasper

нифига не помогает.
Не заню прямо чтои делать, попробую опять дать полные логи и все скрипты.
-------------------------ppp.log---------------------
Sep 12 09:38:46 teebot pppd[9804]: pppd 2.4.1 started by root, uid 0
Sep 12 09:38:47 teebot chat[9805]: timeout set to 3 seconds
Sep 12 09:38:47 teebot chat[9805]: abort on (\nBUSY\r)
Sep 12 09:38:47 teebot chat[9805]: abort on (\nNO ANSWER\r)
Sep 12 09:38:47 teebot chat[9805]: abort on (\nRINGING\r\n\r\nRINGING\r)
Sep 12 09:38:47 teebot chat[9805]: send (rAT^M)
Sep 12 09:38:47 teebot chat[9805]: expect (OK)
Sep 12 09:38:47 teebot chat[9805]: rAT^M^M
Sep 12 09:38:47 teebot chat[9805]: OK
Sep 12 09:38:47 teebot chat[9805]: -- got it
Sep 12 09:38:47 teebot chat[9805]: send (ATH0^M)
Sep 12 09:38:47 teebot chat[9805]: expect (OK)
Sep 12 09:38:47 teebot chat[9805]: ^M
Sep 12 09:38:47 teebot chat[9805]: ATH0^M^M
Sep 12 09:38:47 teebot chat[9805]: OK
Sep 12 09:38:47 teebot chat[9805]: -- got it
Sep 12 09:38:47 teebot chat[9805]: send (ATS6=5^M)
Sep 12 09:38:47 teebot chat[9805]: expect (OK)
Sep 12 09:38:47 teebot chat[9805]: ^M
Sep 12 09:38:47 teebot chat[9805]: ATS6=5^M^M
Sep 12 09:38:47 teebot chat[9805]: OK
Sep 12 09:38:47 teebot chat[9805]: -- got it
Sep 12 09:38:47 teebot chat[9805]: send (ATM1L1^M)
Sep 12 09:38:47 teebot chat[9805]: timeout set to 50 seconds
Sep 12 09:38:47 teebot chat[9805]: expect (OK)
Sep 12 09:38:47 teebot chat[9805]: ^M
Sep 12 09:38:47 teebot chat[9805]: ATM1L1^M^M
Sep 12 09:38:47 teebot chat[9805]: OK
Sep 12 09:38:47 teebot chat[9805]: -- got it
Sep 12 09:38:47 teebot chat[9805]: send (ATDP9W190^M)
Sep 12 09:38:47 teebot chat[9805]: expect (CONNECT)
Sep 12 09:38:47 teebot chat[9805]: ^M
Sep 12 09:39:09 teebot kernel: via_audio: ignoring drain playback error -11
Sep 12 09:39:22 teebot chat[9805]: ATDP9W190^M^M
Sep 12 09:39:22 teebot chat[9805]: CONNECT
Sep 12 09:39:22 teebot chat[9805]: -- got it
Sep 12 09:39:22 teebot chat[9805]: send (^M)
Sep 12 09:39:22 teebot pppd[9804]: Serial connection established.
Sep 12 09:39:22 teebot pppd[9804]: using channel 7
Sep 12 09:39:22 teebot pppd[9804]: Using interface ppp0
Sep 12 09:39:22 teebot pppd[9804]: Connect: ppp0 <--> /dev/ttyS0
Sep 12 09:39:23 teebot pppd[9804]: sent [LCP ConfReq id=0x1 <asyncmap 0x20a0000> <auth pap> <magic 0xe6bab259> <pcomp> <accomp>]
Sep 12 09:39:26 teebot pppd[9804]: sent [LCP ConfReq id=0x1 <asyncmap 0x20a0000> <auth pap> <magic 0xe6bab259> <pcomp> <accomp>]
Sep 12 09:39:26 teebot pppd[9804]: Hangup (SIGHUP)
Sep 12 09:39:26 teebot pppd[9804]: Modem hangup
Sep 12 09:39:26 teebot pppd[9804]: Connection terminated.
Sep 12 09:39:27 teebot pppd[9804]: Exit.

---------------------скрипт дозвона------------------
#!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command. However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=9W190 # The telephone number for the connection
ACCOUNT=190 # The account name for logon (as in 'George Burns')
PASSWORD= # The password for this account (and 'Gracie Allen')
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0 # The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in. Please use the absolute file name as the $PATH variable is not
# used on the connect option. (To do so on a 'root' account would be
# a security hole so don't ask.)
#

DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#DIALER_SCRIPT=/etc/ppp/scripts/redialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug lock auth refuse-chap require-pap login modem crtscts /dev/ttyS0 38400 \
asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT
-----------------------chat скрипт-------------------
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec /usr/sbin/chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
'OK-+++\c-OK' ATS6=5 \
'OK-+++\c-OK' ATM1L1 \
TIMEOUT 50 \
OK ATDP$TELEPHONE \
CONNECT ''
----------------------pap-secrets--------------------
# Secrets for authentication using PAP
# client server secret IP addresses
190 * "" *

это все.

Помогите пожалуйста разлбраться.

Спасибо

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.