Хочу сделать одновременно несколько подключений к провайдеру,
открывается только одно
в конфиге:
default:
load first
load second
first:
new -i ng0 first first
set bundle authname ***
set bundle password ***
load provider-vpn
open iface
second:
new -i ng1 second second
set bundle authname ***
set bundle password ***
load provider-vpn
open iface
provider-vpn:
set link type pptp
# set iface route default
set iface disable on-demand
# set iface enable proxy-arp
set bundle disable multilink
set bundle enable compression
set bundle enable crypt-reqd
set link yes acfcomp protocomp
set link accept chap pap
set link enable no-orig-auth
set link keep-alive 10 75
set ipcp yes vjcomp
set ccp yes mppc
set ccp yes mpp-e40
set ccp yes mpp-e56
set ccp yes mpp-e128
set ccp yes mpp-stateless
set pptp peer vpn.provider.com
set pptp enable outcall
set pptp enable originate
в логе:
mpd: pid 583, version 3.15 (root@Gateway 02:11 28-Sep-2004)
[first] ppp node is "mpd583-first"
[first] using interface ng0
mpd: warning: line too long, truncated
[first] IFACE: Open event
[first] IPCP: Open event
[first] IPCP: state change Initial --> Starting
[first] IPCP: LayerStart
[second] ppp node is "mpd583-second"
[second] using interface ng1
mpd: warning: line too long, truncated
[second] IFACE: Open event
[second] IPCP: Open event
[second] IPCP: state change Initial --> Starting
[second] IPCP: LayerStart
[second:second] [first] bundle: OPEN event in state CLOSED
[first] opening link "first"...
[second] bundle: OPEN event in state CLOSED
[second] opening link "second"...
[first] link: OPEN event
[first] LCP: Open event
[first] LCP: state change Initial --> Starting
[first] LCP: LayerStart
[second] link: OPEN event
[second] LCP: Open event
[second] LCP: state change Initial --> Starting
[second] LCP: LayerStart
[first] device: OPEN event in state DOWN
pptp0: connecting to 192.168.252.2:1723
[first] device is now in state OPENING
[second] device: OPEN event in state DOWN
[second] device is now in state OPENING
pptp0: connected to 192.168.252.2:1723
pptp0: attached to connection with 192.168.252.2:1723
pptp0-0: outgoing call connected at 64000 bps
[first] PPTP call successful
[first] device: UP event in state OPENING
[first] device is now in state UP
[first] link: UP event
[first] link: origination is local
[first] LCP: Up event
[first] LCP: state change Starting --> Req-Sent
[first] LCP: phase shift DEAD --> ESTABLISH
[first] LCP: SendConfigReq #1
ACFCOMP
PROTOCOMP
MRU 1500
MAGICNUM 5126c415
[first] LCP: rec'd Configure Request #1 link 0 (Req-Sent)
ACCMAP 0x00000000
AUTHPROTO CHAP MSOFTv2
MAGICNUM eedf61e4
PROTOCOMP
ACFCOMP
[first] LCP: SendConfigAck #1
ACCMAP 0x00000000
AUTHPROTO CHAP MSOFTv2
MAGICNUM eedf61e4
PROTOCOMP
ACFCOMP
[first] LCP: state change Req-Sent --> Ack-Sent
[first] LCP: SendConfigReq #2
ACFCOMP
PROTOCOMP
MRU 1500
MAGICNUM 5126c415
[first] LCP: rec'd Configure Ack #2 link 0 (Ack-Sent)
ACFCOMP
PROTOCOMP
MRU 1500
MAGICNUM 5126c415
[first] LCP: state change Ack-Sent --> Opened
[first] LCP: phase shift ESTABLISH --> AUTHENTICATE
[first] LCP: auth: peer wants CHAP, I want nothing
[first] LCP: LayerUp
[first] CHAP: rec'd CHALLENGE #166
Name: "vpn"
Using authname "***"
[first] CHAP: sending RESPONSE
[first] CHAP: rec'd SUCCESS #166
MESG: S=D270C99D187B47479665C72077CA9D75857A1C40
[first] LCP: authorization successful
[first] LCP: phase shift AUTHENTICATE --> NETWORK
[first] setting interface ng0 MTU to 1500 bytes
[first] up: 1 link, total bandwidth 64000 bps
[first] IPCP: Up event
[first] IPCP: state change Starting --> Req-Sent
[first] IPCP: SendConfigReq #1
IPADDR 172.16.16.16
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[first] CCP: Open event
[first] CCP: state change Initial --> Starting
[first] CCP: LayerStart
[first] CCP: Up event
[first] CCP: state change Starting --> Req-Sent
[first] CCP: SendConfigReq #1
[first] CCP: Checking wether 40 bits are enabled -> yes
[first] CCP: Checking wether 56 bits are enabled -> yes
[first] CCP: Checking wether 128 bits are enabled -> yes
MPPC
0x010000e0: MPPE, 40 bit, 56 bit, 128 bit, stateless
[first] CCP: rec'd Configure Request #1 link 0 (Req-Sent)
MPPC
0x01000060: MPPE, 40 bit, 128 bit, stateless
[first] CCP: Checking wether 40 bits are acceptable -> yes
[first] CCP: Checking wether 128 bits are acceptable -> yes
[first] CCP: SendConfigNak #1
MPPC
0x01000040: MPPE, 128 bit, stateless
[first] IPCP: rec'd Terminate Ack #1 link 0 (Req-Sent)
[first] CCP: rec'd Configure Nak #1 link 0 (Req-Sent)
MPPC
0x01000040: MPPE, 128 bit, stateless
[first] CCP: SendConfigReq #2
[first] CCP: Checking wether 40 bits are enabled -> no
[first] CCP: Checking wether 56 bits are enabled -> no
[first] CCP: Checking wether 128 bits are enabled -> yes
MPPC
0x01000040: MPPE, 128 bit, stateless
[first] CCP: rec'd Configure Request #2 link 0 (Req-Sent)
MPPC
0x01000040: MPPE, 128 bit, stateless
[first] CCP: Checking wether 128 bits are acceptable -> yes
[first] CCP: SendConfigAck #2
MPPC
0x01000040: MPPE, 128 bit, stateless
[first] CCP: state change Req-Sent --> Ack-Sent
[first] CCP: rec'd Configure Ack #2 link 0 (Ack-Sent)
MPPC
0x01000040: MPPE, 128 bit, stateless
[first] CCP: state change Ack-Sent --> Opened
[first] CCP: LayerUp
Compress using: MPPE, 128 bit, stateless
Decompress using: MPPE, 128 bit, stateless
[first] setting interface ng0 MTU to 1496 bytes
[first] IPCP: rec'd Configure Request #1 link 0 (Req-Sent)
COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
IPADDR 192.168.179.1
192.168.179.1 is OK
[first] IPCP: SendConfigAck #1
COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid
IPADDR 192.168.179.1
[first] IPCP: state change Req-Sent --> Ack-Sent
[first] IPCP: SendConfigReq #2
IPADDR 172.16.16.16
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[first] IPCP: rec'd Configure Nak #2 link 0 (Ack-Sent)
IPADDR 172.31.207.42
172.31.207.42 is OK
[first] IPCP: SendConfigReq #3
IPADDR 172.31.207.42
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[first] IPCP: rec'd Configure Ack #3 link 0 (Ack-Sent)
IPADDR 172.31.207.42
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[first] IPCP: state change Ack-Sent --> Opened
[first] IPCP: LayerUp
172.31.207.42 -> 192.168.179.1
[first] IFACE: Up event
[first] setting interface ng0 MTU to 1496 bytes
[first] exec: /sbin/ifconfig ng0 172.31.207.42 192.168.179.1 netmask 0xffffffff -link0
[first] exec: /sbin/route add 172.31.207.42 -iface lo0
[first] IFACE: Up event
[first] IPCP: Down event
[first] IPCP: state change Opened --> Starting
[first] IPCP: LayerDown
[first] IFACE: Down event
[first] exec: /sbin/route delete 172.31.207.42 -iface lo0
[first] exec: /sbin/ifconfig ng0 down delete -link0
[first] IFACE: Close event
[first] IPCP: Close event
[first] IPCP: state change Starting --> Initial
[first] IPCP: LayerFinish
[second] IPCP: Down event
[second] IFACE: Close event
[second] IPCP: Close event
[second] IPCP: state change Starting --> Initial
[second] IPCP: LayerFinish
mpd: process 583 terminated
по одиночке соединения работают
посоветуйте чем это можно вылечить