Is it possible to add a route with NetworkManager for a VPN connection by using an interface name instead of a gateway address?
I don't know an IP of my gateway after I'm connected to the VPN server, so I manually add a couple routes with
ip r add 10.1.0.0 dev tun0
ip r add 10.2.0.0 dev tun0
Looking for a way to make it happening automatically, preferably with NetworkManager, if not then with some post-up script.
TIA!