Привет всем! У меня FreeBSD 7.0 и mpd-5.0.b1 . Настроил конфа с помощью статьей http://www.lissyara.su/?id=1680 . Запускаю mpd нормально, но когда клиент подключается, в Windows е ошибка, что «738:Сервер не назначил IP адрес». Для тестировки запускаю mpd c помощью , просто mpd5 , и там сообщение что«Usage: set ipcp ranges self/width peer/ width»
У меня конфе в этом строке стоит
Set ippool add poolstat 192.168.8.10 192.168.8.15
…
Set ipcp ranges 192.168.8.1/32(ip сервера) ippool poolsatЕсли вместо
(ippool poolsat)
просто указываю IP, типа
192.168.8.11
, все ОК.
Помогите , заранее спасибо
>Set ippool add poolstat 192.168.8.10 192.168.8.15
>Set ipcp ranges 192.168.8.1/32(ip сервера) ippool poolsatопечатка в названии пула во второй строке. исправите - будет работать.
>опечатка в названии пула во второй строке. исправите - будет работать.Извиняюсь, в конфе правильно, просто здесь допустил ошибку
>>опечатка в названии пула во второй строке. исправите - будет работать.
>
>Извиняюсь, в конфе правильно, просто здесь допустил ошибкухз, поднимите версию до 5.3, у меня работает. и не забывайте пробелы в отсупе. кстати, пулы в стартап секции находятся.
скинте весь конфиг
>скинте весь конфигВот Конф
startup:
# configure the console
set console self 127.0.0.1 5005
set console user admin idontforget
set console open
default:
load pptp_serverpptp_server:
# Define dynamic IP address pool.
set ippool add poolsat 192.168.8.10 192.168.8.15
load common_bundles
# Create clonable bundle template named B
common_bundles:
create bundle template B
set iface enable proxy-arp
set iface idle 0
set iface enable tcpmssfix
set ipcp yes vjcomp
# Specify IP address pool for dynamic assigment.
set ipcp ranges 192.168.8.1/32 ippool poolsat
# set ipcp dns 192.168.1.3
# set ipcp nbns 192.168.1.4С
set bundle enable compression
set ccp yes mppc
set ccp yes mpp-e40
set ccp yes mpp-e128
set ccp yes mpp-stateless
load common_links# Create clonable link template named L
common_links:
create link template L pptp
set link action bundle B
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link enable chap-msv1
set link enable chap-msv2
set link keep-alive 10 60
set link mtu 1460
# Configure PPTP
set pptp self IpServer
set link enable incoming
192.168.8.1/32 случайно интерфейсу не присвоен на сервере?
попробуйте заменить 192.168.8.1/32 на другой не используемый айпишник
может поможет :-)
>>скинте весь конфиг//skipped
# Specify IP address pool for dynamic assigment.
set ipcp ranges 192.168.8.1/32 ippool poolsatПереноси это в startup: секцию.
to: mr_gfd
Может через ИСК : 330968096. Спасибо за поддержку
Заработало ?
>Заработало ?Не -а , по этому было бы лучше через ИСК
на вверху добавил полный конф и там есть изменении. Теперь вот так:
1)Запускаю :
/usr/local/etc/rc.d/mpd5 startНормально, накаких сообщений. В логах:
Aug 20 15:03:18 rim mpd: Multi-link PPP daemon for FreeBSD
Aug 20 15:03:18 rim mpd:
Aug 20 15:03:18 rim mpd: process 29472 started, version 5.0b1 (root@rim.uk.ua 10:00 19-Aug-2009)
Aug 20 15:03:18 rim mpd: CONSOLE: listening on 127.0.0.1 5005
Aug 20 15:03:18 rim mpd: PPTP: waiting for connection on 192.168.0.2372) Подключаюсь с компа Виндовс :) Там ошибка :
[url]http://smages.com/a2/fe/a2fea77668b79f449ca0671723e2a85e.jpg... [/url]
И вот кусок лога:Aug 20 15:08:34 rim mpd: [L-1] Accepting PPTP connection
Aug 20 15:08:34 rim mpd: [L-1] link: OPEN event
Aug 20 15:08:34 rim mpd: [L-1] LCP: Open event
Aug 20 15:08:34 rim mpd: [L-1] LCP: state change Initial --> Starting
Aug 20 15:08:34 rim mpd: [L-1] LCP: LayerStart
Aug 20 15:08:34 rim mpd: [L-1] PPTP: attaching to peer's outgoing call
Aug 20 15:08:34 rim mpd: [L-1] link: UP event
Aug 20 15:08:34 rim mpd: [L-1] link: origination is remote
Aug 20 15:08:34 rim mpd: [L-1] LCP: Up event
Aug 20 15:08:34 rim mpd: [L-1] LCP: state change Starting --> Req-Sent
Aug 20 15:08:34 rim mpd: [L-1] LCP: SendConfigReq #1
Aug 20 15:08:34 rim mpd: ACFCOMP
Aug 20 15:08:34 rim mpd: PROTOCOMP
Aug 20 15:08:34 rim mpd: MRU 1500
Aug 20 15:08:34 rim mpd: MAGICNUM bc30d0a0
Aug 20 15:08:34 rim mpd: AUTHPROTO CHAP MSOFTv2
Aug 20 15:08:34 rim mpd: MP MRRU 1600
Aug 20 15:08:34 rim mpd: ENDPOINTDISC [802.1] 00 0e 2e ac 81 d6
Aug 20 15:08:34 rim mpd: [L-1] LCP: rec'd Configure Request #0 (Req-Sent)
Aug 20 15:08:34 rim mpd: MRU 1400
Aug 20 15:08:34 rim mpd: MAGICNUM 1a087980
Aug 20 15:08:34 rim mpd: PROTOCOMP
Aug 20 15:08:34 rim mpd: ACFCOMP
Aug 20 15:08:34 rim mpd: CALLBACK 6
Aug 20 15:08:34 rim mpd: [L-1] LCP: SendConfigRej #0
Aug 20 15:08:34 rim mpd: CALLBACK 6
Aug 20 15:08:34 rim mpd: [L-1] LCP: rec'd Configure Request #1 (Req-Sent)
Aug 20 15:08:34 rim mpd: MRU 1400
Aug 20 15:08:34 rim mpd: MAGICNUM 1a087980
Aug 20 15:08:34 rim mpd: PROTOCOMP
Aug 20 15:08:34 rim mpd: ACFCOMP
Aug 20 15:08:34 rim mpd: [L-1] LCP: SendConfigAck #1
Aug 20 15:08:34 rim mpd: MRU 1400
Aug 20 15:08:34 rim mpd: MAGICNUM 1a087980
Aug 20 15:08:34 rim mpd: PROTOCOMP
Aug 20 15:08:34 rim mpd: ACFCOMP
Aug 20 15:08:34 rim mpd: [L-1] LCP: state change Req-Sent --> Ack-Sent
Aug 20 15:08:36 rim mpd: [L-1] LCP: SendConfigReq #2
Aug 20 15:08:36 rim mpd: ACFCOMP
Aug 20 15:08:36 rim mpd: PROTOCOMP
Aug 20 15:08:36 rim mpd: MRU 1500
Aug 20 15:08:36 rim mpd: MAGICNUM bc30d0a0
Aug 20 15:08:36 rim mpd: AUTHPROTO CHAP MSOFTv2
Aug 20 15:08:36 rim mpd: MP MRRU 1600
Aug 20 15:08:36 rim mpd: ENDPOINTDISC [802.1] 00 0e 2e ac 81 d6
Aug 20 15:08:36 rim mpd: [L-1] LCP: rec'd Configure Reject #2 (Ack-Sent)
Aug 20 15:08:36 rim mpd: MP MRRU 1600
Aug 20 15:08:36 rim mpd: ENDPOINTDISC [802.1] 00 0e 2e ac 81 d6
Aug 20 15:08:36 rim mpd: [L-1] LCP: SendConfigReq #3
Aug 20 15:08:36 rim mpd: ACFCOMP
Aug 20 15:08:36 rim mpd: PROTOCOMP
Aug 20 15:08:36 rim mpd: MRU 1500
Aug 20 15:08:36 rim mpd: MAGICNUM bc30d0a0
Aug 20 15:08:36 rim mpd: AUTHPROTO CHAP MSOFTv2
Aug 20 15:08:36 rim mpd: [L-1] LCP: rec'd Configure Ack #3 (Ack-Sent)
Aug 20 15:08:36 rim mpd: ACFCOMP
Aug 20 15:08:36 rim mpd: PROTOCOMP
Aug 20 15:08:36 rim mpd: MRU 1500
Aug 20 15:08:36 rim mpd: MAGICNUM bc30d0a0
Aug 20 15:08:36 rim mpd: AUTHPROTO CHAP MSOFTv2
Aug 20 15:08:36 rim mpd: [L-1] LCP: state change Ack-Sent --> Opened
Aug 20 15:08:36 rim mpd: [L-1] LCP: auth: peer wants nothing, I want CHAP
Aug 20 15:08:36 rim mpd: [L-1] CHAP: sending CHALLENGE len:17
Aug 20 15:08:36 rim mpd: [L-1] LCP: LayerUp
Aug 20 15:08:36 rim mpd: [L-1] LCP: rec'd Ident #2 (Opened)
Aug 20 15:08:36 rim mpd: [L-1] LCP: rec'd Ident #3 (Opened)
Aug 20 15:08:36 rim mpd: [L-1] CHAP: rec'd RESPONSE #1
Aug 20 15:08:36 rim mpd: Name: "vpn_admin"
Aug 20 15:08:36 rim mpd: [L-1] AUTH: Auth-Thread started
Aug 20 15:08:36 rim mpd: [L-1] AUTH: Trying INTERNAL
Aug 20 15:08:36 rim mpd: [L-1] AUTH: INTERNAL returned undefined
Aug 20 15:08:36 rim mpd: [L-1] AUTH: Auth-Thread finished normally
Aug 20 15:08:36 rim mpd: [L-1] CHAP: ChapInputFinish: status undefined
Aug 20 15:08:36 rim mpd: Response is valid
Aug 20 15:08:36 rim mpd: Reply message: S=03F5C1D04959C4D09D065C3B6E2C942EE4545E17
Aug 20 15:08:36 rim mpd: [L-1] CHAP: sending SUCCESS len:42
Aug 20 15:08:36 rim mpd: [L-1] LCP: authorization successful
Aug 20 15:08:36 rim mpd: [L-1] Matched link action 'bundle "B" ""'
Aug 20 15:08:36 rim mpd: [L-1] Creating new bundle using template "B".
Aug 20 15:08:36 rim mpd: [B-1] using interface ng0
Aug 20 15:08:36 rim mpd: [B-1] Bundle up: 1 link, total bandwidth 64000 bps
Aug 20 15:08:36 rim mpd: [B-1] IPCP: Open event
Aug 20 15:08:36 rim mpd: [B-1] IPCP: state change Initial --> Starting
Aug 20 15:08:36 rim mpd: [B-1] IPCP: LayerStart
Aug 20 15:08:36 rim mpd: [B-1] CCP: Open event
Aug 20 15:08:36 rim mpd: [B-1] CCP: state change Initial --> Starting
Aug 20 15:08:36 rim mpd: [B-1] CCP: LayerStart
Aug 20 15:08:36 rim mpd: [B-1] IPCP: Up event
Aug 20 15:08:36 rim mpd: [B-1] IPCP: state change Starting --> Req-Sent
Aug 20 15:08:36 rim mpd: [B-1] IPCP: SendConfigReq #1
Aug 20 15:08:36 rim mpd: IPADDR 192.168.0.237
Aug 20 15:08:36 rim mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Aug 20 15:08:36 rim mpd: [B-1] CCP: Up event
Aug 20 15:08:36 rim mpd: [B-1] CCP: state change Starting --> Req-Sent
Aug 20 15:08:36 rim mpd: [B-1] CCP: SendConfigReq #1
Aug 20 15:08:36 rim mpd: MPPC
Aug 20 15:08:36 rim mpd: 0x01000060:MPPE(40, 128 bits), stateless
Aug 20 15:08:36 rim mpd: [L-1] AUTH: Accounting-Thread started
Aug 20 15:08:36 rim mpd: [L-1] AUTH: Accounting-Thread finished normally
Aug 20 15:08:36 rim mpd: [L-1] rec'd unexpected protocol 0x802b, rejecting
Aug 20 15:08:36 rim mpd: [B-1] CCP: rec'd Configure Request #5 (Req-Sent)
Aug 20 15:08:36 rim mpd: MPPC
Aug 20 15:08:36 rim mpd: 0x010000e1:MPPC, MPPE(40, 56, 128 bits), stateless
Aug 20 15:08:36 rim mpd: [B-1] CCP: SendConfigNak #5
Aug 20 15:08:36 rim mpd: MPPC
Aug 20 15:08:36 rim mpd: 0x01000040:MPPE(128 bits), stateless
Aug 20 15:08:36 rim mpd: [B-1] IPCP: rec'd Configure Request #6 (Req-Sent)
Aug 20 15:08:36 rim mpd: IPADDR 0.0.0.0
Aug 20 15:08:36 rim mpd: no IP address available for peer!
Aug 20 15:08:36 rim mpd: NAKing with 0.0.0.0
Aug 20 15:08:36 rim mpd: PRIDNS 0.0.0.0
Aug 20 15:08:36 rim mpd: PRINBNS 0.0.0.0
Aug 20 15:08:36 rim mpd: SECDNS 0.0.0.0
Aug 20 15:08:36 rim mpd: SECNBNS 0.0.0.0
Aug 20 15:08:36 rim mpd: [B-1] IPCP: SendConfigRej #6
Aug 20 15:08:36 rim mpd: PRIDNS 0.0.0.0
Aug 20 15:08:36 rim mpd: PRINBNS 0.0.0.0
Aug 20 15:08:36 rim mpd: SECDNS 0.0.0.0
Aug 20 15:08:36 rim mpd: SECNBNS 0.0.0.0
Aug 20 15:08:36 rim mpd: [B-1] IPCP: rec'd Configure Reject #1 (Req-Sent)
Aug 20 15:08:36 rim mpd: COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Aug 20 15:08:36 rim mpd: [B-1] IPCP: SendConfigReq #2
Aug 20 15:08:36 rim mpd: IPADDR 192.168.0.237
Aug 20 15:08:36 rim mpd: [B-1] CCP: rec'd Configure Nak #1 (Req-Sent)
Aug 20 15:08:36 rim mpd: MPPC
Aug 20 15:08:36 rim mpd: 0x01000040:MPPE(128 bits), stateless
Aug 20 15:08:36 rim mpd: [B-1] CCP: SendConfigReq #2
Aug 20 15:08:36 rim mpd: MPPC
Aug 20 15:08:36 rim mpd: 0x01000040:MPPE(128 bits), stateless
Aug 20 15:08:36 rim mpd: [B-1] CCP: rec'd Configure Request #7 (Req-Sent)
Aug 20 15:08:36 rim mpd: MPPC
Aug 20 15:08:36 rim mpd: 0x01000040:MPPE(128 bits), stateless
Aug 20 15:08:36 rim mpd: [B-1] CCP: SendConfigAck #7
Aug 20 15:08:36 rim mpd: MPPC
Aug 20 15:08:36 rim mpd: 0x01000040:MPPE(128 bits), stateless
Aug 20 15:08:36 rim mpd: [B-1] CCP: state change Req-Sent --> Ack-Sent
Aug 20 15:08:36 rim mpd: [B-1] IPCP: rec'd Configure Request #8 (Req-Sent)
Aug 20 15:08:36 rim mpd: IPADDR 0.0.0.0
Aug 20 15:08:36 rim mpd: no IP address available for peer!
Aug 20 15:08:36 rim mpd: NAKing with 0.0.0.0
Aug 20 15:08:36 rim mpd: [B-1] IPCP: SendConfigNak #8
Aug 20 15:08:36 rim mpd: IPADDR 0.0.0.0
Aug 20 15:08:36 rim mpd: [B-1] IPCP: rec'd Configure Ack #2 (Req-Sent)
Aug 20 15:08:36 rim mpd: IPADDR 192.168.0.237
Aug 20 15:08:36 rim mpd: [B-1] IPCP: state change Req-Sent --> Ack-Rcvd
Aug 20 15:08:36 rim mpd: [B-1] CCP: rec'd Configure Ack #2 (Ack-Sent)
Aug 20 15:08:36 rim mpd: MPPC
Aug 20 15:08:36 rim mpd: 0x01000040:MPPE(128 bits), stateless
Aug 20 15:08:36 rim mpd: [B-1] CCP: state change Ack-Sent --> Opened
Aug 20 15:08:36 rim mpd: [B-1] CCP: LayerUp
Aug 20 15:08:36 rim mpd: Compress using: mppc (MPPE(128 bits), stateless)
Aug 20 15:08:36 rim mpd: Decompress using: mppc (MPPE(128 bits), stateless)
Aug 20 15:08:36 rim mpd: [B-1] IPCP: rec'd Terminate Request #9 (Ack-Rcvd)
Aug 20 15:08:36 rim mpd: [B-1] IPCP: state change Ack-Rcvd --> Req-Sent
Aug 20 15:08:36 rim mpd: [B-1] IPCP: SendTerminateAck #3
Aug 20 15:08:38 rim mpd: [B-1] IPCP: rec'd Terminate Request #10 (Req-Sent)
Aug 20 15:08:38 rim mpd: [B-1] IPCP: SendTerminateAck #4
Aug 20 15:08:38 rim mpd: [B-1] IPCP: SendConfigReq #5
Aug 20 15:08:38 rim mpd: IPADDR 192.168.0.237
Aug 20 15:08:40 rim mpd: [B-1] IPCP: SendConfigReq #6
Aug 20 15:08:40 rim mpd: IPADDR 192.168.0.237
Aug 20 15:08:40 rim mpd: [B-1] IPCP: rec'd Terminate Ack #6 (Req-Sent)
Aug 20 15:08:40 rim mpd: [L-1] LCP: rec'd Terminate Request #11 (Opened)
Aug 20 15:08:40 rim mpd: [L-1] LCP: state change Opened --> Stopping
Aug 20 15:08:40 rim mpd: [L-1] AUTH: Accounting data for user vpn_admin: 6 seconds, 208 octets in, 184 octets out
Aug 20 15:08:40 rim mpd: [L-1] AUTH: Accounting-Thread started
Aug 20 15:08:40 rim mpd: [B-1] Bundle up: 0 links, total bandwidth 9600 bps
Aug 20 15:08:40 rim mpd: [B-1] IPCP: Close event
Aug 20 15:08:40 rim mpd: [B-1] IPCP: state change Req-Sent --> Closing
Aug 20 15:08:40 rim mpd: [B-1] IPCP: SendTerminateReq #7
Aug 20 15:08:40 rim mpd: [B-1] error writing len 8 frame to bypass: Network is down
Aug 20 15:08:40 rim mpd: [B-1] CCP: Close event
Aug 20 15:08:40 rim mpd: [B-1] CCP: state change Opened --> ClosingТеперь, по моему, можно понят.
>[оверквотинг удален]
> 9600 bps
> Aug 20 15:08:40 rim mpd: [B-1] IPCP: Close event
> Aug 20 15:08:40 rim mpd: [B-1] IPCP: state change Req-Sent --> Closing
> Aug 20 15:08:40 rim mpd: [B-1] IPCP: SendTerminateReq #7
> Aug 20 15:08:40 rim mpd: [B-1] error writing len 8 frame to
> bypass: Network is down
> Aug 20 15:08:40 rim mpd: [B-1] CCP: Close event
> Aug 20 15:08:40 rim mpd: [B-1] CCP: state change Opened --> Closing
>
Не знаю актуально или нет, но если в mpd.secret добавить ip адрес клиента типа
name password xxx.xxx.xxx.xxx
то все будет раздаваться нормально
Вот мой конфиг проблема такая же. не выдаются автоматически адреса из пула не могу понять в чем дело
default:
load pptp0pptp0:
set ippool add poolsat 192.168.1.10 192.168.1.15
create bundle template B
set iface enable proxy-arp
set iface idle 0
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 1.1.1.1/32 ippool pool1
set ipcp dns 8.8.8.8
set bundle enable compression
set ccp yes mppc
set mppc yes e40 e56 e128 stateless
create link template L pptp
set link yes acfcomp protocomp
set link action bundle B
set link enable multilink
set link no pap chap eap
set link enable chap
set link enable chap-msv1
set link enable chap-msv2
set link mtu 1460
set link keep-alive 10 60
set pptp self 192.168.1.3
set link enable incoming