openwrt pptp client

PPTP related questions
Post Reply
kerby
Posts: 44
Joined: 16 Jan 2017, 09:17

openwrt pptp client

Post by kerby » 02 Aug 2017, 10:04

Добрый день. При коннекте с OpenWRT в логах accel:

Code: Select all

[2017-08-02 12:51:30]:  info: : recv [RADIUS(1) Access-Accept id=1]
[2017-08-02 12:51:30]:  info: ppp1: connect: ppp1 <--> pptp(192.168.0.125)
[2017-08-02 12:51:30]: debug: ppp1: ppp connected
[2017-08-02 12:51:30]:  info: ppp1: send [CHAP Success id=1 "Authentication succeeded"]
[2017-08-02 12:51:30]: debug: ppp1: auth_layer_started
[2017-08-02 12:51:30]: debug: ppp1: ccp_layer_start
[2017-08-02 12:51:30]:  info: ppp1: send [CCP ConfReq id=1 <mppe +H -M +S -L -D -C>]
[2017-08-02 12:51:30]: debug: ppp1: ipcp_layer_start
[2017-08-02 12:51:30]:  info: ppp1: send [IPCP ConfReq id=1 <addr 10.10.3.1>]
[2017-08-02 12:51:30]: debug: ppp1: ipv6cp_layer_start
[2017-08-02 12:51:30]:  info: ppp1: test1: authentication succeeded
[2017-08-02 12:51:31]: debug: ppp0: send [LCP EchoReq id=23 <magic 5d5cc3eb>]
[2017-08-02 12:51:31]: debug: ppp0: recv [LCP EchoRep id=23 <magic 9174748a>]
[2017-08-02 12:51:33]:  warn: ppp1: chap-md5: unknown code received 1
[2017-08-02 12:51:33]: debug: ppp1: fsm timeout 2
[2017-08-02 12:51:33]:  info: ppp1: send [CCP ConfReq id=1 <mppe +H -M +S -L -D -C>]
[2017-08-02 12:51:33]: debug: ppp1: fsm timeout 9
[2017-08-02 12:51:33]:  info: ppp1: send [IPCP ConfReq id=1 <addr 10.10.3.1>]
[2017-08-02 12:51:35]: debug: ppp1: send [LCP EchoReq id=2 <magic 3cc404e2>]
[2017-08-02 12:51:35]: debug: ppp1: recv [LCP EchoRep id=2 <magic 3e458063>]
[2017-08-02 12:51:35]: debug: ppp0: recv [LCP EchoReq id=91 <magic 9174748a>]
[2017-08-02 12:51:35]: debug: ppp0: send [LCP EchoRep id=91 <magic 5d5cc3eb>]
[2017-08-02 12:51:36]:  warn: ppp1: chap-md5: unknown code received 1
[2017-08-02 12:51:36]: debug: ppp1: fsm timeout 1
[2017-08-02 12:51:36]:  info: ppp1: send [CCP ConfReq id=1 <mppe +H -M +S -L -D -C>]
[2017-08-02 12:51:36]: debug: ppp1: fsm timeout 8
[2017-08-02 12:51:36]:  info: ppp1: send [IPCP ConfReq id=1 <addr 10.10.3.1>]
[2017-08-02 12:51:36]: debug: ppp0: send [LCP EchoReq id=24 <magic 5d5cc3eb>]
[2017-08-02 12:51:36]: debug: ppp0: recv [LCP EchoRep id=24 <magic 9174748a>]
[2017-08-02 12:51:39]:  warn: ppp1: chap-md5: unknown code received 1
[2017-08-02 12:51:39]: debug: ppp1: fsm timeout 0
[2017-08-02 12:51:39]: debug: ppp1: ccp_layer_finished
[2017-08-02 12:51:39]: debug: ppp1: fsm timeout 7
[2017-08-02 12:51:39]:  info: ppp1: send [IPCP ConfReq id=1 <addr 10.10.3.1>]
[2017-08-02 12:51:40]: debug: ppp1: send [LCP EchoReq id=3 <magic 3cc404e2>]
В логах OpenWRT сообщение об успешной авторизации.

Code: Select all

Wed Aug  2 14:27:16 2017 daemon.notice pppd[2380]: pppd 2.4.7 started by root, uid 0
Wed Aug  2 14:27:17 2017 kern.info kernel: [91702.414738] pptp-PPTP: renamed from ppp0
Wed Aug  2 14:27:17 2017 daemon.info pppd[2380]: Using interface pptp-PPTP
Wed Aug  2 14:27:17 2017 daemon.notice pppd[2380]: Connect: pptp-PPTP <--> pptp (192.168.0.147)
Wed Aug  2 14:27:20 2017 daemon.info pppd[2380]: CHAP authentication succeeded: Authentication succeeded
Wed Aug  2 14:27:20 2017 daemon.notice pppd[2380]: CHAP authentication succeeded
Но интерфейс ppp* в ifconfig отсутствует. Адрес не назначается. Подозреваю, что что-то с chap-md5 не стыкуется. Прошу совета.

kerby
Posts: 44
Joined: 16 Jan 2017, 09:17

Re: openwrt pptp client

Post by kerby » 03 Aug 2017, 08:48

Разобрался! В конфиге options.pptp на клиенте OpenWRT нужно прописать параметр noauth - тем самым не требовать от сервера подтвердить свою подлинность перед началом обмена пакетами. После все сразу заработало. Адрес назначился и пинги на/с клиента пошли.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest