MPD5, потеря коннекта

Настройка сетевых служб, маршрутизации, фаерволлов. Проблемы с сетевым оборудованием.
Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Laboremus
проходил мимо
Сообщения: 3
Зарегистрирован: 2009-01-30 21:21:36

MPD5, потеря коннекта

Непрочитанное сообщение Laboremus » 2009-02-25 22:54:39

Не могу разобраться в проблеме, может кто сможет помочь?
Есть windows 2003 сервер который работает как VPN-сервер, я подключаюсь к нему при помощи компа который у нас является шлюзом. На этом компе крутится FreeBSD 7. В качестве VPN-клиента служит mpd5 и соответственно настроен ядерный NAT в ipfw. Все настроено и работает, НО периодически происходит потеря соединения с сервером VPN и соединение не восстанавливается, хотя, по-моему, все параметры реконнекта выставил. Вот конфиги:
mpd.conf

Код: Выделить всё

pptp_client:
	create bundle static B1
	set iface route default
	set ipcp ranges 192.168.0.190/32 192.168.0.201/32
	set iface up-script /usr/local/etc/mpd5/iface-up
	set iface down-script /usr/local/etc/mpd5/iface-down
	set bundle enable compression
	set ccp yes mppc
	set mppc yes e40
	set mppc yes e128
	set bundle enable crypt-reqd
	set mppc yes stateless
	
	create link static L1 pptp
	set link action bundle B1
	set auth authname "zyx"
	set auth password "zyx"
	set link max-redial 0
	set link mtu 1460
	set link keep-alive 60 180
	set pptp peer rr.rr.rr.rr
	set pptp disable windowing
	open
для клиента назначается IP 192.168.0.190
у сервера 192.168.0.201
других АЙПИ не должно быть
основу для конфига брал из примеров MPD

iface-up:

Код: Выделить всё

#!/bin/sh
/sbin/route add rr.rr.rr.rr tt.tt.tt.tt
/sbin/route delete default
/sbin/route add default 192.168.0.201
iface-down:

Код: Выделить всё

#!/bin/sh
/sbin/route delete default
/sbin/route add default tt.tt.tt.tt
/sbin/route delete rr.rr.rr.rr
конфиг ipfw:

Код: Выделить всё

#!/bin/sh
ipfw -q -f flush

LanOut="ng0"
LanIn="rl0"
IpIn="192.168.1.100"
IpOut="192.168.0.190"
NetMask="24"
NetIn="192.168.1.0"

cmd="ipfw -q add "
$cmd 5 allow tcp from any to ${IpIn} 22 via ${LanIn} 
$cmd 6 allow tcp from ${IpIn} 22 to any via ${LanIn} 

$cmd 7 deny ip from any to 224.0.0.0/4 in via dc0 


#$cmd 5  allow ip from any to any via lo0
#$cmd 10 allow log  all from any to any via ${LanIn}

#$cmd 15  fwd ${IpIn},3128 log tcp from ${NetIn}/${NetMask} to any 80

#$cmd 17 divert 199 log ip from any to any out via ${LanOut}
ipfw nat 100 config ip ${IpOut}
$cmd 30 nat 100 ip from any to any via ${LanOut}
#$cmd 30 nat 100 ip from ${NetIn}/${NetMask} to any out via ${LanOut}
#$cmd 40 nat 100 ip from any to ${IpOut} in via ${LanOut}

$cmd 40 allow gre from 192.168.5.100 to rr.rr.rr.rr out via dc0
$cmd 41 allow gre from rr.rr.rr.rr to 192.168.5.100 in via dc0

$cmd 43 allow tcp from rr.rr.rr.rr 1723 to 192.168.5.100 in via dc0
$cmd 44 allow tcp from 192.168.5.100 to rr.rr.rr.rr 1723 out via dc0

#$cmd 41 divert 199 log ip from not me to ${NetIn}/${NetMask}
#$cmd 41 divert 199 log ip from not me to ${NetIn}/${NetMask}

#$cmd 50 allow udp from ${IpOut} to any 53 via ${LanOut}
$cmd 51 allow udp from any 53 to ${NetIn}/${NetMask} out via ${LanIn}
$cmd 52 allow udp from ${NetIn}/${NetMask} to any 53 in via ${LanIn}
#$cmd 53 allow udp from any 53 to ${IpOut} in via ${LanOut}


#$cmd 60 allow tcp from ${IpOut} to any 80 out via ${LanOut} 
#$cmd 61 allow log tcp from any 80 to ${NetIn}/${NetMask} out via ${LanIn}
$cmd 61 allow tcp from any 80,8080,3123 to ${NetIn}/${NetMask} out via ${LanIn}
$cmd 62 allow tcp from ${NetIn}/${NetMask} to any 80,8080,3123  in via ${LanIn}

$cmd 63 allow tcp from any 21 to ${NetIn}/${NetMask} out via ${LanIn}
$cmd 64 allow tcp from ${NetIn}/${NetMask} to any 21 in via ${LanIn}

$cmd 65 allow tcp from any 110 to ${NetIn}/${NetMask} out via ${LanIn}
$cmd 66 allow tcp from ${NetIn}/${NetMask} to any 110 in via ${LanIn}

