From: Oleg Dolgov <dov@media-link.info>
To: community@altlinux.ru
Subject: Re: Re[3]: [Comm] ifup ppp0 vs ppp-on
Date: Tue, 9 Dec 2003 16:11:46 +0200
Message-ID: <20031209161146.20da4d0c.dov@media-link.info> (raw)
In-Reply-To: <E1ASJn5-000Hhl-00.kolyag-mail-ru@f21.mail.ru>
[-- Attachment #1: Type: text/plain, Size: 4247 bytes --]
On Fri, 05 Dec 2003 20:30:55 +0300 "KoLyA" <kolyag@mail.ru> wrote:
> ну вот и разобрались :-)
> в pap-secrets ставится не _логин_ (как в pap-name), а "имя
> сервера". у меня это ukrtel.
> задается в devname (но это ifup так делает). попробуйте
> вырианты из name и device, имхо
> скорее первое.
> в pap-secrets стоят две строчки, потому что вначале _они_
> проверяют _нас_ , потом мы -
> их. так вот, первая строчка означает "передать как пароль
> mypass соединению ukrtel", а
> вторая - принять (в смысле accept) любой пароль от него.
> даже noauth не спасает, вторая строчка все равно должна быть, afaiu
> _______________________________________________
Сдесь вроде разобрались.
Добавил в ppp-on-dialer
после assword: $PASSWORD
строчку OK ''
Вроде логинится. По крайней мере инфа от провайдера касательного поего
логина выдается, но IP не присваивается.
В syslog'е
pppd[7321]: pppd 2.4.1 started by root, uid 0
chat[7323]: timeout set to 3 seconds
chat[7323]: abort on (\nBUSY\r)
chat[7323]: abort on (\nNO ANSWER\r)
chat[7323]: abort on (\nRINGING\r\n\r\nRINGING\r)
chat[7323]: send(^MAT&FE0V1&C1&D2S95=45S0=0^M)
chat[7323]: expect (OK)
chat[7323]: ^M
chat[7323]: OK
chat[7323]: -- got it
chat[7323]: send (ATH0^M)
chat[7323]: timeout set to 50 seconds
chat[7323]: expect (OK)
chat[7323]: ^M
chat[7323]: ^M
chat[7323]: OK
chat[7323]: -- got it
chat[7323]: send (ATDP180808^M)
chat[7323]: expect (CONNECT)
chat[7323]: ^M
chat[7323]: ^M
chat[7323]: CARRIER 28800^M
chat[7323]: ^M
chat[7323]: PROTOCOL: LAP-M^M
chat[7323]: ^M
chat[7323]: COMPRESSION: V.42BIS^M
chat[7323]: ^M
chat[7323]: CONNECT
chat[7323]: -- got it
chat[7323]: send (^M)
chat[7323]: expect (ogin:)
chat[7323]: 28800^M
...skip...
Всякая инфа о контактах моего ISP
...skip...
chat[7323]: ^M
chat[7323]: Login:
chat[7323]: -- got it
chat[7323]: send (МОЙ ЛОГИН^M)
chat[7323]: expect (assword:)
chat[7323]: МОЙ ЛОГИН^M
chat[7323]: Password:
chat[7323]: -- got it
chat[7323]: send (МОЙ ПАРОЛЬ^M)
chat[7323]: expect (OK)
chat[7323]: ^M
chat[7323]: Your credit amount is 38.6121 UAN^M
chat[7323]: Your credit amount is 38.6121 UAN^M
chat[7323]: Entering PPP mode.^M
chat[7323]: Async interface address is unnumbered (Fas tEthernet0/0)^M
chat[7323]: Your IP address is 0.0.0.0. MTU is 1500 by tes^M
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Вот это мне и не нравится :-(
chat[7323]: ^M
chat[7323]: ~^?}#@!}!}6} }8}"}&} }*}}
}#}$@#}%}&)N>"}'}"}(}"?8~~^?}#@!}!}7} }8}"}&} }*} } }#}
chat[7323]: $@#}%}&)N>"}'}"}(}"v1~~^?}#@!}!}8}}8}"}&} }*} }
}#}$@#}%}&)N>"}'}"}(}"6z~~^?}#@!}
chat[7323]: !}9} }8}"}&} }*} }}#}$@#}%}&)N>"}'}"}(}"^?s~~^?}#@!}!}:}
}8}"}&} }*} } #}$@#}%}&
chat[7323]: )N>"}'}"}(}"5a~~^?}#@!}!};}}8}"}&} }*} }
}#}$@#}%}&)N>"}'}"}(}"|h~~^?}#@!}!}<} }8
chat[7323]: }"}&} }*} }}#}$@#}%}&)N>"}'}"}(}"0M~~^?}#@!}!}=} }8}"}&} }*}
} }#}$@#}%}&)N>"}'}
chat[7323]: "}(}"yD~~^?}#@!}!}>} }8}"}&} }*}
}}#}$@#}%}&)N>"}'}"}(}"3V~~^?}#@!}!}?}}8}"}&} }
chat[7323]: *} } }#}$@#}%}&)N>"}'}"}(}"z_~^M
chat[7323]: NO CARRIER^M
chat[7323]: alarm
chat[7323]: Failed
pppd[7321]: Connect script failed
pppd[7321]: Exit.
[root@localhost ppp]# cat ppp-on
#!/bin/sh
...skip...
# These are the parameters. Change as needed.
TELEPHONE=180808 # The telephone number for the connection
ACCOUNT=МОЙ ЛОГИН # 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=217.151.236.2 # 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
#
...skip...
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
...skip...
#
exec /usr/sbin/pppd debug noauth lock modem crtscts /dev/ttyS0 38400 \
asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
noipdefault defaultroute connect $DIALER_SCRIPT
Содержание чего показать для разбора?
--
С наилучшими,
Олег Долгов
<dov at media-link dot info>
Registered Linux user #315454
[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]
next prev parent reply other threads:[~2003-12-09 14:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-04 10:25 Oleg Dolgov
2003-12-04 14:29 ` Oleg Dolgov
2003-12-04 15:39 ` Dmitry
2003-12-05 7:43 ` Oleg Dolgov
2003-12-05 8:02 ` Re[2]: " "KoLyA"
2003-12-05 10:03 ` Oleg Dolgov
2003-12-05 10:44 ` Re[4]: " "KoLyA"
2003-12-05 11:20 ` Oleg Dolgov
2003-12-05 13:20 ` Re[2]: " "KoLyA"
2003-12-05 17:30 ` Re[3]: " "KoLyA"
2003-12-09 14:11 ` Oleg Dolgov [this message]
2003-12-05 14:33 ` Re[4]: " Sasha Martsinuk
2003-12-05 18:32 ` Re[5]: " Sasha Martsinuk
2003-12-04 16:24 ` Aleksandr Fetininsky
2003-12-05 7:19 ` Oleg Dolgov
2003-12-05 8:31 ` Aleksandr Fetininsky
2003-12-05 10:11 ` Oleg Dolgov
2003-12-04 15:32 ` "KoLyA"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031209161146.20da4d0c.dov@media-link.info \
--to=dov@media-link.info \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git