URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 38901
[ Назад ]

Исходное сообщение
"PPP + mgetty"

Отправлено jazzy , 27-Дек-03 13:17 
Добрый день.
Впервые настраиваю линукс (Mandrake 9.1) на прием входящих звонков.
настройки следующие

mgetty.config      

debug 4
fax-id 00 00 000000
speed 57600
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 "" ATS0=0Q0&D2&C1 OK
modem-check-time 3600
rings 1
answer-chat "" ATA CONNECT \c \r
answer-chat-timeout 80
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

login.config

/AutoPPP/ -     a_ppp   /usr/sbin/pppd file /etc/ppp/options.modem auth +chap +pap login debug

options.modem

modem
noipdefault
nodetach
debug
noccp
proxyarp
crtscts
ms-dns 192.168.0.1
ms-dns 213.24.0.1
ms-wins 192.168.0.1
#domain net.slvz.ru
idle 1000
#passive

options.ttyS1
:192.168.0.5
netmask 255.255.255.0

chap-secrets
'Client' * 'pass' 192.168.0.5


в /etc/inittab
добавил строку
S1:2345:respawn:/usr/local/sbin/mgetty ttyS1

лог ошибок следующий

pppd 2.4.1 started by root, uid 0
using channel 2
Using interface ppp1
Connect: ppp1 <--> /dev/tts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x544e440c> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x544e440c> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x544e440c> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x544e440c> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0x4d8677c4> <pcomp> <accomp> < 0d 03 06>]
sent [LCP ConfRej id=0x3 < 0d 03 06>]
rcvd [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x4d8677c4> <pcomp> <accomp>]
sent [LCP ConfAck id=0x4 <asyncmap 0x0> <magic 0x4d8677c4> <pcomp> <accomp>]
sent [CHAP Challenge id=0x1 <ab3ecae37f5caf61d697986ea14a542ba0>, name = "gw.net.slvz.ru"]
rcvd [LCP code=0xc id=0x5 4d 86 77 c4 4d 53 52 41 53 56 35 2e 30 30]
sent [LCP CodeRej id=0x2 0c 05 00 12 4d 86 77 c4 4d 53 52 41 53 56 35 2e rcvd [LCP code=0xc id=0x6 4d 86 77 c4 4d 53 52 41 53 2d 30 2d 41 58 2d 45 5a 48 49]
sent [LCP CodeRej id=0x3 0c 06 00 17 4d 86 77 c4 4d 53 52 41 53 2d 30 2d 41 58 2d 45 5a 48 49]
rcvd [CHAP Response id=0x1 <e518c4a2b4e83446548f93b39d97b66a>, name = "Client"]
sent [CHAP Success id=0x1 "Welcome to gw.net.slvz.ru."]
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 0f 01>]
CHAP peer authentication succeeded for Client
rcvd [IPCP ConfReq id=0x7 <compress VJ 0f 01> <addr 192.168.0.5>]
sent [IPCP ConfAck id=0x7 <compress VJ 0f 01> <addr 192.168.0.5>]
rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <addrs 0.0.0.0 192.168.0.5> <compress VJ 0f 01>]
rcvd [IPCP ConfRej id=0x2 <addrs 0.0.0.0 192.168.0.5>]
sent [IPCP ConfReq id=0x3 <compress VJ 0f 01>]
rcvd [IPCP ConfAck id=0x3 <compress VJ 0f 01>]
Could not determine local IP address
sent [IPCP TermReq id=0x4 "Could not determine local IP address"]
sent [IPCP TermReq id=0x5 "Could not determine local IP address"]
sent [LCP TermReq id=0x4 "No network protocols running"]
Hangup (SIGHUP)
sent [LCP TermReq id=0x5 "No network protocols running"]
Connection terminated.
Connect time 0.2 minutes.
Sent 142 bytes, received 818 bytes

За ранее благодарен за ответы.


Содержание

Сообщения в этом обсуждении
"PPP + mgetty"
Отправлено Глеб Пахаренко , 27-Дек-03 16:00 
Пытался настроить сабж под RedHat9 но тоже ничего не вышло если кто знает как это делать
помогите


