The subject line should say it all, but to reiterate, I want to
ignore any default route directive from the server, accepting all other route directives.
I do not have the ability to reconfigure the server. It is part of a different organization and out of my control.
I
can achieve what I want with
sudo route delete default tun0, but it has been very frustrating to have to do this manually every time. I am running on a Linux system and I have root access.
I've read the manual, the howtos, and the sample config (only a very sparse one for client-side), and this page:
https://community.openvpn.net/openvpn/wiki/IgnoreRedirectGateway
none of which had this specific answer.
I looked at the route-related options
redirect-gateway,
route-nopull, and
route-gateway, but got nowhere.
Just to be crystal clear, I want to configure the
client to
avoid installing a
default route to the VPN gateway that the
server is attempting to install, but to accept all other route directives. The remote network has several subnets other than the one in which the VPN endpoint is associated with that I need to be able to access.