It's really a good idea.
I think the syntax is good enough...,
maybe you can take the metric(route cost) into consideration.

I would like to suggest the route is added once the vpn is up
and deleted when the vpn is down.

Moreover, is it possible to have multiple routes added ?



> I would like to implement a --route option that will be a proxy for the
route
> command, similar to the way that the --ifconfig option is a proxy for the
> ifconfig command.
>
> The goal would be to present a kind of least-common-denominator route
> functionality which is basic enough to be portable across OpenVPN's
platform
> space.
>
> I'm thinking of a syntax such as
>
>   --route network netmask gateway
>
> I'm looking for a syntax that will cover basic routing -- for more
advanced
> usage, one can always write a script.
>
> The overall goal is to simplify configuration by getting the common
operations
> out of --up scripts and into the OpenVPN config file where they will be
> portable and easier to support.
>
> Comments?
>
> James


Reply via email to