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

Как подружить mpd5 и андроид?

Добавлено: 2016-06-27 17:47:32
zheka79
Привет! Собственно сабж. Поднял на фре mpd5. Андроид 5-ой версии ни в какую не хочет коннектится с серваку.
Вот кусок лога с сервера:

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

Jun 27 17:39:20  mpd: [L-1] Accepting PPTP connection
Jun 27 17:39:20  mpd: [L-1] Link: OPEN event
Jun 27 17:39:20  mpd: [L-1] LCP: Open event
Jun 27 17:39:20  mpd: [L-1] LCP: state change Initial --> Starting
Jun 27 17:39:20  mpd: [L-1] LCP: LayerStart
Jun 27 17:39:20  mpd: [L-1] PPTP: attaching to peer's outgoing call
Jun 27 17:39:20  mpd: [L-1] Link: UP event
Jun 27 17:39:20  mpd: [L-1] LCP: Up event
Jun 27 17:39:20  mpd: [L-1] LCP: state change Starting --> Req-Sent
Jun 27 17:39:20  mpd: [L-1] LCP: SendConfigReq #1
Jun 27 17:39:20  mpd: [L-1]   ACFCOMP
Jun 27 17:39:20  mpd: [L-1]   PROTOCOMP
Jun 27 17:39:20  mpd: [L-1]   MRU 1500
Jun 27 17:39:20  mpd: [L-1]   MAGICNUM 75f91f3c
Jun 27 17:39:20  mpd: [L-1]   AUTHPROTO CHAP MSOFTv2
Jun 27 17:39:20  mpd: [L-1]   MP MRRU 2048
Jun 27 17:39:20  mpd: [L-1]   MP SHORTSEQ
Jun 27 17:39:20  mpd: [L-1]   ENDPOINTDISC [802.1] 00 0c 29 ad b3 1f
Jun 27 17:39:22  mpd: [L-1] LCP: SendConfigReq #2
Jun 27 17:39:22  mpd: [L-1]   ACFCOMP
Jun 27 17:39:22  mpd: [L-1]   PROTOCOMP
Jun 27 17:39:22  mpd: [L-1]   MRU 1500
Jun 27 17:39:22  mpd: [L-1]   MAGICNUM 75f91f3c
Jun 27 17:39:22  mpd: [L-1]   AUTHPROTO CHAP MSOFTv2
Jun 27 17:39:22  mpd: [L-1]   MP MRRU 2048
Jun 27 17:39:22  mpd: [L-1]   MP SHORTSEQ
Jun 27 17:39:22  mpd: [L-1]   ENDPOINTDISC [802.1] 00 0c 29 ad b3 1f
Jun 27 17:39:24  mpd: [L-1] LCP: SendConfigReq #3
Jun 27 17:39:24  mpd: [L-1]   ACFCOMP
Jun 27 17:39:24  mpd: [L-1]   PROTOCOMP
Jun 27 17:39:24  mpd: [L-1]   MRU 1500
Jun 27 17:39:24  mpd: [L-1]   MAGICNUM 75f91f3c
Jun 27 17:39:24  mpd: [L-1]   AUTHPROTO CHAP MSOFTv2
Jun 27 17:39:24  mpd: [L-1]   MP MRRU 2048
Jun 27 17:39:24  mpd: [L-1]   MP SHORTSEQ
Jun 27 17:39:24  mpd: [L-1]   ENDPOINTDISC [802.1] 00 0c 29 ad b3 1f
Jun 27 17:39:26  mpd: [L-1] LCP: SendConfigReq #4
Jun 27 17:39:26  mpd: [L-1]   ACFCOMP
Jun 27 17:39:26  mpd: [L-1]   PROTOCOMP
Jun 27 17:39:26  mpd: [L-1]   MRU 1500
Jun 27 17:39:26  mpd: [L-1]   MAGICNUM 75f91f3c
Jun 27 17:39:26  mpd: [L-1]   AUTHPROTO CHAP MSOFTv2
Jun 27 17:39:26  mpd: [L-1]   MP MRRU 2048
Jun 27 17:39:26  mpd: [L-1]   MP SHORTSEQ
Jun 27 17:39:26  mpd: [L-1]   ENDPOINTDISC [802.1] 00 0c 29 ad b3 1f
Jun 27 17:39:28  mpd: [L-1] LCP: SendConfigReq #5
Jun 27 17:39:28  mpd: [L-1]   ACFCOMP
Jun 27 17:39:28  mpd: [L-1]   PROTOCOMP
Jun 27 17:39:28  mpd: [L-1]   MRU 1500
Jun 27 17:39:28  mpd: [L-1]   MAGICNUM 75f91f3c
Jun 27 17:39:28  mpd: [L-1]   AUTHPROTO CHAP MSOFTv2
Jun 27 17:39:28  mpd: [L-1]   MP MRRU 2048
Jun 27 17:39:28  mpd: [L-1]   MP SHORTSEQ
Jun 27 17:39:28  mpd: [L-1]   ENDPOINTDISC [802.1] 00 0c 29 ad b3 1f
Jun 27 17:39:30  mpd: [L-1] LCP: SendConfigReq #6
Jun 27 17:39:30  mpd: [L-1]   ACFCOMP
Jun 27 17:39:30  mpd: [L-1]   PROTOCOMP
Jun 27 17:39:30  mpd: [L-1]   MRU 1500
Jun 27 17:39:30  mpd: [L-1]   MAGICNUM 75f91f3c
Jun 27 17:39:30  mpd: [L-1]   AUTHPROTO CHAP MSOFTv2
Jun 27 17:39:30  mpd: [L-1]   MP MRRU 2048
Jun 27 17:39:30  mpd: [L-1]   MP SHORTSEQ
Jun 27 17:39:30  mpd: [L-1]   ENDPOINTDISC [802.1] 00 0c 29 ad b3 1f
Jun 27 17:39:32  mpd: [L-1] LCP: SendConfigReq #7
Jun 27 17:39:32  mpd: [L-1]   ACFCOMP
Jun 27 17:39:32  mpd: [L-1]   PROTOCOMP
Jun 27 17:39:32  mpd: [L-1]   MRU 1500
Jun 27 17:39:32  mpd: [L-1]   MAGICNUM 75f91f3c
Jun 27 17:39:32  mpd: [L-1]   AUTHPROTO CHAP MSOFTv2
Jun 27 17:39:32  mpd: [L-1]   MP MRRU 2048
Jun 27 17:39:32  mpd: [L-1]   MP SHORTSEQ
Jun 27 17:39:32  mpd: [L-1]   ENDPOINTDISC [802.1] 00 0c 29 ad b3 1f
Jun 27 17:39:34  mpd: [L-1] LCP: SendConfigReq #8
Jun 27 17:39:34  mpd: [L-1]   ACFCOMP
Jun 27 17:39:34  mpd: [L-1]   PROTOCOMP
Jun 27 17:39:34  mpd: [L-1]   MRU 1500
Jun 27 17:39:34  mpd: [L-1]   MAGICNUM 75f91f3c
Jun 27 17:39:34  mpd: [L-1]   AUTHPROTO CHAP MSOFTv2
Jun 27 17:39:34  mpd: [L-1]   MP MRRU 2048
Jun 27 17:39:34  mpd: [L-1]   MP SHORTSEQ
Jun 27 17:39:34  mpd: [L-1]   ENDPOINTDISC [802.1] 00 0c 29 ad b3 1f
Jun 27 17:39:36  mpd: [L-1] LCP: SendConfigReq #9
Jun 27 17:39:36  mpd: [L-1]   ACFCOMP
Jun 27 17:39:36  mpd: [L-1]   PROTOCOMP
Jun 27 17:39:36  mpd: [L-1]   MRU 1500
Jun 27 17:39:36  mpd: [L-1]   MAGICNUM 75f91f3c
Jun 27 17:39:36  mpd: [L-1]   AUTHPROTO CHAP MSOFTv2
Jun 27 17:39:36  mpd: [L-1]   MP MRRU 2048
Jun 27 17:39:36  mpd: [L-1]   MP SHORTSEQ
Jun 27 17:39:36  mpd: [L-1]   ENDPOINTDISC [802.1] 00 0c 29 ad b3 1f
Jun 27 17:39:38  mpd: [L-1] LCP: SendConfigReq #10
Jun 27 17:39:38  mpd: [L-1]   ACFCOMP
Jun 27 17:39:38  mpd: [L-1]   PROTOCOMP
Jun 27 17:39:38  mpd: [L-1]   MRU 1500
Jun 27 17:39:38  mpd: [L-1]   MAGICNUM 75f91f3c
Jun 27 17:39:38  mpd: [L-1]   AUTHPROTO CHAP MSOFTv2
Jun 27 17:39:38  mpd: [L-1]   MP MRRU 2048
Jun 27 17:39:38  mpd: [L-1]   MP SHORTSEQ
Jun 27 17:39:38  mpd: [L-1]   ENDPOINTDISC [802.1] 00 0c 29 ad b3 1f
Jun 27 17:39:40  mpd: [L-1] LCP: parameter negotiation failed
Jun 27 17:39:40  mpd: [L-1] LCP: state change Req-Sent --> Stopped
Jun 27 17:39:40  mpd: [L-1] LCP: LayerFinish
Jun 27 17:39:40  mpd: [L-1] PPTP call terminated
Jun 27 17:39:40  mpd: [L-1] Link: DOWN event
Jun 27 17:39:40  mpd: [L-1] LCP: Close event
Jun 27 17:39:40  mpd: [L-1] LCP: state change Stopped --> Closed
Jun 27 17:39:40  mpd: [L-1] LCP: Down event
Jun 27 17:39:40  mpd: [L-1] LCP: state change Closed --> Initial
Jun 27 17:39:40  mpd: [L-1] Link: SHUTDOWN event
Jun 27 17:39:40  mpd: [L-1] Link: Shutdown
Как их подружить, куда копать? Буду благодарен за любую информацию.

