sudo openvpn --config client.conf
, or as a service using sudo service openvpn@client start
.--route-metric m
--route
.route-metric 1000
to my config file would affect the default route that OpenVPN creates automatically, however I have to assume that it's only used with the --route
option, and the route in question still has a metric of 0:--route
option to create my own using the vpn_gateway
variable provided by this option (I think)--route
option. This will require knowing all the parameters of the route, so some scripting may be required.route-nopull
option.--route-nopull
--client
or --pull
, accept options pushed by server EXCEPT for routes, block-outside-dns and dhcp options like DNS servers.