имею
FreeBSD 5.2.1
mpd 3.15
mpd.conf
radius:
set radius config /etc/radius.conf
set radius retries 3
set radius timeout 3
set radius server 100.100.100.100 111 34109 34108
#set ipcp enable radius-ip
set bundle enable radius-auth
set bundle yes radius-acct
#set iface enable radius-idle radius-mtu
#set ccp enable radius
pptp_standart:
set iface disable on-demand
set bundle disable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 60 180
load radius
#set ipcp yes vjcomp
set ipcp dns 193.22.6.18
#set ipcp nbns 192.168.1.78
set iface enable proxy-arp
#set bundle enable compression
set ccp yes mppc
set ccp yes mpp-e40
set ccp yes mpp-e128
set ccp yes mpp-stateless
set bundle yes crypt-reqd
set pptp self 10.10.0.1
set pptp enable incoming
set pptp disable originate
pptp0:
new -i ng0 pptp0 pptp0
set ipcp ranges 192.168.0.1/32 192.168.0.100/32
load pptp_standart
pptp1:
new -i ng1 pptp1 pptp1
set ipcp ranges 192.168.0.1/32 192.168.0.101/32
load pptp_standart
pptp2:
new -i ng2 pptp2 pptp2
set ipcp ranges 192.168.0.1/32 192.168.0.102/32
load pptp_standart
pptp3:
new -i ng3 pptp3 pptp3
set ipcp ranges 192.168.0.1/32 192.168.0.103/32
load pptp_standart
pptp4:
new -i ng4 pptp4 pptp4
set ipcp ranges 192.168.0.1/32 192.168.0.104/32
load pptp_standart
pptp5:
new -i ng5 pptp5 pptp5
set ipcp ranges 192.168.0.1/32 192.168.0.105/32
load pptp_standart
pptp6:
new -i ng6 pptp6 pptp6
set ipcp ranges 192.168.0.1/32 192.168.0.106/32
load pptp_standart
default:
load pptp0
load pptp1
load pptp2
load pptp3
load pptp4
load pptp5
load pptp6пытаюсь подключиться
результат:[pptp6:pptp6] mpd: PPTP connection from 10.10.0.2:1033
pptp0: attached to connection with 10.10.0.2:1033
[pptp0] IFACE: Open event
[pptp0] IPCP: Open event
[pptp0] IPCP: state change Initial --> Starting
[pptp0] IPCP: LayerStart
[pptp0] IPCP: Open event
[pptp0] bundle: OPEN event in state CLOSED
[pptp0] opening link "pptp0"...
[pptp0] link: OPEN event
[pptp0] LCP: Open event
[pptp0] LCP: state change Initial --> Starting
[pptp0] LCP: LayerStart
[pptp0] device: OPEN event in state DOWN
[pptp0] attaching to peer's outgoing call
[pptp0] device is now in state OPENING
[pptp0] device: UP event in state OPENING
[pptp0] device is now in state UP
[pptp0] link: UP event
[pptp0] link: origination is remote
[pptp0] LCP: Up event
[pptp0] LCP: state change Starting --> Req-Sent
[pptp0] LCP: phase shift DEAD --> ESTABLISH
[pptp0] LCP: SendConfigReq #10
ACFCOMP
PROTOCOMP
MRU 1500
MAGICNUM d04e7d1c
AUTHPROTO CHAP MSOFTv2
pptp0-0: ignoring SetLinkInfo
[pptp0] LCP: rec'd Configure Request #0 link 0 (Req-Sent)
MAGICNUM 75b62e2c
PROTOCOMP
ACFCOMP
[pptp0] LCP: SendConfigAck #0
MAGICNUM 75b62e2c
PROTOCOMP
ACFCOMP
[pptp0] LCP: state change Req-Sent --> Ack-Sent
[pptp0] LCP: rec'd Configure Nak #10 link 0 (Ack-Sent)
AUTHPROTO CHAP MD5
[pptp0] LCP: SendConfigReq #11
ACFCOMP
PROTOCOMP
MRU 1500
MAGICNUM d04e7d1c
AUTHPROTO CHAP MD5
[pptp0] LCP: rec'd Configure Ack #11 link 0 (Ack-Sent)
ACFCOMP
PROTOCOMP
MRU 1500
MAGICNUM d04e7d1c
AUTHPROTO CHAP MD5
[pptp0] LCP: state change Ack-Sent --> Opened
[pptp0] LCP: phase shift ESTABLISH --> AUTHENTICATE
[pptp0] LCP: auth: peer wants nothing, I want CHAP
[pptp0] CHAP: sending CHALLENGE
[pptp0] LCP: LayerUp
[pptp0] CHAP: rec'd RESPONSE #1
Name: "1"
[pptp0] RADIUS: using /etc/radius.conf
[pptp0] RADIUS: RadiusAddServer Adding 100.100.100.100
[pptp0] RADIUS: RadiusPutAuth: RADIUS_CHAP (MD5) peer name: 1
[pptp0] RADIUS: RadiusSendRequest: RAD_ACCESS_ACCEPT for user 1
[pptp0] RADIUS: RadiusGetParams: RAD_SESSION_TIMEOUT: 86400
Response is valid
[pptp0] CHAP: sending SUCCESS
[pptp0] LCP: authorization successful
[pptp0] LCP: phase shift AUTHENTICATE --> NETWORK
[pptp0] setting interface ng0 MTU to 1500 bytes
[pptp0] up: 1 link, total bandwidth 64000 bps
[pptp0] IPCP: Up event
[pptp0] IPCP: state change Starting --> Req-Sent
[pptp0] IPCP: SendConfigReq #15
IPADDR 192.168.0.1
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[pptp0] RADIUS: RadiusAccount for: 1
[pptp0] RADIUS: using /etc/radius.conf
[pptp0] RADIUS: RadiusAddServer Adding 100.100.100.100
[pptp0] RADIUS: RadiusAccount: Sending accounting data (Type: 1)
[pptp0] RADIUS: RadiusSendRequest: RAD_ACCOUNTING_RESPONSE for user 1
[pptp0] IPCP: SendConfigReq #16
IPADDR 192.168.0.1
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[pptp0] CHAP: rec'd RESPONSE #1
Not expected, but that's OK
Name: "1"
[pptp0] RADIUS: using /etc/radius.conf
[pptp0] RADIUS: RadiusAddServer Adding 100.100.100.100
[pptp0] RADIUS: RadiusPutAuth: RADIUS_CHAP (MD5) peer name: 1
[pptp0] RADIUS: RadiusSendRequest: RAD_ACCESS_ACCEPT for user 1
[pptp0] RADIUS: RadiusGetParams: RAD_SESSION_TIMEOUT: 86400
Response is valid
[pptp0] CHAP: sending SUCCESS
[pptp0] LCP: authorization successful
[pptp0] IPCP: SendConfigReq #17
IPADDR 192.168.0.1
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
pptp0-0: ignoring SetLinkInfo
[pptp0] CHAP: rec'd RESPONSE #1
Not expected, but that's OK
Name: "1"
[pptp0] RADIUS: using /etc/radius.conf
[pptp0] RADIUS: RadiusAddServer Adding 100.100.100.100
[pptp0] RADIUS: RadiusPutAuth: RADIUS_CHAP (MD5) peer name: 1
[pptp0] RADIUS: RadiusSendRequest: RAD_ACCESS_ACCEPT for user 1
[pptp0] RADIUS: RadiusGetParams: RAD_SESSION_TIMEOUT: 86400
Response is valid
[pptp0] CHAP: sending SUCCESS
[pptp0] LCP: authorization successful
[pptp0] IPCP: SendConfigReq #18
IPADDR 192.168.0.1
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[pptp0] CHAP: rec'd RESPONSE #1
Not expected, but that's OK
Name: "1"
[pptp0] RADIUS: using /etc/radius.conf
[pptp0] RADIUS: RadiusAddServer Adding 100.100.100.100
[pptp0] RADIUS: RadiusPutAuth: RADIUS_CHAP (MD5) peer name: 1
[pptp0] RADIUS: RadiusSendRequest: RAD_ACCESS_ACCEPT for user 1
[pptp0] RADIUS: RadiusGetParams: RAD_SESSION_TIMEOUT: 86400
Response is valid
[pptp0] CHAP: sending SUCCESS
[pptp0] LCP: authorization successful
[pptp0] IPCP: SendConfigReq #19
IPADDR 192.168.0.1
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[pptp0] CHAP: rec'd RESPONSE #1
Not expected, but that's OK
Name: "1"
[pptp0] RADIUS: using /etc/radius.conf
[pptp0] RADIUS: RadiusAddServer Adding 100.100.100.100
[pptp0] RADIUS: RadiusPutAuth: RADIUS_CHAP (MD5) peer name: 1
[pptp0] RADIUS: RadiusSendRequest: RAD_ACCESS_ACCEPT for user 1
[pptp0] RADIUS: RadiusGetParams: RAD_SESSION_TIMEOUT: 86400
Response is valid
[pptp0] CHAP: sending SUCCESS
[pptp0] LCP: authorization successful
[pptp0] IPCP: SendConfigReq #20
IPADDR 192.168.0.1
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[pptp0] IPCP: rec'd Configure Request #1 link 0 (Req-Sent)
IPADDR 0.0.0.0
NAKing with 192.168.0.100
PRIDNS 0.0.0.0
NAKing with 193.22.6.18
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: SendConfigRej #1
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: rec'd Configure Reject #15 link 0 (Req-Sent)
Wrong id#, expecting 20
[pptp0] IPCP: rec'd Configure Request #2 link 0 (Req-Sent)
IPADDR 0.0.0.0
NAKing with 192.168.0.100
PRIDNS 0.0.0.0
NAKing with 193.22.6.18
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: SendConfigRej #2
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: rec'd Configure Request #3 link 0 (Req-Sent)
IPADDR 0.0.0.0
NAKing with 192.168.0.100
PRIDNS 0.0.0.0
NAKing with 193.22.6.18
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: SendConfigRej #3
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: rec'd Configure Request #4 link 0 (Req-Sent)
IPADDR 0.0.0.0
NAKing with 192.168.0.100
PRIDNS 0.0.0.0
NAKing with 193.22.6.18
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: SendConfigRej #4
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: rec'd Configure Reject #16 link 0 (Req-Sent)
Wrong id#, expecting 20
[pptp0] IPCP: rec'd Configure Request #5 link 0 (Req-Sent)
IPADDR 0.0.0.0
NAKing with 192.168.0.100
PRIDNS 0.0.0.0
NAKing with 193.22.6.18
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: SendConfigRej #5
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: rec'd Configure Reject #17 link 0 (Req-Sent)
Wrong id#, expecting 20
[pptp0] IPCP: rec'd Configure Request #6 link 0 (Req-Sent)
IPADDR 0.0.0.0
NAKing with 192.168.0.100
PRIDNS 0.0.0.0
NAKing with 193.22.6.18
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: not converging
[pptp0] IPCP: parameter negotiation failed
[pptp0] IPCP: state change Req-Sent --> Stopped
[pptp0] IPCP: LayerFinish
[pptp0] bundle: CLOSE event in state OPENED
[pptp0] closing link "pptp0"...
[pptp0] IPCP: rec'd Configure Request #7 link 0 (Stopped)
IPADDR 0.0.0.0
NAKing with 192.168.0.100
PRIDNS 0.0.0.0
NAKing with 193.22.6.18
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: LayerStart
[pptp0] IPCP: SendConfigReq #21
IPADDR 192.168.0.1
COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
[pptp0] IPCP: SendConfigRej #7
PRINBNS 0.0.0.0
SECDNS 0.0.0.0
SECNBNS 0.0.0.0
[pptp0] IPCP: state change Stopped --> Req-Sent
[pptp0] bundle: OPEN event in state CLOSED
[pptp0] opening link "pptp0"...
[pptp0] link: CLOSE event
[pptp0] LCP: Close event
[pptp0] LCP: state change Opened --> Closing
[pptp0] LCP: phase shift NETWORK --> TERMINATE
[pptp0] RADIUS: RadiusAccount for: 1
[pptp0] RADIUS: using /etc/radius.conf
[pptp0] RADIUS: RadiusAddServer Adding 100.100.100.100
[pptp0] RADIUS: RadiusAccount: Sending accounting data (Type: 2)
[pptp0] RADIUS: RadiusSendRequest: RAD_ACCOUNTING_RESPONSE for user 1
[pptp0] setting interface ng0 MTU to 1500 bytes
[pptp0] up: 0 links, total bandwidth 9600 bps
[pptp0] RADIUS: Down Event
[pptp0] IPCP: Down event
[pptp0] IPCP: state change Req-Sent --> Starting
[pptp0] LCP: SendTerminateReq #12
[pptp0] LCP: LayerDown
[pptp0] rec'd proto IPCP during terminate phase
[pptp0] link: OPEN event
[pptp0] LCP: Open event
[pptp0] LCP: state change Closing --> Stopping
[pptp0] closing link "pptp0"...
[pptp0] LCP: SendTerminateReq #13
[pptp0] rec'd proto IPCP during terminate phase
[pptp0] link: CLOSE event
[pptp0] LCP: Close event
[pptp0] LCP: state change Stopping --> Closing
[pptp0] rec'd proto IPCP during terminate phase
[pptp0] rec'd proto IPCP during terminate phase
pptp0-0: ignoring SetLinkInfo
[pptp0] rec'd proto IPCP during terminate phase
[pptp0] rec'd proto IPCP during terminate phase
pptp0-0: call cleared by peer
pptp0-0: killing channel
[pptp0] PPTP call terminated
[pptp0] IFACE: Close event
[pptp0] IPCP: Close event
[pptp0] IPCP: state change Starting --> Initial
[pptp0] IPCP: LayerFinish
[pptp0] IFACE: Close event
pptp0: closing connection with 10.10.0.2:1033
[pptp0] LCP: rec'd Terminate Ack #12 link 0 (Closing)
[pptp0] LCP: state change Closing --> Closed
[pptp0] LCP: phase shift TERMINATE --> ESTABLISH
[pptp0] LCP: LayerFinish
[pptp0] bundle: CLOSE event in state OPENED
[pptp0] device: DOWN event in state UP
[pptp0] device is now in state DOWN
[pptp0] link: DOWN event
[pptp0] LCP: Down event
[pptp0] LCP: state change Closed --> Initial
[pptp0] LCP: phase shift ESTABLISH --> DEAD
[pptp0] device: CLOSE event in state DOWN
[pptp0] device is now in state DOWNна виндах ошибка 734 Протокол управления PPP-связью был прерван
>имею
>FreeBSD 5.2.1
>mpd 3.15
>mpd.conf
>radius:
> set radius config /etc/radius.conf
> set radius retries 3
> set radius timeout 3
> set radius server 100.100.100.100 111 34109 34108
> #set ipcp enable radius-ip
> set bundle enable radius-auth
> set bundle yes radius-acct
> #set iface enable radius-idle radius-mtu
> #set ccp enable radius
Непонятнка, а хде в списке radius?
>
>
>пытаюсь подключиться
>результат:
>[pptp0] RADIUS: RadiusSendRequest: RAD_ACCESS_ACCEPT for user 1
>[pptp0] RADIUS: RadiusGetParams: RAD_SESSION_TIMEOUT: 86400
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ну я так думаю что тут надо посмотреть почему Это происходит
> IPADDR 0.0.0.0
> NAKing with 192.168.0.100
> PRIDNS 0.0.0.0
> NAKing with 193.22.6.18
> PRINBNS 0.0.0.0
> SECDNS 0.0.0.0
> SECNBNS 0.0.0.0
>[pptp0] IPCP: SendConfigRej #1
> PRINBNS 0.0.0.0
> SECDNS 0.0.0.0
> SECNBNS 0.0.0.0
>[pptp0] IPCP: rec'd Configure Reject #15 link 0 (Req-Sent)
> Wrong id#, expecting 20
>[pptp0] IPCP: rec'd Configure Request #2 link 0 (Req-Sent)
> IPADDR 0.0.0.0
> NAKing with 192.168.0.100
> PRIDNS 0.0.0.0
> NAKing with 193.22.6.18
> PRINBNS 0.0.0.0
> SECDNS 0.0.0.0
> SECNBNS 0.0.0.0
>[pptp0] IPCP: SendConfigRej #2
> PRINBNS 0.0.0.0
> SECDNS 0.0.0.0
> SECNBNS 0.0.0.0
>[pptp0] IPCP: rec'd Configure Request #3 link 0 (Req-Sent)
> IPADDR 0.0.0.0
> NAKing with 192.168.0.100
> PRIDNS 0.0.0.0
> NAKing with 193.22.6.18
> PRINBNS 0.0.0.0
> SECDNS 0.0.0.0
> SECNBNS 0.0.0.0
>на виндах ошибка 734 Протокол управления PPP-связью был прерван
Проверяй как настроен радиус, поскольку настроено так по моему мнению, что привязать IP адрес к интерфейсу как то не получаеться у mpd. Поскольку взять его неоткуда :))Но я могу и ошибаться.
RADIUS: RadiusGetParams: RAD_SESSION_TIMEOUT: 8640086400 - это разрешённое максимальное время сесси для клиента 1