>Добрый день.
>Впервые настраиваю линукс (Mandrake 9.1) на прием входящих звонков.
>настройки следующие
>
>mgetty.config
>
>debug 4
>fax-id 00 00 000000
>speed 57600
>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 "" ATS0=0Q0&D2&C1 OK
>modem-check-time 3600
>rings 1
>answer-chat "" ATA CONNECT \c \r
>answer-chat-timeout 80
>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
>
>login.config
>
>/AutoPPP/ -     a_ppp   /usr/sbin/pppd file /etc/ppp/options.modem
>auth +chap +pap login debug
>
>options.modem
>
>modem
>noipdefault
>nodetach
>debug
>noccp
>proxyarp
>crtscts
>ms-dns 192.168.0.1
>ms-dns 213.24.0.1
>ms-wins 192.168.0.1
>#domain net.slvz.ru
>idle 1000
>#passive
>
>options.ttyS1
>:192.168.0.5
>netmask 255.255.255.0
>
>chap-secrets
>'Client' * 'pass' 192.168.0.5
>
>
>в /etc/inittab
>добавил строку
>S1:2345:respawn:/usr/local/sbin/mgetty ttyS1
>
>лог ошибок следующий
>
>pppd 2.4.1 started by root, uid 0
>using channel 2
>Using interface ppp1
>Connect: ppp1 <--> /dev/tts/1
>sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x544e440c> <pcomp> <accomp>]
>rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x544e440c> <pcomp> <accomp>]
>sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x544e440c> <pcomp> <accomp>]
>rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x544e440c> <pcomp> <accomp>]
>rcvd [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0x4d8677c4> <pcomp> <accomp> < 0d 03 06>]
>sent [LCP ConfRej id=0x3 < 0d 03 06>]
>rcvd [LCP ConfReq id=0x4 <asyncmap 0x0> <magic 0x4d8677c4> <pcomp> <accomp>]
>sent [LCP ConfAck id=0x4 <asyncmap 0x0> <magic 0x4d8677c4> <pcomp> <accomp>]
>sent [CHAP Challenge id=0x1 <ab3ecae37f5caf61d697986ea14a542ba0>, name = "gw.net.slvz.ru"]
>rcvd [LCP code=0xc id=0x5 4d 86 77 c4 4d 53 52 41
>53 56 35 2e 30 30]
>sent [LCP CodeRej id=0x2 0c 05 00 12 4d 86 77 c4
>4d 53 52 41 53 56 35 2e rcvd [LCP code=0xc
>id=0x6 4d 86 77 c4 4d 53 52 41 53 2d
>30 2d 41 58 2d 45 5a 48 49]
>sent [LCP CodeRej id=0x3 0c 06 00 17 4d 86 77 c4
>4d 53 52 41 53 2d 30 2d 41 58 2d
>45 5a 48 49]
>rcvd [CHAP Response id=0x1 <e518c4a2b4e83446548f93b39d97b66a>, name = "Client"]
>sent [CHAP Success id=0x1 "Welcome to gw.net.slvz.ru."]
>sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 0f 01>]
>CHAP peer authentication succeeded for Client
>rcvd [IPCP ConfReq id=0x7 <compress VJ 0f 01> <addr 192.168.0.5>]
>sent [IPCP ConfAck id=0x7 <compress VJ 0f 01> <addr 192.168.0.5>]
>rcvd [IPCP ConfRej id=0x1 <addr 0.0.0.0>]
>sent [IPCP ConfReq id=0x2 <addrs 0.0.0.0 192.168.0.5> <compress VJ 0f 01>]
>rcvd [IPCP ConfRej id=0x2 <addrs 0.0.0.0 192.168.0.5>]
>sent [IPCP ConfReq id=0x3 <compress VJ 0f 01>]
>rcvd [IPCP ConfAck id=0x3 <compress VJ 0f 01>]
>Could not determine local IP address
>sent [IPCP TermReq id=0x4 "Could not determine local IP address"]
>sent [IPCP TermReq id=0x5 "Could not determine local IP address"]
>sent [LCP TermReq id=0x4 "No network protocols running"]
>Hangup (SIGHUP)
>sent [LCP TermReq id=0x5 "No network protocols running"]
>Connection terminated.
>Connect time 0.2 minutes.
>Sent 142 bytes, received 818 bytes
>
>За ранее благодарен за ответы.



"PPP + mgetty"
Отправлено jazzy , 27-Дек-03 16:15 
Удалил из файла options.modem ключ noipdefault

в файле options.ttyS1
написал 192.168.0.1:192.168.0.5

заменил информацию о ip адресе клиента на *

заработало