LINUX.ORG.RU
ФорумAdmin

mgetty+pppd; подскажите в чём грабли .ПЛС


0

0

есть сервер удалённого доступа на Linux 7.2 mgetty как полагается поднимает трубку и запускает pppd

-----/etc/ppp/options------- name ras modem crtscts auth +pap +chap asyncmap a0000 debug lock proxyarp ----------end----------------- ------/etc/ppp/options.ttyS0-- netmask 255.255.255.248 ms-dns 192.168.0.38 ms-dns 192.168.0.39 #wins-addr 192.168.0.39 192.168.64.15:192.168.64.17 ----------end----------------- ------/etc/ppp/options.ttyS1-- netmask 255.255.255.248 ms-dns 192.168.0.38 ms-dns 192.168.0.39 #wins-addr 192.168.0.39 192.168.64.16:192.168.64.18 -----------end---------------

Конектился и с W98 И W2k

---------pppd.log---------------------------------------------------

20:25:39 localhost mgetty[1901]: data dev=ttyS1, pid=1901, caller='none', conn='28800/ARQ/V34/LAPM/V42BIS', name='', cmd='/usr 20:25:39 localhost pppd[1901]: pppd 2.4.1 started by a_ppp, uid 0 20:25:39 localhost pppd[1901]: using channel 16 20:25:39 localhost pppd[1901]: Using interface ppp0 20:25:39 localhost pppd[1901]: Connect: ppp0 <--> /dev/ttyS1 20:25:39 localhost pppd[1901]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access 20:25:39 localhost pppd[1901]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth chap MD5> <magic 0x4046e810> <pcomp> <accomp> 20:25:42 localhost pppd[1901]: rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0x191f46> <pcomp> <accomp> <callback CBCP>] 20:25:42 localhost pppd[1901]: sent [LCP ConfAck id=0x3 <asyncmap 0xa0000> <magic 0x191f46> <pcomp> <accomp> <callback CBCP>] 20:25:42 localhost pppd[1901]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth chap MD5> <magic 0x4046e810> <pcomp> <accomp> 20:25:42 localhost pppd[1901]: rcvd [LCP ConfAck id=0x1 <asyncmap 0xa0000> <auth chap MD5> <magic 0x4046e810> <pcomp> <accomp> 20:25:42 localhost pppd[1901]: sent [CHAP Challenge id=0x1 <7ccec711d7c8b989babe897a418702b59ffd1a57e7>, name = "ras"] 20:25:42 localhost pppd[1901]: rcvd [CHAP Response id=0x1 <f3728b9195967429db842077f328b132>, name = "volff"] 20:25:42 localhost pppd[1901]: Warning - secret file /etc/ppp/chap-secrets has world and/or group access 20:25:42 localhost pppd[1901]: sent [CHAP Success id=0x1 "Welcome to localhost.localdomain."] 20:25:42 localhost pppd[1901]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>] 20:25:42 localhost pppd[1901]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 20:25:42 localhost pppd[1901]: CHAP peer authentication succeeded for volff 20:25:45 localhost pppd[1901]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>] 20:25:45 localhost pppd[1901]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 20:25:48 localhost pppd[1901]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>] 20:25:48 localhost pppd[1901]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 20:25:51 localhost pppd[1901]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>] 20:25:51 localhost pppd[1901]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 20:25:54 localhost pppd[1901]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>] 20:25:54 localhost pppd[1901]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 20:25:57 localhost pppd[1901]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>] 20:25:57 localhost pppd[1901]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 20:26:00 localhost pppd[1901]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>] 20:26:00 localhost pppd[1901]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 20:26:03 localhost pppd[1901]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>] 20:26:03 localhost pppd[1901]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 20:26:06 localhost pppd[1901]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>] 20:26:06 localhost pppd[1901]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 20:26:09 localhost pppd[1901]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>] 20:26:09 localhost pppd[1901]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] 20:26:12 localhost pppd[1901]: IPCP: timeout sending Config-Requests 20:26:12 localhost pppd[1901]: sent [LCP TermReq id=0x2 "No network protocols running"] 20:26:13 localhost pppd[1901]: rcvd [LCP TermAck id=0x2] 20:26:13 localhost pppd[1901]: Connection terminated. 20:26:13 localhost pppd[1901]: Connect time 0.6 minutes. 20:26:13 localhost pppd[1901]: Sent 310 bytes, received 0 bytes. 20:26:13 localhost pppd[1901]: Exit.

------------------------end------------------------------------------

Подскажите что где надо подкрутить ,а то уже сильно умаился плс.

anonymous

ты бы запостил в нормальном виде...
а то так лог читать - меня лично ломает ;-(

Ruwa
()

Прошу прощения , сразу не прсёк :),попробую повторить ещёраз:

