redirect-gateway fails when default route does not use a gateway
Bug #771148 reported by
Andreas Oberritter
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvpn (Debian) |
Fix Released
|
Unknown
|
|||
openvpn (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned | ||
ppp (Ubuntu) |
In Progress
|
Undecided
|
TJ |
Bug Description
Binary package hint: openvpn
When using a PPP connection to access the internet, OpenVPN fails to replace the default route.
Server's configuration:
push "redirect-gateway def1".
Client's default route:
default dev ppp0 scope link
Client's error message:
"NOTE: unable to redirect default gateway -- Cannot read current default gateway from system"
pppd doesn't set (and doesn't need) a gateway, but OpenVPN assumes that a gateway was needed for a default route.
Changed in openvpn (Debian): | |
status: | Unknown → New |
Changed in openvpn (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
Hi Andreas,
Thank you for taking the time to report bugs and trying to make Ubuntu Server better.
Unfortunately, this doesn't really seem like a bug of OpenVPN but rather ppp is probably not setting the default gateway when it should. Reading [1], we can confirm that OpenVPN *needs* the default route in this case, to be able to function properly.
Now, in your PPP configuration you should be able to specify a default route a should set it as specified by [2] (since it seems like an old bug and fixed already)
Furthermore, there's a work around to generate the default gateway automatically and can be found at [3].
Based on the information above, I'd say this bug should be set to "Wont Fix".However, as there a related Debian bug, I'll keep it open as incomplete.
Thank you again
[1]: http:// openvpn. net/archive/ openvpn- users/2007- 12/msg00029. html bugs.debian. org/cgi- bin/bugreport. cgi?bug= 85426 bugs.debian. org/cgi- bin/bugreport. cgi?bug= 592088# 20
[2]: http://
[3]: http://