Skip to contentSkip to conversation

New feature proposal: --route option

Openvpn-devel James Yonan 2 participants 3 messages Sep 4, 2003

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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 ?

Quoted 1 line

I would like to implement a --route option that will be a proxy for the

route

Quoted 5 lines

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

Quoted 7 lines

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

Quoted 3 lines

usage, one can always write a script.

The overall goal is to simplify configuration by getting the common

operations

Quoted 6 lines

out of --up scripts and into the OpenVPN config file where they will be portable and easier to support.

Comments?

James

#2 lore raw
Quoted 4 lines · Tom Bin

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

That's a good idea. It looks like most IP stacks support metric, I see that Windows does too so that is good.

Quoted 2 lines

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

Yes, that's what I'm planning. I was also planning a --route-delay with a number of seconds argument, so the routes addition could be delayed long enough to allow a tap interface to get its DHCP parameters.

Quoted 1 line

Moreover, is it possible to have multiple routes added ?

Yes, definitely.

James

Quoted 41 lines
Quoted 4 lines

I would like to implement a --route option that will be a proxy for the

route

Quoted 5 lines

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

Quoted 7 lines

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

Quoted 3 lines

usage, one can always write a script.

The overall goal is to simplify configuration by getting the common

operations

Quoted 6 lines

out of --up scripts and into the OpenVPN config file where they will be portable and easier to support.

Comments?

James

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel