Перепробовал уже много всего... Но почему-то происходит обрыв связи...
Помогите плз разобраться в проблеме...
IP: 79.170.188.67
Шлюз: 79:170:188.65
IP VPN-сервера: 193.111.10.28
Лог MPD:
Код: Выделить всё
process 616 started, version 4.4.1 (root@new 19:58 15-Nov-2008)
CONSOLE: listening on 0.0.0.0 5005
web: listening on 127.0.0.1 5006
PPTP: waiting for connection on 0.0.0.0
[vpn] using interface ng0
[vpn] link: OPEN event
[vpn] LCP: Open event
[vpn] LCP: state change Initial --> Starting
[vpn] LCP: LayerStart
pptp0: connecting to 193.111.10.28 1723
pptp0: connected to 193.111.10.28 1723
pptp0: attached to connection with 193.111.10.28 1723
pptp0-0: outgoing call connected at 64000 bps
[vpn] PPTP call successful
[vpn] link: UP event
[vpn] link: origination is local
[vpn] LCP: Up event
[vpn] LCP: state change Starting --> Req-Sent
[vpn] LCP: SendConfigReq #1
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM fff56778
[vpn] LCP: rec'd Configure Ack #1 (Req-Sent)
ACFCOMP
PROTOCOMP
ACCMAP 0x000a0000
MRU 1500
MAGICNUM fff56778
[vpn] LCP: state change Req-Sent --> Ack-Rcvd
[vpn] LCP: rec'd Configure Request #31 (Ack-Rcvd)
ACFCOMP
PROTOCOMP
MRU 1500
MAGICNUM d3ab0f54
AUTHPROTO CHAP MSOFTv2
[vpn] LCP: SendConfigAck #31
ACFCOMP
PROTOCOMP
MRU 1500
MAGICNUM d3ab0f54
AUTHPROTO CHAP MSOFTv2
[vpn] LCP: state change Ack-Rcvd --> Opened
[vpn] LCP: auth: peer wants CHAP, I want nothing
[vpn] LCP: LayerUp
[vpn] CHAP: rec'd CHALLENGE #1
Name: ""
Using authname "XXXXXXXXXX"
[vpn] CHAP: sending RESPONSE len:56
[vpn] CHAP: rec'd SUCCESS #1
MESG: S=E6C6E6C6701A5CE92AE780C9EF7E5A4F2DE9F7BC
[vpn] LCP: authorization successful
[vpn] Bundle up: 1 link, total bandwidth 64000 bps
[vpn] IPCP: Open event
[vpn] IPCP: state change Initial --> Starting
[vpn] IPCP: LayerStart
[vpn] IPCP: Up event
[vpn] IPCP: state change Starting --> Req-Sent
[vpn] IPCP: SendConfigReq #1
IPADDR 79.170.188.67
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: rec'd Configure Request #23 (Req-Sent)
IPADDR 129.9.110.1
129.9.110.1 is OK
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: SendConfigAck #23
IPADDR 129.9.110.1
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: state change Req-Sent --> Ack-Sent
[vpn] rec'd unexpected protocol CCP, rejecting
[vpn] IPCP: rec'd Configure Nak #1 (Ack-Sent)
IPADDR 129.9.110.200
129.9.110.200 is OK
[vpn] IPCP: SendConfigReq #2
IPADDR 129.9.110.200
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] rec'd unexpected protocol CCP, rejecting
[vpn] IPCP: rec'd Configure Request #24 (Ack-Sent)
IPADDR 129.9.110.1
129.9.110.1 is OK
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: SendConfigAck #24
IPADDR 129.9.110.1
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: rec'd Configure Ack #2 (Ack-Sent)
IPADDR 129.9.110.200
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[vpn] IPCP: state change Ack-Sent --> Opened
[vpn] IPCP: LayerUp
129.9.110.200 -> 129.9.110.1
[vpn] IFACE: Up event
[vpn] IPCP: rec'd Terminate Request #25 (Opened)
[vpn] IPCP: state change Opened --> Stopping
[vpn] IPCP: SendTerminateAck #3
[vpn] IPCP: LayerDown
[vpn] IFACE: Down event
[vpn] LCP: rec'd Terminate Request #32 (Opened)
[vpn] LCP: state change Opened --> Stopping
[vpn] AUTH: Accounting data for user : 2 seconds, 224 octets in, 231 octets out
[vpn] Bundle up: 0 links, total bandwidth 9600 bps
[vpn] IPCP: Close event
[vpn] IPCP: state change Stopping --> Closing
[vpn] IPCP: Down event
[vpn] IPCP: LayerFinish
[vpn] No NCPs left. Closing links...
[vpn] closing link "vpn"...
[vpn] IPCP: state change Closing --> Initial
[vpn] AUTH: Cleanup
[vpn] LCP: SendTerminateAck #2
[vpn] LCP: LayerDown
[vpn] link: CLOSE event
[vpn] LCP: Close event
[vpn] LCP: state change Stopping --> Closing
pptp0: got StopCtrlConnRequest: reason=local shutdown
pptp0: killing connection with 193.111.10.28 1723
pptp0-0: killing channel
[vpn] PPTP call terminated
[vpn] link: DOWN event
[vpn] LCP: Down event
[vpn] LCP: LayerFinish
[vpn] LCP: state change Closing --> Initial
Код: Выделить всё
startup:
# configure the console
set console port 5005
set console ip 0.0.0.0
set console user UUUUUUUU PPPPPPPPP
set console user U11111111 P11111111
set console open
# configure the web server
set web port 5006
set web user foo bar
set web open
default:
load vpn
vpn:
new -i ng0 vpn vpn
set iface disable on-demand
set iface idle 0
set iface up-script /usr/local/etc/mpd4/vpn-up.sh
set iface down-script /usr/local/etc/mpd4/vpn-down.sh
set bundle disable multilink
set auth authname "XXXXXX"
set auth password "YYYYYYYYYYYYY"
set link keep-alive 60 180
set link accept chap
set link accept pap
set bundle disable compression
#set ccp yes mpp-e40
#set ccp no mpp-e128
#set bundle disable crypt-reqd
#set ccp no mpp-stateless
set ipcp accept vjcomp
set link mtu 1460
open
Код: Выделить всё
vpn:
set link type pptp
set pptp peer 193.111.10.28
set pptp enable originate incoming outcall
Код: Выделить всё
#!/bin/sh
VPN=193.111.10.28
GW=79.170.188.65
route delete $VPN
route add $VPN $GW
route delete default
route add default -interface ng0
Код: Выделить всё
#!/bin/sh
VPN=193.111.10.28
GW=79.170.188.65
route delete default
route add default $GW
route delete $VPN
Код: Выделить всё
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:15:17:4e:89:ac
inet 79.170.188.67 netmask 0xffffff00 broadcast 79.170.188.255
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:15:17:4e:89:ad
inet 79.170.188.68 netmask 0xffffff00 broadcast 79.170.188.255
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
Код: Выделить всё
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:15:17:4e:89:ac
inet 79.170.188.67 netmask 0xffffff00 broadcast 79.170.188.255
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:15:17:4e:89:ad
inet 79.170.188.68 netmask 0xffffff00 broadcast 79.170.188.255
media: Ethernet autoselect
status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
ng0: flags=8890<POINTOPOINT,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1500
Код: Выделить всё
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 79.170.188.65 UGS 0 231 em0
79.170.188.0/24 link#1 UC 0 0 em0
79.170.188.65 00:0f:e2:19:34:5c UHLW 2 0 em0 1182
127.0.0.1 127.0.0.1 UH 0 0 lo0
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UHL lo0
fe80::%lo0/64 fe80::1%lo0 U lo0
fe80::1%lo0 link#3 UHL lo0
ff01:3::/32 fe80::1%lo0 UC lo0
ff02::%lo0/32 fe80::1%lo0