$cmd 67 allow tcp from any 995 to ${NetIn}/${NetMask} out via ${LanIn}
$cmd 68 allow tcp from ${NetIn}/${NetMask} to any 995 in via ${LanIn}

$cmd 70 allow icmp from any to any icmptypes 0,8,11

$cmd 71 allow tcp from any 25 to ${NetIn}/${NetMask} out via ${LanIn}
$cmd 72 allow tcp from ${NetIn}/${NetMask} to any 25 in via ${LanIn}

$cmd 81 allow tcp from any 5190 to ${NetIn}/${NetMask} out via ${LanIn}
$cmd 82 allow tcp from ${NetIn}/${NetMask} to any 5190 in via ${LanIn}

$cmd 91 allow udp from any 123 to ${NetIn}/${NetMask} 123 out via ${LanIn}
$cmd 92 allow udp from ${NetIn}/${NetMask} 123 to any 123 in via ${LanIn}

#$cmd 100 allow log all from any to any out via ${LanIn}
#$cmd 101 allow log all from any to any in via ${LanIn}

$cmd 65533 allow log all from any to any 
#$cmd 65500 deny log ip from any to any
Так вот, с такими конфигами mpd периодически теряет связь, но это не так страшно, что более неприятно не восстанавливает её, а это ОЧЕНЬ надо.
Вот логи mpd:

Код: Выделить всё

