Страница 1 из 1

MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-02-21 10:12:09
Stolb
Секция pptp-сервера для раздачи инета в локалку:

Код: Выделить всё

pptp_server:
        set ippool add pool1 192.168.255.10 192.168.255.40

        create bundle template pptpB
        set iface disable proxy-arp
        set iface idle 0
        set iface enable tcpmssfix
        set ipcp yes vjcomp
        set ipcp ranges 192.168.255.1/32 ippool pool1
#       set ipcp dns 192.168.255.1
        set bundle enable compression
        set ccp yes mppc
        set ccp yes mpp-compress
        set ccp yes mpp-e40
        set ccp yes mpp-e128
        set ccp yes mpp-stateless

       create link template pptpL pptp
       set link enable multilink
        set link yes acfcomp protocomp
        set link action bundle pptpB
        set link no pap chap
        set link enable chap
       set link keep-alive 10 60
       set link mtu 1460
        set pptp disable windowing
        set pptp self 192.168.1.2
       set link enable incoming

mpd.secret
USER001 11111111 192.168.255.10
Может быть я чего-то не понимаю, но туннель по этому конфигу должен получиться 192.168.255.10 -> 192.168.255.1, а получается 192.168.255.10 -> 192.168.1.2 и пинги по нему не ходят. В логах мпд ничего подозрительного, кроме самого факта выбора для себя адреса 192.168.1.2. Ай нид ваш хелп. Подскажите, где я туплю?

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-02-21 10:53:52
paradox
255 замысловатый адресс
сменил бы на 254 что ли
да и логи не помешали
а то гадание аля кофейная гуща

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-02-21 11:22:46
Stolb
А чем вас 255 смущает? Одной единицей в октете больше, одной меньше. Не с хвоста же. Но убрал))

Вот собсна логи:

Код: Выделить всё