Как подружить mpd5 и андроид?

Добавлено: 2016-06-28 15:32:49
glb_ussr
Так давай конфиги и скриншоты настроек с андроида

Как подружить mpd5 и андроид?

Добавлено: 2016-06-28 18:36:15
zheka79
Конфиг:

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

startup:
	# configure mpd users
	set user admin pass admin
	#set user foo1 bar1
	# configure the console
	#set console self 127.0.0.1 5005
	#set console open
	# configure the web server
	#set web self 0.0.0.0 5006
	#set web open

default:
	load pptp_server

pptp_server:

# Define dynamic IP address pool.
	set ippool add pool1 192.168.0.250 192.168.0.253

# Create clonable bundle template named B
	create bundle template B
	set iface enable proxy-arp
	set iface idle 1800
	set iface enable tcpmssfix
	set ipcp yes vjcomp
# Specify IP address pool for dynamic assigment.
	set ipcp ranges 192.168.0.200/32 ippool pool1
	set ipcp dns 8.8.8.8
#	set ipcp nbns 192.168.0.200
# The five lines below enable Microsoft Point-to-Point encryption
# (MPPE) using the ng_mppc(8) netgraph node type.
	set bundle enable compression
	set ccp yes mppc
	set mppc yes e40
	set mppc yes e128
	set mppc yes stateless

# Create clonable link template named L
	create link template L pptp
# Set bundle template to use
	set link action bundle B
# Multilink adds some overhead, but gives full 1500 MTU.
	set link enable multilink
	set link yes acfcomp protocomp
	set link no pap chap eap
	set link enable chap
	set link keep-alive 10 60
# We reducing link mtu to avoid GRE packet fragmentation.
	set link mtu 1460
# Configure PPTP
        set pptp self 85.234.35.113
# Allow to accept calls
        set link enable incoming
На андроиде настроек нет, только указывается протокол pptp, имя пользователя, пароль и айпишник сервера.