By Ryan Fick


2019-10-26 17:18:45 8 Comments

I am in need of adding two specific routes to the "Forwarding routes" section of the stock VPN client. How can I accomplish that?

Lets say I need to add 1.0.0.0/24 & 255.0.0.0/24. I have tried adding them every way I can think of and I am unable to save as soon as I try to add the second route.
EG:

1.0.0.0/24
255.0.0.0/24
1.0.0.0/24 255.0.0.0/24
1.0.0.0/24,255.0.0.0/24
1.0.0.0/24:255.0.0.0/24
1.0.0.0/24;255.0.0.0/24
1.0.0.0/24255.0.0.0/24
1.0.0.0/24&255.0.0.0/24
1.0.0.0/24 & 255.0.0.0/24

None of these options worked.

I know that I can use 0.0.0.0/0 but I don't want ALL of my traffic to go via the VPN as the VPN doesn't provide internet connectivity & is just used to gain access to specific equipment.

If this is not possible with the stock app, is there any other solution?

1 comments

@Irfan Latif 2019-11-03 18:27:59

I think you are talking about PPTP / L2TP / IPSec VPN configuration in Settings:

I haven't used that, but according to this source a space between routes should work:

"In the Forwarding routes box, enter X.X.X.X/X - optionally, you can also enter Y.Y.Y.Y/Y Z.Z.Z.Z/Z (put a space between each entry)."

So this should work:

1.0.0.0/24 255.0.0.0/24

If it doesn't, I'm afraid rooting is the only way. Then you can modify routing policy (ip rule show) and kernel routing table (ip route show table all) as per your requirements.

Related Questions

Sponsored Content

1 Answered Questions

How can I add routes to VPN

  • 2012-06-04 02:10:04
  • Pantelis
  • 2806 View
  • 1 Score
  • 1 Answer
  • Tags:   vpn openvpn

1 Answered Questions

[SOLVED] How to exclude specific apps from using the VPN connection on Android?

  • 2017-01-22 09:41:24
  • Nikhil Alex George
  • 10064 View
  • 2 Score
  • 1 Answer
  • Tags:   vpn openvpn

1 Answered Questions

1 Answered Questions

[SOLVED] 6.0.1 fails to send MMS over PIA Always-On VPN when using 4G LTE

2 Answered Questions

[SOLVED] How to connect to multiple VPN in android

  • 2014-11-10 21:19:15
  • user23047
  • 7755 View
  • 4 Score
  • 2 Answer
  • Tags:   vpn

1 Answered Questions

[SOLVED] How to make Android use remote DNS servers over VPN?

  • 2012-03-15 13:33:05
  • Jonathan
  • 15381 View
  • 4 Score
  • 1 Answer
  • Tags:   vpn dns

2 Answered Questions

[SOLVED] How do I set up OpenVPN on CyanogenMod 7?

Sponsored Content