Feb 22 04:20:45 student mpd: [pptpL-1] Accepting PPTP connection
Feb 22 04:20:45 student mpd: [pptpL-1] link: OPEN event
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: Open event
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: state change Initial --> Starting
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: LayerStart
Feb 22 04:20:45 student mpd: [pptpL-1] PPTP: attaching to peer's outgoing call
Feb 22 04:20:45 student mpd: [pptpL-1] link: UP event
Feb 22 04:20:45 student mpd: [pptpL-1] link: origination is remote
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: Up event
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: state change Starting --> Req-Sent
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: SendConfigReq #1
Feb 22 04:20:45 student mpd:  ACFCOMP
Feb 22 04:20:45 student mpd:  PROTOCOMP
Feb 22 04:20:45 student mpd:  MRU 1500
Feb 22 04:20:45 student mpd:  MAGICNUM 7d1bd572
Feb 22 04:20:45 student mpd:  AUTHPROTO CHAP MSOFTv2
Feb 22 04:20:45 student mpd:  MP MRRU 1600
Feb 22 04:20:45 student mpd:  ENDPOINTDISC [802.1] 00 11 95 fe 0f a9
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: rec'd Configure Request #0 (Req-Sent)
Feb 22 04:20:45 student mpd:  MRU 1400
Feb 22 04:20:45 student mpd:  MAGICNUM 5e7705f2
Feb 22 04:20:45 student mpd:  PROTOCOMP
Feb 22 04:20:45 student mpd:  ACFCOMP
Feb 22 04:20:45 student mpd:  CALLBACK 6
Feb 22 04:20:45 student mpd:  MP MRRU 1614
Feb 22 04:20:45 student mpd:  ENDPOINTDISC [LOCAL] 1c aa 29 3b b7 51 49 2b 98 11 78 b0 62 7f b2 9b 00 00 0
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: SendConfigRej #0
Feb 22 04:20:45 student mpd:  CALLBACK 6
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: rec'd Configure Request #1 (Req-Sent)
Feb 22 04:20:45 student mpd:  MRU 1400
Feb 22 04:20:45 student mpd:  MAGICNUM 5e7705f2
Feb 22 04:20:45 student mpd:  PROTOCOMP
Feb 22 04:20:45 student mpd:  ACFCOMP
Feb 22 04:20:45 student mpd:  MP MRRU 1614
Feb 22 04:20:45 student mpd:  ENDPOINTDISC [LOCAL] 1c aa 29 3b b7 51 49 2b 98 11 78 b0 62 7f b2 9b 00 00 0
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: SendConfigNak #1
Feb 22 04:20:45 student mpd:  MP MRRU 1600
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: rec'd Configure Request #2 (Req-Sent)
Feb 22 04:20:45 student mpd:  MRU 1400
Feb 22 04:20:45 student mpd:  MAGICNUM 5e7705f2
Feb 22 04:20:45 student mpd:  PROTOCOMP
Feb 22 04:20:45 student mpd:  ACFCOMP
Feb 22 04:20:45 student mpd:  MP MRRU 1600
Feb 22 04:20:45 student mpd:  ENDPOINTDISC [LOCAL] 1c aa 29 3b b7 51 49 2b 98 11 78 b0 62 7f b2 9b 00 00 0
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: SendConfigAck #2
Feb 22 04:20:45 student mpd:  MRU 1400
Feb 22 04:20:45 student mpd:  MAGICNUM 5e7705f2
Feb 22 04:20:45 student mpd:  PROTOCOMP
Feb 22 04:20:45 student mpd:  ACFCOMP
Feb 22 04:20:45 student mpd:  MP MRRU 1600
Feb 22 04:20:45 student mpd:  ENDPOINTDISC [LOCAL] 1c aa 29 3b b7 51 49 2b 98 11 78 b0 62 7f b2 9b 00 00 0
Feb 22 04:20:45 student mpd: [pptpL-1] LCP: state change Req-Sent --> Ack-Sent
Feb 22 04:20:47 student mpd: [pptpL-1] LCP: SendConfigReq #2
Feb 22 04:20:47 student mpd:  ACFCOMP
Feb 22 04:20:47 student mpd:  PROTOCOMP
Feb 22 04:20:47 student mpd:  MRU 1500
Feb 22 04:20:47 student mpd:  MAGICNUM 7d1bd572
Feb 22 04:20:47 student mpd:  AUTHPROTO CHAP MSOFTv2
Feb 22 04:20:47 student mpd:  MP MRRU 1600
Feb 22 04:20:47 student mpd:  ENDPOINTDISC [802.1] 00 11 95 fe 0f a9
Feb 22 04:20:47 student mpd: [pptpL-1] LCP: rec'd Configure Ack #2 (Ack-Sent)
Feb 22 04:20:47 student mpd:  ACFCOMP
Feb 22 04:20:47 student mpd:  PROTOCOMP
Feb 22 04:20:47 student mpd:  MRU 1500
Feb 22 04:20:47 student mpd:  MAGICNUM 7d1bd572
Feb 22 04:20:47 student mpd:  AUTHPROTO CHAP MSOFTv2
Feb 22 04:20:47 student mpd:  MP MRRU 1600
Feb 22 04:20:47 student mpd:  ENDPOINTDISC [802.1] 00 11 95 fe 0f a9
Feb 22 04:20:47 student mpd: [pptpL-1] LCP: state change Ack-Sent --> Opened
Feb 22 04:20:47 student mpd: [pptpL-1] LCP: auth: peer wants nothing, I want CHAP
Feb 22 04:20:47 student mpd: [pptpL-1] CHAP: sending CHALLENGE len:17
Feb 22 04:20:47 student mpd: [pptpL-1] LCP: LayerUp
Feb 22 04:20:47 student mpd: [pptpL-1] LCP: rec'd Ident #3 (Opened)
Feb 22 04:20:47 student mpd: [pptpL-1] LCP: rec'd Ident #4 (Opened)
Feb 22 04:20:47 student mpd: [pptpL-1] CHAP: rec'd RESPONSE #1
Feb 22 04:20:47 student mpd:  Name: "USER001@HOME24"
Feb 22 04:20:47 student mpd: [pptpL-1] AUTH: Auth-Thread started
Feb 22 04:20:47 student mpd: [pptpL-1] AUTH: Trying INTERNAL
Feb 22 04:20:47 student mpd: [pptpL-1] AUTH: INTERNAL returned undefined
Feb 22 04:20:47 student mpd: [pptpL-1] AUTH: Auth-Thread finished normally
Feb 22 04:20:47 student mpd: [pptpL-1] CHAP: ChapInputFinish: status undefined
Feb 22 04:20:47 student mpd:  Response is valid
Feb 22 04:20:47 student mpd:  Reply message: S=60C65A47187FEDDFD889E7F4701BE8FB2DB8BC35
Feb 22 04:20:47 student mpd: [pptpL-1] CHAP: sending SUCCESS len:42
Feb 22 04:20:47 student mpd: [pptpL-1] LCP: authorization successful
Feb 22 04:20:47 student mpd: [pptpL-1] Matched link action 'bundle "pptpB" ""'
Feb 22 04:20:47 student mpd: [pptpL-1] Creating new bundle using template "pptpB".
Feb 22 04:20:47 student mpd: [pptpB-1] using interface ng0
Feb 22 04:20:47 student mpd: [pptpB-1] Bundle up: 1 link, total bandwidth 64000 bps
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: Open event
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: state change Initial --> Starting
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: LayerStart
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: Open event
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: state change Initial --> Starting
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: LayerStart
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: Up event
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: state change Starting --> Req-Sent
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: SendConfigReq #1
Feb 22 04:20:47 student mpd:  IPADDR 192.168.1.2
Feb 22 04:20:47 student mpd:  COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: Up event
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: state change Starting --> Req-Sent
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: SendConfigReq #1
Feb 22 04:20:47 student mpd:  MPPC
Feb 22 04:20:47 student mpd:    0x01000061:MPPC, MPPE(40, 128 bits), stateless
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: rec'd Configure Request #5 (Req-Sent)
Feb 22 04:20:47 student mpd:  MPPC
Feb 22 04:20:47 student mpd:    0x010000e1:MPPC, MPPE(40, 56, 128 bits), stateless
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: SendConfigNak #5
Feb 22 04:20:47 student mpd:  MPPC
Feb 22 04:20:47 student mpd:    0x01000041:MPPC, MPPE(128 bits), stateless
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: rec'd Configure Request #6 (Req-Sent)
Feb 22 04:20:47 student mpd:  IPADDR 0.0.0.0
Feb 22 04:20:47 student mpd:    NAKing with 192.168.254.9
Feb 22 04:20:47 student mpd:  PRIDNS 0.0.0.0
Feb 22 04:20:47 student mpd:  PRINBNS 0.0.0.0
Feb 22 04:20:47 student mpd:  SECDNS 0.0.0.0
Feb 22 04:20:47 student mpd:  SECNBNS 0.0.0.0
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: SendConfigRej #6
Feb 22 04:20:47 student mpd:  PRIDNS 0.0.0.0
Feb 22 04:20:47 student mpd:  PRINBNS 0.0.0.0
Feb 22 04:20:47 student mpd:  SECDNS 0.0.0.0
Feb 22 04:20:47 student mpd:  SECNBNS 0.0.0.0
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: rec'd Configure Reject #1 (Req-Sent)
Feb 22 04:20:47 student mpd:  COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: SendConfigReq #2
Feb 22 04:20:47 student mpd:  IPADDR 192.168.1.2
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: rec'd Configure Nak #1 (Req-Sent)
Feb 22 04:20:47 student mpd:  MPPC
Feb 22 04:20:47 student mpd:    0x01000041:MPPC, MPPE(128 bits), stateless
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: SendConfigReq #2
Feb 22 04:20:47 student mpd:  MPPC
Feb 22 04:20:47 student mpd:    0x01000041:MPPC, MPPE(128 bits), stateless
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: rec'd Configure Request #7 (Req-Sent)
Feb 22 04:20:47 student mpd:  MPPC
Feb 22 04:20:47 student mpd:    0x01000041:MPPC, MPPE(128 bits), stateless
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: SendConfigAck #7
Feb 22 04:20:47 student mpd:  MPPC
Feb 22 04:20:47 student mpd:    0x01000041:MPPC, MPPE(128 bits), stateless
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: state change Req-Sent --> Ack-Sent
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: rec'd Configure Request #8 (Req-Sent)
Feb 22 04:20:47 student mpd:  IPADDR 0.0.0.0
Feb 22 04:20:47 student mpd:    NAKing with 192.168.254.9
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: SendConfigNak #8
Feb 22 04:20:47 student mpd:  IPADDR 192.168.254.9
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: rec'd Configure Ack #2 (Req-Sent)
Feb 22 04:20:47 student mpd:  IPADDR 192.168.1.2
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: state change Req-Sent --> Ack-Rcvd
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: rec'd Configure Ack #2 (Ack-Sent)
Feb 22 04:20:47 student mpd:  MPPC
Feb 22 04:20:47 student mpd:    0x01000041:MPPC, MPPE(128 bits), stateless
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: state change Ack-Sent --> Opened
Feb 22 04:20:47 student mpd: [pptpB-1] CCP: LayerUp
Feb 22 04:20:47 student mpd:   Compress using: mppc (MPPC, MPPE(128 bits), stateless)
Feb 22 04:20:47 student mpd: Decompress using: mppc (MPPC, MPPE(128 bits), stateless)
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: rec'd Configure Request #9 (Ack-Rcvd)
Feb 22 04:20:47 student mpd:  IPADDR 192.168.254.9
Feb 22 04:20:47 student mpd:    192.168.254.9 is OK
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: SendConfigAck #9
Feb 22 04:20:47 student mpd:  IPADDR 192.168.254.9
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: state change Ack-Rcvd --> Opened
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: LayerUp
Feb 22 04:20:47 student mpd:   192.168.1.2 -> 192.168.254.9
Feb 22 04:20:47 student mpd: [pptpB-1] IFACE: Up event
Feb 22 04:20:47 student mpd: [pptpL-1] AUTH: Accounting-Thread started
Feb 22 04:20:47 student mpd: [pptpL-1] AUTH: Accounting-Thread finished normally

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-02-21 11:25:55
paradox
Feb 22 04:20:47 student mpd: [pptpB-1] IPCP: rec'd Configure Ack #2 (Req-Sent)
Feb 22 04:20:47 student mpd: IPADDR 192.168.1.2
такое чувство что это со стороны клиента приходит назначение адресса
а там должно быть 0

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-02-21 11:27:40
paradox
set link enable multilink
выключи нах

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-02-21 16:11:33
Stolb
Убрал. Картина та же.
Короче, еще такая тема. Поменял местами сетевухи. Ну, точнее, поменял местами пачкорды и сменил IP.
Интерфейс 192.168.1.2 - в локалку.
Интерфейс 192.168.2.2 - к модему.
Так он гад стал цепляться на 192.168.2.2.
Такое ощущение, что он к интерфейсу sis0 привязался. Я его мог как-то привязать?

PS
Это в mpd.log при загрузке mpd что-то означает:

Код: Выделить всё

Feb 22 08:45:21 student mpd: [pptpL] link: impossible to open template
?

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-02-22 13:08:20
Stolb
Поставил MPD4. Все завелось без проблем. Абыдна.

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-02-22 13:13:21
paradox
ну хз
вроде 5 у всех работает
я тоже настраивал - работает

хз
что у вас

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-02-22 13:36:53
Stolb
Так оно и интересно.
Я просто даже не знаю, где копать.

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-02-23 7:12:53
Stolb
установил 5.2. Все заработало. Всем спасибо.

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-03-07 21:19:39
sysbes
По сабжу точ в точ, один в один такая же проблема ( Сначало стоял 5-й, потом поставил 3-й, сейчас ставлю 4-й )

UPD: поставил не завелось ( конектится, но инета нет (

Re: MPD5 PPTP-server Проблемы с адресом self

Добавлено: 2009-03-07 21:43:39
paradox
по сабжу у всех логи разные