Disable --redirect-gateway
Hi OpenVPN developers.
I wrote a small plug-in that integrates OpenVPN into NetworkManager (see
http://www.niemueller.de/software/patches/networkmanager.php or NetworkManager CVS at http://www.gnome.org/projects/NetworkManager/).
Someone pointed out that OpenVPN 2.1 will use the --redirect-gateway by default. Since this is something that NM does by itself we would like to have an option to completely disable this feature.
Is there a chance to get a "disable" flag to the --redirect-gateway flags or a --no-redirect-gateway flag that can be used to get the old behaviour? Working with your changes would either mean changing a lot of code in NM, which is unlikely, or a manual workaround that we delete the routes that OpenVPN created, which is pretty useless if there is something as simple as a "disable" flag that could solve this right away.
What do you think, is there a chance to get that flag? Would you accept an appropriate patch?
Tim
Signature · 3 lines
Tim Niemueller <[email protected]...> www.niemueller.de ================================================================= Imagination is more important than knowledge. (Albert Einstein)
Quoted 9 lines · Tim Niemueller
Hi OpenVPN developers.
I wrote a small plug-in that integrates OpenVPN into NetworkManager (see
http://www.niemueller.de/software/patches/networkmanager.php or NetworkManager CVS at http://www.gnome.org/projects/NetworkManager/).Someone pointed out that OpenVPN 2.1 will use the --redirect-gateway by default. Since this is something that NM does by itself we would like to have an option to completely disable this feature.
I can't see anywhere in the change-log that this would now be the default, and I can't see why it should be either. Have you verifyed that it really is the default in 2.1?
Signature · 6 lines
A. Because people read from top to bottom. Q. Why should I not top-post? _________________________________________________________ Mathias Sundman (^) ASCII Ribbon Campaign NILINGS AB X NO HTML/RTF in e-mail Tel: +46-(0)8-666 32 28 / \ NO Word docs in e-mail
Quoted 7 lines · Mathias Sundman
On Tue, 6 Dec 2005, Tim Niemueller wrote:
I can't see anywhere in the change-log that this would now be the default, and I can't see why it should be either. Have you verifyed that it really is the default in 2.1?
In the man page of the OpenVPN 2.1 beta 7 package it says (in the description of the --redirect-gateway argument):
Using the def1 flag is highly recommended, and is currently planned to become the default by OpenVPN 2.1.
A user has reported this for the behaviour that the packaged version in Fedora Extras Devel shows; see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175047
This makes me think that is is not only planned but already the default in the beta. I didn't look at the source, yet.
Tim
Signature · 3 lines
Tim Niemueller <[email protected]...> www.niemueller.de ================================================================= Imagination is more important than knowledge. (Albert Einstein)
Quoted 19 lines · Tim Niemueller
Quoted 9 lines · Mathias Sundman
On Tue, 6 Dec 2005, Tim Niemueller wrote:
I can't see anywhere in the change-log that this would now be the default, and I can't see why it should be either. Have you verifyed that it really is the default in 2.1?
In the man page of the OpenVPN 2.1 beta 7 package it says (in the description of the --redirect-gateway argument):
Using the def1 flag is highly recommended, and is currently planned to become the default by OpenVPN 2.1.
Quoted 8 lines
A user has reported this for the behaviour that the packaged version in Fedora Extras Devel shows; see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=175047This makes me think that is is not only planned but already the default in the beta. I didn't look at the source, yet.
No, redirect-gateway will definitely not be enabled by default in 2.1 or future versions.
The note on the man page tries to say that the def1 option to redirect-gateway will become the default for 2.1, but only when redirect-gateway is actually used.
James
Quoted 2 lines · James Yonan
No, redirect-gateway will definitely not be enabled by default in 2.1 or future versions.
OK, thanks for the clarification.
Tim
Signature · 3 lines
Tim Niemueller <[email protected]...> www.niemueller.de ================================================================= Imagination is more important than knowledge. (Albert Einstein)