Feb 25 10:16:23 Router mpd: process 677 terminated
Feb 25 10:21:41 Router mpd: Multi-link PPP daemon for FreeBSD
Feb 25 10:21:41 Router mpd:  
Feb 25 10:21:41 Router mpd: process 677 started, version 5.2 (root@Router 10:23 14-Jan-2009)
Feb 25 10:21:41 Router mpd: CONSOLE: listening on 127.0.0.1 5005
Feb 25 10:21:41 Router mpd: web: listening on 0.0.0.0 5006
Feb 25 10:21:41 Router mpd: [B1] Bundle: Interface ng0 created
Feb 25 10:21:41 Router mpd: [L1] Link: OPEN event
Feb 25 10:21:41 Router mpd: [L1] LCP: Open event
Feb 25 10:21:41 Router mpd: [L1] LCP: state change Initial --> Starting
Feb 25 10:21:41 Router mpd: [L1] LCP: LayerStart
Feb 25 10:21:41 Router mpd: [L1] PPTP call successful
Feb 25 10:21:41 Router mpd: [L1] Link: UP event
Feb 25 10:21:41 Router mpd: [L1] LCP: Up event
Feb 25 10:21:41 Router mpd: [L1] LCP: state change Starting --> Req-Sent
Feb 25 10:21:41 Router mpd: [L1] LCP: SendConfigReq #1
Feb 25 10:21:41 Router mpd: [L1]   ACFCOMP
Feb 25 10:21:41 Router mpd: [L1]   PROTOCOMP
Feb 25 10:21:41 Router mpd: [L1]   ACCMAP 0x000a0000
Feb 25 10:21:41 Router mpd: [L1]   MRU 1500
Feb 25 10:21:41 Router mpd: [L1]   MAGICNUM 99b743fd
Feb 25 10:21:41 Router mpd: [L1] LCP: rec'd Configure Request #0 (Req-Sent)
Feb 25 10:21:41 Router mpd: [L1]   MRU 1400
Feb 25 10:21:41 Router mpd: [L1]   AUTHPROTO CHAP MSOFTv2
Feb 25 10:21:41 Router mpd: [L1]   MAGICNUM 21d14d3e
Feb 25 10:21:41 Router mpd: [L1]   PROTOCOMP
Feb 25 10:21:41 Router mpd: [L1]   ACFCOMP
Feb 25 10:21:41 Router mpd: [L1]   CALLBACK 6
Feb 25 10:21:41 Router mpd: [L1]   MP MRRU 1614
Feb 25 10:21:41 Router mpd: [L1]   ENDPOINTDISC [LOCAL] 7c ec 85 dd 24 79 47 f2 80 e9 36 b9 d0 df 4b c7 00 00 0
Feb 25 10:21:41 Router mpd: [L1]   BACP
Feb 25 10:21:41 Router mpd: [L1]     Not supported
Feb 25 10:21:41 Router mpd: [L1] LCP: SendConfigRej #0
Feb 25 10:21:41 Router mpd: [L1]   CALLBACK 6
Feb 25 10:21:41 Router mpd: [L1]   MP MRRU 1614
Feb 25 10:21:41 Router mpd: [L1]   BACP
Feb 25 10:21:41 Router mpd: [L1] LCP: rec'd Configure Ack #1 (Req-Sent)
Feb 25 10:21:41 Router mpd: [L1]   ACFCOMP
Feb 25 10:21:41 Router mpd: [L1]   PROTOCOMP
Feb 25 10:21:41 Router mpd: [L1]   ACCMAP 0x000a0000
Feb 25 10:21:41 Router mpd: [L1]   MRU 1500
Feb 25 10:21:41 Router mpd: [L1]   MAGICNUM 99b743fd
Feb 25 10:21:41 Router mpd: [L1] LCP: state change Req-Sent --> Ack-Rcvd
Feb 25 10:21:41 Router mpd: [L1] LCP: rec'd Configure Request #1 (Ack-Rcvd)
Feb 25 10:21:41 Router mpd: [L1]   MRU 1400
Feb 25 10:21:41 Router mpd: [L1]   AUTHPROTO CHAP MSOFTv2
Feb 25 10:21:41 Router mpd: [L1]   MAGICNUM 21d14d3e
Feb 25 10:21:41 Router mpd: [L1]   PROTOCOMP
Feb 25 10:21:41 Router mpd: [L1]   ACFCOMP
Feb 25 10:21:41 Router mpd: [L1]   ENDPOINTDISC [LOCAL] 7c ec 85 dd 24 79 47 f2 80 e9 36 b9 d0 df 4b c7 00 00 0
Feb 25 10:21:41 Router mpd: [L1] LCP: SendConfigAck #1
Feb 25 10:21:41 Router mpd: [L1]   MRU 1400
Feb 25 10:21:41 Router mpd: [L1]   AUTHPROTO CHAP MSOFTv2
Feb 25 10:21:41 Router mpd: [L1]   MAGICNUM 21d14d3e
Feb 25 10:21:41 Router mpd: [L1]   PROTOCOMP
Feb 25 10:21:41 Router mpd: [L1]   ACFCOMP
Feb 25 10:21:41 Router mpd: [L1]   ENDPOINTDISC [LOCAL] 7c ec 85 dd 24 79 47 f2 80 e9 36 b9 d0 df 4b c7 00 00 0
Feb 25 10:21:41 Router mpd: [L1] LCP: state change Ack-Rcvd --> Opened
Feb 25 10:21:41 Router mpd: [L1] LCP: auth: peer wants CHAP, I want nothing
Feb 25 10:21:41 Router mpd: [L1] LCP: LayerUp
Feb 25 10:21:41 Router mpd: [L1] CHAP: rec'd CHALLENGE #0 len: 28
Feb 25 10:21:41 Router mpd: [L1]   Name: "ROUTER1"
Feb 25 10:21:41 Router mpd: [L1] CHAP: Using authname "ipservis"
Feb 25 10:21:41 Router mpd: [L1] CHAP: sending RESPONSE #0 len: 62
Feb 25 10:21:41 Router mpd: [L1] CHAP: rec'd SUCCESS #0 len: 46
Feb 25 10:21:41 Router mpd: [L1]   MESG: S=E8305B61BEF3456B790892DDB6DFD00C4907BC5F
Feb 25 10:21:41 Router mpd: [L1] LCP: authorization successful
Feb 25 10:21:41 Router mpd: [L1] Link: Matched action 'bundle "B1" ""'
Feb 25 10:21:41 Router mpd: [L1] Link: Join bundle "B1"
Feb 25 10:21:41 Router mpd: [B1] Bundle: Status update: up 1 link, total bandwidth 64000 bps
Feb 25 10:21:41 Router mpd: [B1] IPCP: Open event
Feb 25 10:21:41 Router mpd: [B1] IPCP: state change Initial --> Starting
Feb 25 10:21:41 Router mpd: [B1] IPCP: LayerStart
Feb 25 10:21:41 Router mpd: [B1] CCP: Open event
Feb 25 10:21:41 Router mpd: [B1] CCP: state change Initial --> Starting
Feb 25 10:21:41 Router mpd: [B1] CCP: LayerStart
Feb 25 10:21:41 Router mpd: [B1] IPCP: Up event
Feb 25 10:21:41 Router mpd: [B1] IPCP: state change Starting --> Req-Sent
Feb 25 10:21:41 Router mpd: [B1] IPCP: SendConfigReq #1
Feb 25 10:21:41 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 10:21:41 Router mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Feb 25 10:21:41 Router mpd: [B1] CCP: Up event
Feb 25 10:21:41 Router mpd: [B1] CCP: state change Starting --> Req-Sent
Feb 25 10:21:41 Router mpd: [B1] CCP: SendConfigReq #1
Feb 25 10:21:41 Router mpd: [B1]   MPPC
Feb 25 10:21:41 Router mpd: [B1]     0x01000060:MPPE(40, 128 bits), stateless
Feb 25 10:21:42 Router mpd: [B1] CCP: rec'd Configure Request #3 (Req-Sent)
Feb 25 10:21:42 Router mpd: [B1]   MPPC
Feb 25 10:21:42 Router mpd: [B1]     0x010000e1:MPPC, MPPE(40, 56, 128 bits), stateless
Feb 25 10:21:42 Router mpd: [B1] CCP: SendConfigNak #3
Feb 25 10:21:42 Router mpd: [B1]   MPPC
Feb 25 10:21:42 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 10:21:42 Router mpd: [B1] IPCP: rec'd Configure Request #4 (Req-Sent)
Feb 25 10:21:42 Router mpd: [B1]   IPADDR 192.168.0.201
Feb 25 10:21:42 Router mpd: [B1]     192.168.0.201 is OK
Feb 25 10:21:42 Router mpd: [B1] IPCP: SendConfigAck #4
Feb 25 10:21:42 Router mpd: [B1]   IPADDR 192.168.0.201
Feb 25 10:21:42 Router mpd: [B1] IPCP: state change Req-Sent --> Ack-Sent
Feb 25 10:21:42 Router mpd: [B1] IPCP: rec'd Configure Reject #1 (Ack-Sent)
Feb 25 10:21:42 Router mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Feb 25 10:21:42 Router mpd: [B1] IPCP: SendConfigReq #2
Feb 25 10:21:42 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 10:21:42 Router mpd: [B1] CCP: rec'd Configure Nak #1 (Req-Sent)
Feb 25 10:21:42 Router mpd: [B1]   MPPC
Feb 25 10:21:42 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 10:21:42 Router mpd: [B1] CCP: SendConfigReq #2
Feb 25 10:21:42 Router mpd: [B1]   MPPC
Feb 25 10:21:42 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 10:21:42 Router mpd: [B1] CCP: rec'd Configure Request #5 (Req-Sent)
Feb 25 10:21:42 Router mpd: [B1]   MPPC
Feb 25 10:21:42 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 10:21:42 Router mpd: [B1] CCP: SendConfigAck #5
Feb 25 10:21:42 Router mpd: [B1]   MPPC
Feb 25 10:21:42 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 10:21:42 Router mpd: [B1] CCP: state change Req-Sent --> Ack-Sent
Feb 25 10:21:42 Router mpd: [B1] IPCP: rec'd Configure Ack #2 (Ack-Sent)
Feb 25 10:21:42 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 10:21:42 Router mpd: [B1] IPCP: state change Ack-Sent --> Opened
Feb 25 10:21:42 Router mpd: [B1] IPCP: LayerUp
Feb 25 10:21:42 Router mpd: [B1]   192.168.0.190 -> 192.168.0.201
Feb 25 10:21:42 Router mpd: [B1] IFACE: Add route 0.0.0.0/0 192.168.0.201 failed: File exists
Feb 25 10:21:42 Router mpd: [B1] IFACE: Up event
Feb 25 10:21:42 Router mpd: [B1] CCP: rec'd Configure Ack #2 (Ack-Sent)
Feb 25 10:21:42 Router mpd: [B1]   MPPC
Feb 25 10:21:42 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 10:21:42 Router mpd: [B1] CCP: state change Ack-Sent --> Opened
Feb 25 10:21:42 Router mpd: [B1] CCP: LayerUp
Feb 25 10:21:42 Router mpd: [B1] CCP: Compress using: mppc (MPPE(128 bits), stateless)
Feb 25 10:21:42 Router mpd: [B1] CCP: Decompress using: mppc (MPPE(128 bits), stateless)
Feb 25 13:11:48 Router mpd: [L1] PPTP call terminated
Feb 25 13:11:48 Router mpd: [L1] Link: DOWN event
Feb 25 13:11:48 Router mpd: [L1] LCP: Down event
Feb 25 13:11:48 Router mpd: [L1] LCP: state change Opened --> Starting
Feb 25 13:11:48 Router mpd: [L1] Link: Leave bundle "B1"
Feb 25 13:11:48 Router mpd: [B1] Bundle: Status update: up 0 links, total bandwidth 9600 bps
Feb 25 13:11:48 Router mpd: [B1] IPCP: Close event
Feb 25 13:11:48 Router mpd: [B1] IPCP: state change Opened --> Closing
Feb 25 13:11:48 Router mpd: [B1] IPCP: SendTerminateReq #3
Feb 25 13:11:48 Router mpd: [B1] IPCP: LayerDown
Feb 25 13:11:48 Router mpd: [B1] IFACE: Down event
Feb 25 13:11:48 Router mpd: [B1] CCP: Close event
Feb 25 13:11:48 Router mpd: [B1] CCP: state change Opened --> Closing
Feb 25 13:11:48 Router mpd: [B1] CCP: SendTerminateReq #3
Feb 25 13:11:48 Router mpd: [B1] CCP: LayerDown
Feb 25 13:11:48 Router mpd: [B1] IPCP: Down event
Feb 25 13:11:48 Router mpd: [B1] IPCP: LayerFinish
Feb 25 13:11:48 Router mpd: [B1] Bundle: No NCPs left. Closing links...
Feb 25 13:11:48 Router mpd: [B1] IPCP: state change Closing --> Initial
Feb 25 13:11:48 Router mpd: [B1] CCP: Down event
Feb 25 13:11:48 Router mpd: [B1] CCP: LayerFinish
Feb 25 13:11:48 Router mpd: [B1] CCP: state change Closing --> Initial
Feb 25 13:11:48 Router mpd: [L1] LCP: LayerDown
Feb 25 13:11:48 Router mpd: [L1] Link: reconnection attempt 1 in 4 seconds
Feb 25 13:11:52 Router mpd: [L1] Link: reconnection attempt 1
Feb 25 13:11:52 Router mpd: [L1] PPTP call successful
Feb 25 13:11:52 Router mpd: [L1] Link: UP event
Feb 25 13:11:52 Router mpd: [L1] LCP: Up event
Feb 25 13:11:52 Router mpd: [L1] LCP: state change Starting --> Req-Sent
Feb 25 13:11:52 Router mpd: [L1] LCP: SendConfigReq #2
Feb 25 13:11:52 Router mpd: [L1]   ACFCOMP
Feb 25 13:11:52 Router mpd: [L1]   PROTOCOMP
Feb 25 13:11:52 Router mpd: [L1]   ACCMAP 0x000a0000
Feb 25 13:11:52 Router mpd: [L1]   MRU 1500
Feb 25 13:11:52 Router mpd: [L1]   MAGICNUM 9f4cad11
Feb 25 13:11:52 Router mpd: [L1] LCP: rec'd Configure Request #0 (Req-Sent)
Feb 25 13:11:52 Router mpd: [L1]   MRU 1400
Feb 25 13:11:52 Router mpd: [L1]   AUTHPROTO CHAP MSOFTv2
Feb 25 13:11:52 Router mpd: [L1]   MAGICNUM 6bde1355
Feb 25 13:11:52 Router mpd: [L1]   PROTOCOMP
Feb 25 13:11:52 Router mpd: [L1]   ACFCOMP
Feb 25 13:11:52 Router mpd: [L1]   CALLBACK 6
Feb 25 13:11:52 Router mpd: [L1]   MP MRRU 1614
Feb 25 13:11:52 Router mpd: [L1]   ENDPOINTDISC [LOCAL] 7c ec 85 dd 24 79 47 f2 80 e9 36 b9 d0 df 4b c7 00 00 0
Feb 25 13:11:52 Router mpd: [L1]   BACP
Feb 25 13:11:52 Router mpd: [L1]     Not supported
Feb 25 13:11:52 Router mpd: [L1] LCP: SendConfigRej #0
Feb 25 13:11:52 Router mpd: [L1]   CALLBACK 6
Feb 25 13:11:52 Router mpd: [L1]   MP MRRU 1614
Feb 25 13:11:52 Router mpd: [L1]   BACP
Feb 25 13:11:52 Router mpd: [L1] LCP: rec'd Configure Ack #2 (Req-Sent)
Feb 25 13:11:52 Router mpd: [L1]   ACFCOMP
Feb 25 13:11:52 Router mpd: [L1]   PROTOCOMP
Feb 25 13:11:52 Router mpd: [L1]   ACCMAP 0x000a0000
Feb 25 13:11:52 Router mpd: [L1]   MRU 1500
Feb 25 13:11:52 Router mpd: [L1]   MAGICNUM 9f4cad11
Feb 25 13:11:52 Router mpd: [L1] LCP: state change Req-Sent --> Ack-Rcvd
Feb 25 13:11:52 Router mpd: [L1] LCP: rec'd Configure Request #1 (Ack-Rcvd)
Feb 25 13:11:52 Router mpd: [L1]   MRU 1400
Feb 25 13:11:52 Router mpd: [L1]   AUTHPROTO CHAP MSOFTv2
Feb 25 13:11:52 Router mpd: [L1]   MAGICNUM 6bde1355
Feb 25 13:11:52 Router mpd: [L1]   PROTOCOMP
Feb 25 13:11:52 Router mpd: [L1]   ACFCOMP
Feb 25 13:11:52 Router mpd: [L1]   ENDPOINTDISC [LOCAL] 7c ec 85 dd 24 79 47 f2 80 e9 36 b9 d0 df 4b c7 00 00 0
Feb 25 13:11:52 Router mpd: [L1] LCP: SendConfigAck #1
Feb 25 13:11:52 Router mpd: [L1]   MRU 1400
Feb 25 13:11:52 Router mpd: [L1]   AUTHPROTO CHAP MSOFTv2
Feb 25 13:11:52 Router mpd: [L1]   MAGICNUM 6bde1355
Feb 25 13:11:52 Router mpd: [L1]   PROTOCOMP
Feb 25 13:11:52 Router mpd: [L1]   ACFCOMP
Feb 25 13:11:52 Router mpd: [L1]   ENDPOINTDISC [LOCAL] 7c ec 85 dd 24 79 47 f2 80 e9 36 b9 d0 df 4b c7 00 00 0
Feb 25 13:11:52 Router mpd: [L1] LCP: state change Ack-Rcvd --> Opened
Feb 25 13:11:52 Router mpd: [L1] LCP: auth: peer wants CHAP, I want nothing
Feb 25 13:11:52 Router mpd: [L1] LCP: LayerUp
Feb 25 13:11:52 Router mpd: [L1] CHAP: rec'd CHALLENGE #0 len: 28
Feb 25 13:11:52 Router mpd: [L1]   Name: "ROUTER1"
Feb 25 13:11:52 Router mpd: [L1] CHAP: Using authname "ipservis"
Feb 25 13:11:52 Router mpd: [L1] CHAP: sending RESPONSE #0 len: 62
Feb 25 13:11:52 Router mpd: [L1] CHAP: rec'd SUCCESS #0 len: 46
Feb 25 13:11:52 Router mpd: [L1]   MESG: S=77E7E24957F039B0A58824E497622C6CA43C6D6D
Feb 25 13:11:52 Router mpd: [L1] LCP: authorization successful
Feb 25 13:11:52 Router mpd: [L1] Link: Matched action 'bundle "B1" ""'
Feb 25 13:11:52 Router mpd: [L1] Link: Join bundle "B1"
Feb 25 13:11:52 Router mpd: [B1] Bundle: Status update: up 1 link, total bandwidth 64000 bps
Feb 25 13:11:52 Router mpd: [B1] IPCP: Open event
Feb 25 13:11:52 Router mpd: [B1] IPCP: state change Initial --> Starting
Feb 25 13:11:52 Router mpd: [B1] IPCP: LayerStart
Feb 25 13:11:52 Router mpd: [B1] CCP: Open event
Feb 25 13:11:52 Router mpd: [B1] CCP: state change Initial --> Starting
Feb 25 13:11:52 Router mpd: [B1] CCP: LayerStart
Feb 25 13:11:52 Router mpd: [B1] IPCP: Up event
Feb 25 13:11:52 Router mpd: [B1] IPCP: state change Starting --> Req-Sent
Feb 25 13:11:52 Router mpd: [B1] IPCP: SendConfigReq #4
Feb 25 13:11:52 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 13:11:52 Router mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Feb 25 13:11:52 Router mpd: [B1] CCP: Up event
Feb 25 13:11:52 Router mpd: [B1] CCP: state change Starting --> Req-Sent
Feb 25 13:11:52 Router mpd: [B1] CCP: SendConfigReq #4
Feb 25 13:11:52 Router mpd: [B1]   MPPC
Feb 25 13:11:52 Router mpd: [B1]     0x01000060:MPPE(40, 128 bits), stateless
Feb 25 13:11:52 Router mpd: [B1] CCP: rec'd Configure Request #3 (Req-Sent)
Feb 25 13:11:52 Router mpd: [B1]   MPPC
Feb 25 13:11:52 Router mpd: [B1]     0x010000e1:MPPC, MPPE(40, 56, 128 bits), stateless
Feb 25 13:11:52 Router mpd: [B1] CCP: SendConfigNak #3
Feb 25 13:11:52 Router mpd: [B1]   MPPC
Feb 25 13:11:52 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 13:11:52 Router mpd: [B1] IPCP: rec'd Configure Request #4 (Req-Sent)
Feb 25 13:11:52 Router mpd: [B1]   IPADDR 192.168.0.201
Feb 25 13:11:52 Router mpd: [B1]     192.168.0.201 is OK
Feb 25 13:11:52 Router mpd: [B1] IPCP: SendConfigAck #4
Feb 25 13:11:52 Router mpd: [B1]   IPADDR 192.168.0.201
Feb 25 13:11:52 Router mpd: [B1] IPCP: state change Req-Sent --> Ack-Sent
Feb 25 13:11:52 Router mpd: [B1] IPCP: rec'd Configure Reject #4 (Ack-Sent)
Feb 25 13:11:52 Router mpd: [B1]   COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Feb 25 13:11:52 Router mpd: [B1] IPCP: SendConfigReq #5
Feb 25 13:11:52 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 13:11:52 Router mpd: [B1] CCP: rec'd Configure Nak #4 (Req-Sent)
Feb 25 13:11:52 Router mpd: [B1]   MPPC
Feb 25 13:11:52 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 13:11:52 Router mpd: [B1] CCP: SendConfigReq #5
Feb 25 13:11:52 Router mpd: [B1]   MPPC
Feb 25 13:11:52 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 13:11:53 Router mpd: [B1] CCP: rec'd Configure Request #5 (Req-Sent)
Feb 25 13:11:53 Router mpd: [B1]   MPPC
Feb 25 13:11:53 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 13:11:53 Router mpd: [B1] CCP: SendConfigAck #5
Feb 25 13:11:53 Router mpd: [B1]   MPPC
Feb 25 13:11:53 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 13:11:53 Router mpd: [B1] CCP: state change Req-Sent --> Ack-Sent
Feb 25 13:11:53 Router mpd: [B1] IPCP: rec'd Configure Nak #5 (Ack-Sent)
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.207
Feb 25 13:11:53 Router mpd: [B1]     192.168.0.207 is unacceptable
Feb 25 13:11:53 Router mpd: [B1] IPCP: SendConfigReq #6
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 13:11:53 Router mpd: [B1] CCP: rec'd Configure Ack #5 (Ack-Sent)
Feb 25 13:11:53 Router mpd: [B1]   MPPC
Feb 25 13:11:53 Router mpd: [B1]     0x01000040:MPPE(128 bits), stateless
Feb 25 13:11:53 Router mpd: [B1] CCP: state change Ack-Sent --> Opened
Feb 25 13:11:53 Router mpd: [B1] CCP: LayerUp
Feb 25 13:11:53 Router mpd: [B1] CCP: Compress using: mppc (MPPE(128 bits), stateless)
Feb 25 13:11:53 Router mpd: [B1] CCP: Decompress using: mppc (MPPE(128 bits), stateless)
Feb 25 13:11:53 Router mpd: [B1] IPCP: rec'd Configure Nak #6 (Ack-Sent)
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.204
Feb 25 13:11:53 Router mpd: [B1]     192.168.0.204 is unacceptable
Feb 25 13:11:53 Router mpd: [B1] IPCP: SendConfigReq #7
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 13:11:53 Router mpd: [B1] IPCP: rec'd Configure Nak #7 (Ack-Sent)
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.202
Feb 25 13:11:53 Router mpd: [B1]     192.168.0.202 is unacceptable
Feb 25 13:11:53 Router mpd: [B1] IPCP: SendConfigReq #8
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 13:11:53 Router mpd: [B1] IPCP: rec'd Configure Nak #8 (Ack-Sent)
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.209
Feb 25 13:11:53 Router mpd: [B1]     192.168.0.209 is unacceptable
Feb 25 13:11:53 Router mpd: [B1] IPCP: SendConfigReq #9
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 13:11:53 Router mpd: [B1] IPCP: rec'd Configure Nak #9 (Ack-Sent)
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.203
Feb 25 13:11:53 Router mpd: [B1]     192.168.0.203 is unacceptable
Feb 25 13:11:53 Router mpd: [B1] IPCP: SendConfigReq #10
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 13:11:53 Router mpd: [B1] IPCP: rec'd Configure Nak #10 (Ack-Sent)
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.208
Feb 25 13:11:53 Router mpd: [B1]     192.168.0.208 is unacceptable
Feb 25 13:11:53 Router mpd: [B1] IPCP: SendConfigReq #11
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 13:11:53 Router mpd: [B1] IPCP: rec'd Configure Nak #11 (Ack-Sent)
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.205
Feb 25 13:11:53 Router mpd: [B1]     192.168.0.205 is unacceptable
Feb 25 13:11:53 Router mpd: [B1] IPCP: SendConfigReq #12
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 13:11:53 Router mpd: [B1] IPCP: rec'd Configure Nak #12 (Ack-Sent)
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.206
Feb 25 13:11:53 Router mpd: [B1]     192.168.0.206 is unacceptable
Feb 25 13:11:53 Router mpd: [B1] IPCP: SendConfigReq #13
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.190
Feb 25 13:11:53 Router mpd: [B1] IPCP: rec'd Configure Nak #13 (Ack-Sent)
Feb 25 13:11:53 Router mpd: [B1]   IPADDR 192.168.0.210
Feb 25 13:11:53 Router mpd: [B1]     192.168.0.210 is unacceptable
Feb 25 13:11:53 Router mpd: [B1] IPCP: not converging
Feb 25 13:11:53 Router mpd: [B1] IPCP: parameter negotiation failed
Feb 25 13:11:53 Router mpd: [B1] IPCP: state change Ack-Sent --> Stopped
Feb 25 13:11:53 Router mpd: [B1] IPCP: LayerFinish
Feb 25 13:11:53 Router mpd: [B1] Bundle: No NCPs left. Closing links...
Feb 25 13:11:53 Router mpd: [B1] Bundle: closing link "L1"...
Feb 25 13:11:53 Router mpd: [L1] Link: CLOSE event
Feb 25 13:11:53 Router mpd: [L1] LCP: Close event
Feb 25 13:11:53 Router mpd: [L1] LCP: state change Opened --> Closing
Feb 25 13:11:53 Router mpd: [L1] Link: Leave bundle "B1"
Feb 25 13:11:53 Router mpd: [B1] Bundle: Status update: up 0 links, total bandwidth 9600 bps
Feb 25 13:11:53 Router mpd: [B1] IPCP: Close event
Feb 25 13:11:53 Router mpd: [B1] IPCP: state change Stopped --> Closed
Feb 25 13:11:53 Router mpd: [B1] CCP: Close event
Feb 25 13:11:53 Router mpd: [B1] CCP: state change Opened --> Closing
Feb 25 13:11:53 Router mpd: [B1] CCP: SendTerminateReq #6
Feb 25 13:11:53 Router mpd: [B1] CCP: LayerDown
Feb 25 13:11:53 Router mpd: [B1] IPCP: Down event
Feb 25 13:11:53 Router mpd: [B1] IPCP: state change Closed --> Initial
Feb 25 13:11:53 Router mpd: [B1] CCP: Down event
Feb 25 13:11:53 Router mpd: [B1] CCP: LayerFinish
Feb 25 13:11:53 Router mpd: [B1] CCP: state change Closing --> Initial
Feb 25 13:11:53 Router mpd: [L1] LCP: SendTerminateReq #3
Feb 25 13:11:53 Router mpd: [L1] LCP: LayerDown
Feb 25 13:11:53 Router mpd: [L1] LCP: rec'd Terminate Ack #3 (Closing)
Feb 25 13:11:53 Router mpd: [L1] LCP: state change Closing --> Closed
Feb 25 13:11:53 Router mpd: [L1] LCP: LayerFinish
Feb 25 13:11:53 Router mpd: [L1] PPTP call terminated
Feb 25 13:11:53 Router mpd: [L1] Link: DOWN event
Feb 25 13:11:53 Router mpd: [L1] LCP: Down event
Feb 25 13:11:53 Router mpd: [L1] LCP: state change Closed --> Initial
Feb 25 13:30:12 Router mpd: caught fatal signal term
Feb 25 13:30:12 Router mpd: [B1] IFACE: Close event
Feb 25 13:30:12 Router mpd: [B1] IPCP: Close event
Feb 25 13:30:12 Router mpd: [B1] CCP: Close event
Feb 25 13:30:14 Router mpd: [B1] Bundle: Shutdown
Feb 25 13:30:14 Router mpd: [L1] Link: Shutdown
Feb 25 13:30:14 Router mpd: process 677 terminated
Feb 25 13:55:19 Router mpd: Multi-link PPP daemon for FreeBSD
Feb 25 13:55:19 Router mpd:  
Feb 25 13:55:19 Router mpd: process 677 started, version 5.2 (root@Router 10:23 14-Jan-2009)
Feb 25 13:55:19 Router mpd: CONSOLE: listening on 127.0.0.1 5005
Feb 25 13:55:19 Router mpd: web: listening on 0.0.0.0 5006
Feb 25 13:55:19 Router mpd: [B1] Bundle: Interface ng0 created
Feb 25 13:55:19 Router mpd: [L1] Link: OPEN event
и т.д.
В логе видно, что он пытает переконнектится и, как я понимаю, пытается определить для сервера IP адрес 192.168.0.203,..205,...208, но почему?
И вся эта эпопея заканчивается вот этой записью
Feb 25 13:11:53 Router mpd: [L1] LCP: state change Closed --> Initial
на ней и висит пока в ручную не перезапустишь процесс или перезагрузишь комп.
Господа, растолкуйте неучу, как заставить mpd делать реконнект качественно?!

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2460 рублей (8 CPU, 8Gb RAM, 2x500Gb HDD, RAID 3ware 9750):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

