[Sprint HTC One (M9)] tws101:
I am having an issue where VPN will not work.

Clients I have tested:

VPN Root

Swan

Native Android VPN

I am sure the issue occurred after the update to current version 5.1, with the 2.1 bad boys update. All clients were working prior to this.

Fails on Wifi or 3g/4g... Fails Always

I am running my own VPN server on a Mikrotik Router. Other Phones and computers have no issue with connecting. None of them are android 5.1 or Bad Boys.

LOG

##### VpnRoot LOGS #####

Connecting to REDACTED port 1723 via rmnet_data0

Connection established (socket = 11)

Sending SCCRQ

Received SCCRP -> Sending OCRQ (local = 9415)

Tunnel established

Received OCRQ (remote = 62720)

Session established

Creating PPPoX socket

Starting pppd (pppox = 12)

Pppd started (pid = 30670)

Using PPPoX (socket = 12)

pppd 2.4.3 started by root, uid 0

setprop for pppoe failed with ifname[],pid[30670]

using channel 33

Using interface ppp100

setprop for pppoe failed with ifname[ppp100],pid[30670]

Connect: ppp100 <-->

MPPE 128-bit stateless compression enabled

Received bad configure-rej: 83 06 00 00 00 00 02 06 00 2d 0f 01

Received bad configure-rej: 83 06 00 00 00 00 02 06 00 2d 0f 01

Received bad configure-rej: 83 06 00 00 00 00 02 06 00 2d 0f 01

Received bad configure-rej: 83 06 00 00 00 00 02 06 00 2d 0f 01

Received bad configure-rej: 83 06 00 00 00 00 02 06 00 2d 0f 01

Recv() Connection timed out

Sending signal to pppd (pid = 30670)

Terminating on signal 15

MPPE disabled

write: Permission denied (13)

Connection terminated.

Modem hangup

Exit.

#### Device INFO ####

Android SDK: 22

Android Device: HTC 0PJA2

Android OS: 5.1

#### IpAddr List ####

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

valid_lft forever preferred_lft forever

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN

link/ether fa:6f:47:05:e3:a5 brd ff:ff:ff:ff:ff:ff

3: sit0: <NOARP> mtu 1480 qdisc noop state DOWN

link/sit 0.0.0.0 brd 0.0.0.0

4: rmnet_ipa0: <UP,LOWER_UP> mtu 2000 qdisc pfifo_fast state UNKNOWN qlen 1000

link/[530]

5: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000

link/ether 90:e7:c4:d9:33:f4 brd ff:ff:ff:ff:ff:ff

inet 10.1.2.247/22 brd 10.1.3.255 scope global wlan0

valid_lft forever preferred_lft forever

inet6 fe80::92e7:c4ff:fed9:33f4/64 scope link

valid_lft forever preferred_lft forever

6: rmnet_data0: <> mtu 1422 qdisc noop state DOWN qlen 1000

link/[530]

7: rmnet_data1: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

8: rmnet_data2: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

9: rmnet_data3: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

10: rmnet_data4: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

11: rmnet_data5: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

12: rmnet_data6: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

13: rmnet_data7: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

14: r_rmnet_data0: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

15: r_rmnet_data1: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

16: r_rmnet_data2: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

17: r_rmnet_data3: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

18: r_rmnet_data4: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

19: r_rmnet_data5: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

20: r_rmnet_data6: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

21: r_rmnet_data7: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

22: r_rmnet_data8: <> mtu 1500 qdisc noop state DOWN qlen 1000

link/[530]

#### VpnROOT ####

We are connected to wifi network:"Shield T"

We are connected to wifi network:"Shield T"

#### Route Table ####

10.1.0.0/22 dev wlan0 proto kernel scope link src 10.1.2.247 metric 205

#### Route Rule Table ####

0: from all lookup local

10000: from all fwmark 0xc0000/0xd0000 lookup legacy_system

13000: from all fwmark 0x10063/0x1ffff lookup local_network

13000: from all fwmark 0x102ae/0x1ffff lookup wlan0

14000: from all oif wlan0 lookup wlan0

15000: from all fwmark 0x0/0x10000 lookup legacy_system

16000: from all fwmark 0x0/0x10000 lookup legacy_network

17000: from all fwmark 0x0/0x10000 lookup local_network

19000: from all fwmark 0x2ae/0x1ffff lookup wlan0

22000: from all fwmark 0x0/0xffff lookup wlan0

23000: from all fwmark 0x0/0xffff uidrange 0-0 lookup main

32000: from all unreachable

#### Route Rule Table rmnet_data0 ####

#### DNS Config ####

[dhcp.wlan0.dns1]: [10.1.0.1]

[dhcp.wlan0.dns2]: []

[dhcp.wlan0.dns3]: []

[dhcp.wlan0.dns4]: []

[net.change]: [net.dns.search]

[net.dns.search]: [google.com]

[net.dns1]: [10.1.0.1]

[net.dns2]: []

[net.dns3]: []

[net.dns4]: []

[net.rmnet_data0.dns1]: [0.0.0.0]

[net.rmnet_data0.dns2]: [0.0.0.0]

Chain PREROUTING (policy ACCEPT 4895 packets, 1489526 bytes)

pkts bytes target prot opt in out source destination

4895 1489526 oem_nat_pre all -- * * 0.0.0.0/0 0.0.0.0/0

Chain INPUT (policy ACCEPT 4769 packets, 1450266 bytes)

pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 83692 packets, 8828492 bytes)

pkts bytes target prot opt in out source destination

Chain POSTROUTING (policy ACCEPT 83692 packets, 8828492 bytes)

pkts bytes target prot opt in out source destination

83692 8828492 natctrl_nat_POSTROUTING all -- * * 0.0.0.0/0 0.0.0.0/0

Chain natctrl_nat_POSTROUTING (1 references)

pkts bytes target prot opt in out source destination

Chain oem_nat_pre (1 references)

pkts bytes target prot opt in out source destination

##### End LOGS #####