for example,
sudo route add default 192.168.10.1
convert to system api code use swift/c/oc.
Is there any way without modifying the VPN type to change route?
Using the NEPacketTunnelProvider API is the default way to alter the route table to create a virtual interface. If you are wanting to alter the routing table for other non-app usage then the route command will work for you in this context. NEVPNManager will not specifically allow you to define routes like NEPacketTunnelProvider.
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com