Huge amount of customized routes break the VPN client pro

Support requests about VPN Client Pro
Post Reply
haohaolee
Posts: 3
Joined: Mon Sep 23, 2019 8:04 am

Huge amount of customized routes break the VPN client pro

Post by haohaolee »

Hi,

I need set up customized routes to achieved split tunneling, but it seems the number of my routes is too large.
The problematic routes file is attached.

By the way, an approach to clean all the routes is needed much as well, it is nearly impossible for me to delete thousands of routes one by one

Best regards,
Hao
Attachments
exclude_routes.txt.zip
(24.56 KiB) Downloaded 324 times
admin
Site Admin
Posts: 714
Joined: Fri Feb 15, 2019 4:04 pm
Contact:

Re: Huge amount of customized routes break the VPN client pro

Post by admin »

Hi,

unfortunately Android VPNService doesn't support the exclusion of the routes, so the app implement this feature with a recursive algorithm that must calculate the whole subnets except the excluded one.
This workaround must done a lot of work for each excluded route and so can be used only for a limited number of routes (the limit is related to the speed of the processor).
Your file conatins about 8500 exluded routes, and so the algorithm take a very long time to calculate the result.

Anyway I will think to a new option to delete all routes.
haohaolee
Posts: 3
Joined: Mon Sep 23, 2019 8:04 am

Re: Huge amount of customized routes break the VPN client pro

Post by haohaolee »

How about the other way around, use include routes but choose default gateway not VPN gateway?

Is that doable?
admin
Site Admin
Posts: 714
Joined: Fri Feb 15, 2019 4:04 pm
Contact:

Re: Huge amount of customized routes break the VPN client pro

Post by admin »

The gateway workaround could work only with OpenVPN TAP configuration.
haohaolee
Posts: 3
Joined: Mon Sep 23, 2019 8:04 am

Re: Huge amount of customized routes break the VPN client pro

Post by haohaolee »

Could I get the algorithm to calculate the whole subnet excepts the excluded ones so I can preprocess the excluded routes into included ones?
or maybe worth processing that once and cache the result for next time connection
admin
Site Admin
Posts: 714
Joined: Fri Feb 15, 2019 4:04 pm
Contact:

Re: Huge amount of customized routes break the VPN client pro

Post by admin »

I made some tests about it...
The resulting routing table contains more than 10500 routes, but the app is not designed to handle this huge number of routes.
Moreover, this amount of routes would slow down the VPN considerably.
Post Reply