After connecting to OVPN, I need to add many routes (more than 3000).
It can be done by
sudo reoute add X.X.X.X/X X.X.X.X for each one rules, but it's really slow. Is there any other alternative methods to add them more quickly?
To be more clear, I use a bash script to achieve this, so the problem should be how to write a more efficient bash script.