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
Huge amount of customized routes break the VPN client pro
Huge amount of customized routes break the VPN client pro
- Attachments
-
- exclude_routes.txt.zip
- (24.56 KiB) Downloaded 323 times
Re: Huge amount of customized routes break the VPN client pro
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.
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.
Re: Huge amount of customized routes break the VPN client pro
How about the other way around, use include routes but choose default gateway not VPN gateway?
Is that doable?
Is that doable?
Re: Huge amount of customized routes break the VPN client pro
The gateway workaround could work only with OpenVPN TAP configuration.
Re: Huge amount of customized routes break the VPN client pro
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
or maybe worth processing that once and cache the result for next time connection
Re: Huge amount of customized routes break the VPN client pro
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.
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.