Overriding a pushed "route" in the client's config throws an error

When connecting to server that pushes routes using this:

# Pushed routes
push "route"

and when the client overrides them in its config:

# Options
route-metric 50

This works but the client's log have this:

Options error: option 'route' cannot be used in this context

This issue materializes because "route-nopull" option takes away the permission from the client to install server-pushed routes, effectively telling the option parser "no, this option is not valid here".

In OpenVPN 2.4 this problem can be solved by using pull-filter instead:

pull-filter ignore "route "

Return to FAQ

Last modified 3 years ago Last modified on 02/26/19 08:03:51