I used NetworkManager to connect to a openVPN server. It is configured such that all traffic passes through the VPN:> ip route                    default via 10.4.4.73 dev tun0  proto static  metric 50 default via 192.168.178.1 dev wlp2s0  proto static  metric 600 with 10.4.4.73 being the peer address of the tun0 device. The second route routes traffic through my local router. In an attempt to remove the default route, I issued the command:ip route del default via 10.4.4.73 dev tun0which does not throw an error, but does not alter the routing table neither. What is the right way to remove that route?
How to delete default route with iproute2
routing;openvpn;networkmanager
The ip route del command looks not wrong to me. If it doesn't work, you either have to specify all properties or the route (that is, everything that ip route show prints, including 'metric' and 'proto') or you might get away with it by omitting the 'via' part.Anyway, if you do this, NetworkManager may restore the route later and it certainly restores it upon re-activating the OpenVPN connection.Probably, you should donmcli connection modify $OVPN_CONN_NAME ipv4.never-default yesSee man nm-settings.