Помогите поднять VPN

Ответить
Аватара пользователя
Dragon_Lord

Помогите поднять VPN

Сообщение Dragon_Lord »

Включаю mpd vpn и ноль эмоций. (а выкдючается на ctrl+c ?)

Вот конфиг:

- --- cut here (mpd.conf) ---

default:

load vpn



vpn:

new -i ng0 vpn vpn

set iface disable on-demand

set iface addrs 192.168.1.1 192.168.2.1

set iface idle 0

set iface route default

set bundle disable multilink

set bundle authname "XXXXXX"

set bundle password "YYYYYY"

set link yes acfcomp protocomp

set link disable chap pap

set link accept chap pap

# set link no pap

# set link yes chap

# If remote machine is NT you need this..

set link enable no-orig-auth

set link keep-alive 10 75

set ipcp yes vjcomp

set ipcp ranges 0.0.0.0/0 0.0.0.0/0

#

# The five lines below enable Microsoft Point-to-Point encryption

# (MPPE) using the ng_mppc(8) netgraph node type.

#

set bundle enable compression

set ccp yes mppc

set ccp yes mpp-e40

set ccp yes mpp-e128

set bundle enable crypt-reqd

set ccp yes mpp-stateless

open

- --- cut here ---



- --- cut here (mpd.links) ---

vpn:

set link type pptp

set pptp self A.B.C.D

set pptp peer X.Y.Z.W

set pptp enable originate incoming outcall

- --- cut here ---



Вот Лог:

Multi-link PPP for FreeBSD, by Archie L. Cobbs.

Based on iij-ppp, by Toshiharu OHNO.

mpd: pid 768, version 3.18 (root@Dragon_Lord.ru 13:11 15-Mar-2007)

[vpn] ppp node is "mpd768-vpn"

mpd: local IP address for PPTP is 10.73.8.12

[vpn] using interface ng0

[vpn] IPCP: peer address cannot be zero

[vpn] IFACE: Open event

[vpn] IPCP: Open event

[vpn] IPCP: state change Initial --> Starting

[vpn] IPCP: LayerStart

[vpn:vpn] [vpn] bundle: OPEN event in state CLOSED

[vpn] opening link "vpn"...

[vpn] link: OPEN event

[vpn] LCP: Open event

[vpn] LCP: state change Initial --> Starting

[vpn] LCP: LayerStart

[vpn] device: OPEN event in state DOWN

pptp0: connecting to 10.73.0.1:1723

[vpn] device is now in state OPENING

pptp0: connected to 10.73.0.1:1723

pptp0: attached to connection with 10.73.0.1:1723

pptp0-0: outgoing call connected at 549240320 bps

[vpn] PPTP call successful

[vpn] device: UP event in state OPENING

[vpn] device is now in state UP

[vpn] link: UP event

[vpn] link: origination is local

[vpn] LCP: Up event

[vpn] LCP: state change Starting --> Req-Sent

[vpn] LCP: phase shift DEAD --> ESTABLISH

[vpn] LCP: SendConfigReq #1

ACFCOMP

PROTOCOMP

MRU 1500

MAGICNUM de835300

[vpn] LCP: rec'd Configure Request #0 link 0 (Req-Sent)

AUTHPROTO CHAP MSOFTv2

MAGICNUM 59003d29

PROTOCOMP

ACFCOMP

CALLBACK

Not supported

MP MRRU 1614

ENDPOINTDISC [LOCAL] c7 1e 39 e5 86 96 46 05 82 1b 20 25 44 12 bb 0a 00 00 00 00

BACP

Not supported

[vpn] LCP: SendConfigRej #0

CALLBACK

MP MRRU 1614

BACP

[vpn] LCP: rec'd Configure Ack #1 link 0 (Req-Sent)

ACFCOMP

PROTOCOMP

MRU 1500

MAGICNUM de835300

[vpn] LCP: state change Req-Sent --> Ack-Rcvd