paradox
проходил мимо
Сообщения: 11620
Зарегистрирован: 2008-02-21 18:15:41

Re: MPD5, потеря коннекта

Непрочитанное сообщение paradox » 2009-02-25 23:11:14

у вас впн сервером кто? винда?
такого вы дядю делате это
set ipcp ranges 192.168.0.190/32 192.168.0.201/32
????

Laboremus
проходил мимо
Сообщения: 3
Зарегистрирован: 2009-01-30 21:21:36

Re: MPD5, потеря коннекта

Непрочитанное сообщение Laboremus » 2009-02-26 0:08:44

Мне надо чтоб ip мне присвоило именно 192.168.0.190, в винде выставлена опция позволяющая клиенту задавать его IP.

Laboremus
проходил мимо
Сообщения: 3
Зарегистрирован: 2009-01-30 21:21:36

Re: MPD5, потеря коннекта

Непрочитанное сообщение Laboremus » 2009-02-26 0:14:25

Или есть какая-то другая команда в mpd позваляющая указать серверу какой ip нужно присвоить клиенту помимо

Код: Выделить всё

set ipcp ranges 192.168.0.190/32 192.168.0.201/32
???

paradox
проходил мимо
Сообщения: 11620
Зарегистрирован: 2008-02-21 18:15:41