-----/etc/ppp/options-------
name
ras
modem
crtscts
auth
+pap
+chap
asyncmap
a0000
debug
lock
proxyarp
----------end-----------------
------/etc/ppp/options.ttyS0--
netmask 255.255.255.248
ms-dns 192.168.0.38
ms-dns 192.168.0.39
#wins-addr 192.168.0.39 #<- Почему pppd не воспринемает эту строку???
192.168.64.15:192.168.64.17
----------end-----------------
------/etc/ppp/options.ttyS1--
netmask 255.255.255.248
ms-dns 192.168.0.38
ms-dns 192.168.0.39
#wins-addr 192.168.0.39
192.168.64.16:192.168.64.18
-----------end--------------- 

Конектился и с W98 И W2k 
---------pppd.log--------------------------------------------------- 

Mar 13 20:01:00 localhost CROND[1752]: (root) CMD (run-parts /etc/cron.hourly)
Mar 13 20:01:34 localhost mgetty[1745]: data dev=ttyS1, pid=1745, caller='none',
   conn='26400/ARQ/V34/LAPM/V42BIS', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
Mar 13 20:01:34 localhost pppd[1745]: pppd 2.4.1 started by a_ppp, uid 0
Mar 13 20:01:34 localhost pppd[1745]: using channel 14
Mar 13 20:01:35 localhost pppd[1745]: Using interface ppp0
Mar 13 20:01:35 localhost pppd[1745]: Connect: ppp0 <--> /dev/ttyS1
Mar 13 20:01:35 localhost pppd[1745]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Mar 13 20:01:35 localhost pppd[1745]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x928e798> <pcomp> <accomp>]
Mar 13 20:01:37 localhost pppd[1745]: rcvd [LCP ConfReq id=0x3 <asyncmap 0xa0000> <magic 0x31400> <pcomp> <accomp> <callback CBCP>]
Mar 13 20:01:37 localhost pppd[1745]: sent [LCP ConfAck id=0x3 <asyncmap 0xa0000> <magic 0x31400> <pcomp> <accomp> <callback CBCP>]
Mar 13 20:01:38 localhost pppd[1745]: sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x928e798> <pcomp> <accomp>]
Mar 13 20:01:38 localhost pppd[1745]: rcvd [LCP ConfAck id=0x1 <asyncmap 0xa0000> <magic 0x928e798> <pcomp> <accomp>]
Mar 13 20:01:38 localhost pppd[1745]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>]
Mar 13 20:01:38 localhost pppd[1745]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 13 20:01:41 localhost pppd[1745]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>]
Mar 13 20:01:41 localhost pppd[1745]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 13 20:01:44 localhost pppd[1745]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>]
Mar 13 20:01:44 localhost pppd[1745]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 13 20:01:47 localhost pppd[1745]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>]
Mar 13 20:01:47 localhost pppd[1745]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 13 20:01:50 localhost pppd[1745]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>]
Mar 13 20:01:50 localhost pppd[1745]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 13 20:01:53 localhost pppd[1745]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>]
Mar 13 20:01:53 localhost pppd[1745]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 13 20:01:56 localhost pppd[1745]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>]
Mar 13 20:01:56 localhost pppd[1745]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 13 20:01:59 localhost pppd[1745]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>]
Mar 13 20:01:59 localhost pppd[1745]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 13 20:02:02 localhost pppd[1745]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>]
Mar 13 20:02:02 localhost pppd[1745]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 13 20:02:05 localhost pppd[1745]: sent [IPCP ConfReq id=0x1 <addr 192.168.64.16> <compress VJ 0f 01>]
Mar 13 20:02:05 localhost pppd[1745]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Mar 13 20:02:08 localhost pppd[1745]: IPCP: timeout sending Config-Requests
Mar 13 20:02:08 localhost pppd[1745]: sent [LCP TermReq id=0x2 "No network protocols running"]
Mar 13 20:02:11 localhost pppd[1745]: sent [LCP TermReq id=0x3 "No network protocols running"]
Mar 13 20:02:14 localhost pppd[1745]: Connection terminated.
Mar 13 20:02:14 localhost pppd[1745]: Exit.

------------------------end------------------------------------------ 

Подскажите что где надо подкрутить ,а то уже сильно умаился плс.

volff
()

посмотри в книге у Водолазского"путь к линух" во втором издании..

Bergamot
()

нет книги и что самое ужасное нет возможности найти Нельзяли по конкретнее обьяснить???

volff
()

По-моему, ты уже десятый, кто столкнулся с проблемами RH 7.2 и Win98. 
Навскидку:
1) добавь в файл options опицию nodetach
2)  chown root /etc/ppp/pap-secrets
    chmod 600 /etc/ppp/pap-secrets
3) не
name
ras
, а 
name ras
Аналогично asyncmap. Можно вообще убрать asyncmap.
То ли опечатка когда цитировал, то ли действительно параметры опций отдельно
от самих опций.
4) у тебя в pap-secrets есть строчка ras? Клиенты прописаны в pap-secrets?
5) +pap -chap (оставь что-нибудь одно)
6) не wins-addr, а ms-wins (а также  ms-dns).

Если действительно не помогает, скачай исходники pppd-4.1,
деинсталлируй старый,  пересобери pppd из исходников.

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