[vpn] LCP: rec'd Configure Request #1 link 0 (Ack-Rcvd)

AUTHPROTO CHAP MSOFTv2

MAGICNUM 59003d29

PROTOCOMP

ACFCOMP

ENDPOINTDISC [LOCAL] c7 1e 39 e5 86 96 46 05 82 1b 20 25 44 12 bb 0a 00 00 00 00

[vpn] LCP: SendConfigAck #1

AUTHPROTO CHAP MSOFTv2

MAGICNUM 59003d29

PROTOCOMP

ACFCOMP

ENDPOINTDISC [LOCAL] c7 1e 39 e5 86 96 46 05 82 1b 20 25 44 12 bb 0a 00 00 00 00

[vpn] LCP: state change Ack-Rcvd --> Opened

[vpn] LCP: phase shift ESTABLISH --> AUTHENTICATE

[vpn] LCP: auth: peer wants CHAP, I want nothing

[vpn] LCP: LayerUp

[vpn] CHAP: rec'd CHALLENGE #0

Name: "NODE"

Using authname "xxxxx"

[vpn] CHAP: sending RESPONSE

[vpn] CHAP: rec'd SUCCESS #0

MESG: S=98E04DD9B434E579050A6F008628CA47DB3D14CF

[vpn] LCP: authorization successful

[vpn] LCP: phase shift AUTHENTICATE --> NETWORK

[vpn] setting interface ng0 MTU to 1500 bytes

[vpn] up: 1 link, total bandwidth 64000 bps

[vpn] IPCP: Up event

[vpn] IPCP: state change Starting --> Req-Sent

[vpn] IPCP: SendConfigReq #1

IPADDR 0.0.0.0

COMPPROTO VJCOMP, 16 comp. channels, no comp-cid

[vpn] CCP: Open event

[vpn] CCP: state change Initial --> Starting

[vpn] CCP: LayerStart

[vpn] CCP: Up event

[vpn] CCP: state change Starting --> Req-Sent

[vpn] CCP: SendConfigReq #1

[vpn] CCP: Checking whether 40 bits are enabled -> yes

[vpn] CCP: Checking whether 56 bits are enabled -> no

[vpn] CCP: Checking whether 128 bits are enabled -> yes

MPPC

0x01000060: MPPE, 40 bit, 128 bit, stateless

[vpn] CCP: rec'd Configure Request #3 link 0 (Req-Sent)

MPPC

0x01000001: MPPC

[vpn] CCP: Checking whether 40 bits are enabled -> yes

[vpn] CCP: Checking whether 56 bits are enabled -> no

[vpn] CCP: Checking whether 128 bits are enabled -> yes

[vpn] CCP: SendConfigNak #3

MPPC

0x01000060: MPPE, 40 bit, 128 bit, stateless

[vpn] IPCP: rec'd Configure Request #4 link 0 (Req-Sent)

IPADDR 192.168.1.1

192.168.1.1 is OK

[vpn] IPCP: SendConfigAck #4

IPADDR 192.168.1.1

[vpn] IPCP: state change Req-Sent --> Ack-Sent

[vpn] IPCP: rec'd Configure Reject #1 link 0 (Ack-Sent)

COMPPROTO VJCOMP, 16 comp. channels, no comp-cid

[vpn] IPCP: SendConfigReq #2

IPADDR 0.0.0.0

[vpn] CCP: rec'd Configure Nak #1 link 0 (Req-Sent)

MPPC

0x01000040: MPPE, 128 bit, stateless

[vpn] CCP: SendConfigReq #2

[vpn] CCP: Checking whether 40 bits are enabled -> no

[vpn] CCP: Checking whether 56 bits are enabled -> no

[vpn] CCP: Checking whether 128 bits are enabled -> yes

MPPC

0x01000040: MPPE, 128 bit, stateless

[vpn] CCP: rec'd Configure Request #5 link 0 (Req-Sent)

MPPC

0x01000040: MPPE, 128 bit, stateless