Re: MPD5, потеря коннекта

Непрочитанное сообщение paradox » 2009-02-26 0:20:36

В логе видно, что он пытает переконнектится и, как я понимаю, пытается определить для сервера IP адрес
кто то из вас двоих (вы или винда) слишком умные
вам бы мануал почитать
а то оба что то хотите
а договориться не можете

да и вообще лучше всю конструкцию с нуля переделать
и переосмыслить

Гость
проходил мимо

Re: MPD5, потеря коннекта

Непрочитанное сообщение Гость » 2009-03-27 16:59:45

мучался сначала с MPD. пока не наткнулся на конфиг

конфиг MPD.CONF

Код: Выделить всё

startup:
       set user root
       set console self 127.0.0.1 5005
       set console open
       set web self 127.0.0.1 5006
       set web open

default:
       load dialup
dialup:
       create bundle static B1
       set iface route default
       set ipcp ranges 0.0.0.0/0 0.0.0.0/0
       create link static L1 pptp
       set link action bundle B1
       set link accept chap
       set auth authname ВАШЛОГИН
       set auth password ВАШПАРОЛЬ
       set link max-redial 0
       set link mtu 1440
       set link keep-alive 20 75
       set pptp peer vpn.ВАШПРОВАЙДЕР.ru
       set pptp disable windowing
       open
 
потом долго понять не мог фиг ли он меня в инет не пускает хотя соединение установилось с инетом
потом набрёл на статью http://ru.posix.wikia.com/wiki/PPTP
когда пытался настроить маршрутизацию через скрипты всё чего то не пахало, когда прописал статически в rc.conf всё заработало на ура - попробуй может поможет

теперь у меня вопрос, как на всё это IPFW навернуть? может кто нить подробно объяснить что нужно оставить открытым обязательно?