Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Общий по FreeBSD (http://forum.oszone.net/forumdisplay.php?f=10)
-   -   [решено] MPD5! Не выдает IP автоматически. (http://forum.oszone.net/showthread.php?t=148355)

mss_sarvarbek 19-08-2009 13:18 1197421

MPD5! Не выдает IP автоматически.
 
Привет всем! У меня FreeBSD 7.0 и mpd-5.0.b1 . Настроил конфа с помощью статьей http://www.lissyara.su/?id=1680 . Запускаю mpd нормально, но когда клиент подключается, в Windows е ошибка, что «738:Сервер не назначил IP адрес». Для тестировки запускаю mpd c помощью , просто mpd5 , и там сообщение что
PHP код:

«Usageset ipcp ranges  self/width peerwidth» 

У меня конфе в этом строке стоит
PHP код:

Set ippool add poolstat 192.168.8.10 192.168.8.15

Set ipcp ranges  192.168.8.1
/32(ip сервера)  ippool poolsat 

.Если вместо
PHP код:

(ippool poolsat

просто указываю IP, типа
PHP код:

192.168.8.11 

, все ОК.
Помогите , заранее спасибо

leonty 19-08-2009 21:11 1197779

В общем нифига ничего не понятно. Идем читаем правила оформления сообщений.

wp2 19-08-2009 23:49 1197880

Цитата:

Цитата mss_sarvarbek
PHP код:
192.168.8.11 »

навороченный однако php-код :)

mss_sarvarbek 20-08-2009 12:27 1198232

Вот Конф
Код:

startup:
    # configure the console
    set console self 127.0.0.1 5005
    set console user admin idontforget
    set console open
default:
    load pptp_server

pptp_server:
# Define dynamic IP address pool.
    set ippool add poolsat 192.168.8.1 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.2/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 ВнешныйИПСервера
        set link enable incoming


leonty 20-08-2009 14:15 1198343

эх! ну да ладно.
Цитата:

Цитата mss_sarvarbek
Запускаю mpd нормально, »

Это Вы так считаете. Мы этого не видим, а значит можно предположить, то, что Вы считаете правильным, не является таковым на самом деле.
Цитата:

Цитата mss_sarvarbek
Для тестировки запускаю mpd c помощью , просто mpd5 , и там сообщение что »

Давайте без самодеятельности. Приведите строку с командой, которую вводите и последующим выводом.
Цитата:

Цитата mss_sarvarbek
Set ipcp ranges 192.168.8.1/32(ip сервера) ippool poolsat »

что это за сервер?

mss_sarvarbek 20-08-2009 16:22 1198491

Цитата:

Цитата leonty
что это за сервер? »

на вверху добавил полный конф и там есть изменении. Теперь вот так:
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.237

2) Подключаюсь с компа Виндовс :) Там ошибка :
http://smages.com/a2/fe/a2fea77668b7...e2a85e.jpg.htm
И вот кусок лога:
Код:

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

Цитата:

Цитата leonty
эх! ну да ладно »

Теперь, по моему, можно понят меня.

mss_sarvarbek 26-08-2009 10:43 1203529

Проблема было с версией . Обновил пакеты до 5,3 и все работает.


Время: 16:08.

Время: 16:08.
© OSzone.net 2001-