[vpn] CCP: Checking whether 128 bits are acceptable -> yes

[vpn] CCP: SendConfigAck #5

MPPC

0x01000040: MPPE, 128 bit, stateless

[vpn] CCP: state change Req-Sent --> Ack-Sent

pptp0: CID 0x28d5 in SetLinkInfo not found

[vpn] IPCP: rec'd Configure Nak #2 link 0 (Ack-Sent)

IPADDR 192.168.1.13

192.168.1.13 is OK

[vpn] IPCP: SendConfigReq #3

IPADDR 192.168.1.13

[vpn] CCP: rec'd Configure Ack #2 link 0 (Ack-Sent)

MPPC

0x01000040: MPPE, 128 bit, stateless

[vpn] CCP: state change Ack-Sent --> Opened

[vpn] CCP: LayerUp

Compress using: MPPE, 128 bit, stateless

Decompress using: MPPE, 128 bit, stateless

[vpn] setting interface ng0 MTU to 1496 bytes

[vpn] IPCP: rec'd Configure Ack #3 link 0 (Ack-Sent)

IPADDR 192.168.1.13

[vpn] IPCP: state change Ack-Sent --> Opened

[vpn] IPCP: LayerUp

192.168.1.13 -> 192.168.1.1

[vpn] IFACE: Up event

[vpn] setting interface ng0 MTU to 1496 bytes

[vpn] exec: /sbin/ifconfig ng0 192.168.1.13 192.168.1.1 netmask 0xffffffff -link0

[vpn] exec: /sbin/route add 192.168.1.13 -iface lo0

[vpn] exec: /sbin/route add 0.0.0.0 192.168.1.1

[vpn] exec: command returned 256

[vpn] IFACE: Up event

[vpn] IPCP: rec'd Configure Request #6 link 0 (Opened)

IPADDR 192.168.1.1

192.168.1.1 is OK

[vpn] IPCP: LayerDown

[vpn] IFACE: Down event

[vpn] exec: /sbin/route delete 192.168.1.13 -iface lo0

[vpn] exec: /sbin/ifconfig ng0 down delete -link0

[vpn] IPCP: SendConfigReq #4

IPADDR 192.168.1.13

[vpn] IPCP: SendConfigAck #6

IPADDR 192.168.1.1

[vpn] IPCP: state change Opened --> Ack-Sent

[vpn] IPCP: rec'd Configure Ack #4 link 0 (Ack-Sent)

IPADDR 192.168.1.13

[vpn] IPCP: state change Ack-Sent --> Opened

[vpn] IPCP: LayerUp

192.168.1.13 -> 192.168.1.1

[vpn] IFACE: Up event

[vpn] setting interface ng0 MTU to 1496 bytes

[vpn] exec: /sbin/ifconfig ng0 192.168.1.13 192.168.1.1 netmask 0xffffffff -link0

[vpn] exec: /sbin/route add 192.168.1.13 -iface lo0

[vpn] exec: /sbin/route add 0.0.0.0 192.168.1.1

[vpn] exec: command returned 256

[vpn] IFACE: Up event



[vpn:vpn]

[vpn:vpn]

[vpn:vpn]

[vpn:vpn]

[vpn:vpn]

[vpn:vpn] ^Cmpd: caught fatal signal int

mpd: fatal error, exiting

[vpn] IPCP: Down event

[vpn] IPCP: state change Opened --> Starting

[vpn] IPCP: LayerDown

[vpn] IFACE: Down event

[vpn] exec: /sbin/route delete 192.168.1.13 -iface lo0

[vpn] exec: /sbin/ifconfig ng0 down delete -link0

[vpn] IFACE: Close event

[vpn] IPCP: Close event

[vpn] IPCP: state change Starting --> Initial

[vpn] IPCP: LayerFinish

mpd: process 768 terminated

Dragon_Lord#
Ответить

Вернуться в «Программное обеспечение Linux и FreeBSD»