Hi guys
I’ve setup a VPN server and we just encountered some kind of strange problems. All PCs(Windows/MAC/Linux) connection are established successfully but android devices can’t
.
Server Configuration:
ip pool add name=VPN_Ips_Pool ranges=172.16.0.0/24
ppp profile add change-tcp-mss=yes dns-server=4.2.2.4,8.8.8.8 local-address=<SERVER IP> name=VPN_Profile remote-address=VPN_Ips_Pool use-encryption=required
interface pptp-server server set authentication=mschap1,mschap2,pap,chap default-profile=VPN_Profile enabled=yes
interface pptp-server add disabled=no name=pptp-vpn-server user=""
ip firewall nat add chain=srcnat action=masquerade
ip firewall mangle add chain=prerouting src-address=172.16.0.0/24 action=mark-routing new-routing-mark=Tunnel
ip route add gateway=<IP Address of ipip interface> routing-mark=Tunnel
Router Log:
log print
10:19:52 pptp,ppp,info <pptp-0>: waiting for call...
10:19:58 pptp,ppp,info <pptp-0>: terminating...
10:19:58 pptp,ppp,info <pptp-0>: disconnected
Also Android Log:
adb shell logcat -s Vpn:*
D/Vpn ( 810): setting state=CONNECTING, reason=startLegacyVpn
D/Vpn ( 810): setting state=CONNECTING, reason=execute
D/Vpn ( 810): setting state=DISCONNECTED, reason=exit
adb shell logcat -s LegacyVpnRunner:*
V/LegacyVpnRunner( 810): Waiting
V/LegacyVpnRunner( 810): Executing
V/LegacyVpnRunner( 810): Read EOF from mtpd
I/LegacyVpnRunner( 810): Aborting
I/LegacyVpnRunner( 810): java.lang.IllegalStateException: mtpd is dead
I/LegacyVpnRunner( 810): at com.android.server.connectivity.Vpn$LegacyVpnRunner.execute(Vpn.java:1479)
I/LegacyVpnRunner( 810): at com.android.server.connectivity.Vpn$LegacyVpnRunner.run(Vpn.java:1346)
adbs hell logcat -s mtpd:*
D/mtpd (10589): Waiting for control socket
D/mtpd (10589): Received 20 arguments
I/mtpd (10589): Using protocol pptp
I/mtpd (10589): Connecting to <SERVER IP> port 1723 via wlan0
I/mtpd (10589): Connection established (socket = 11)
D/mtpd (10589): Sending SCCRQ
D/mtpd (10589): Received SCCRP -> Sending OCRQ (local = 60697)
I/mtpd (10589): Tunnel established
D/mtpd (10589): Received OCRQ (remote = 12800)
I/mtpd (10589): Session established
I/mtpd (10589): Creating PPPoX socket
I/mtpd (10589): Starting pppd (pppox = 12)
I/mtpd (10589): Pppd started (pid = 10593)
D/mtpd (10589): Connection closed
I/mtpd (10589): Remote server hung up
I/mtpd (10589): Sending signal to pppd (pid = 10593)
I/mtpd (10589): Mtpd is terminated (status = 6)
What I’ve missed
?