Bug 484831
| Summary: | nobind/tap configuration causes openvpn-helper to exit b/c no local ip address available | |||
|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Peter A. Bigot <bigotp> | |
| Component: | NetworkManager-openvpn | Assignee: | Dan Williams <dcbw> | |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
| Severity: | high | Docs Contact: | ||
| Priority: | low | |||
| Version: | 18 | CC: | bond.masuda, choeger, dcbw, doug, mike.auty, steve, suren, tim, zzybaloobah | |
| Target Milestone: | --- | Keywords: | Reopened, Triaged | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1184288 (view as bug list) | Environment: | ||
| Last Closed: | 2014-02-05 22:38:34 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
|
Description
Peter A. Bigot
2009-02-10 06:59:47 UTC
Hi Peter, thank you for your bugreport, could you please post the (complete) list of parameters, openvpn is started with? regards Christoph The client side is invoked by NeworkManager-openvpn with these parameters, inferred from wherever it hides what I put into the GUI: ARGS: --remote 10.0.67.2 --comp-lzo --nobind --dev tap --proto udp --port 1194 --tls-auth /etc/openvpn/keys/ta.key 1 --syslog nm-openvpn --script-security 2 -- up /usr/libexec/nm-openvpn-service-openvpn-helper --up-restart --persist-key --p ersist-tun --management 127.0.0.1 1194 --management-query-passwords --route-noex ec --client --ca /etc/openvpn/keys/server-chain.pem --cert /etc/openvpn/keys/net book.az.vpn.pem --key /etc/openvpn/keys/netbook.az.vpn.key The server doesn't use NetworkManager, and has a configuration with these options: local 10.0.67.2 proto udp port 1194 dev tap0 ca keys/vpn-client-chain.pem cert keys/server.az.vpn.pem key keys/server.az.vpn.key tls-auth keys/ta.key 0 dh keys/dh1024.pem mode server tls-server ifconfig-pool 192.168.67.64 192.168.67.95 push "route-gateway 192.168.67.1" keepalive 10 120 comp-lzo max-clients 5 user nobody group nobody persist-key persist-tun status openvpn-status.log ;log openvpn.log ;log-append openvpn.log verb 4 mute 10 I am having the same problem. Could you please post your "workaround" script? I see this is set to low priority, so it is not likely to be fixed any time soon. It's something like this:
cd /usr/libexec
mv nm-openvpn-service-openvpn-helper nm-openvpn-service-openvpn-helper.real
cat >nm-openvpn-service-openvpn-helper.sh <<EOScript
#!/bin/sh
ifconfig_local=192.168.0.2
export ifconfig_local
exec /usr/libexec/nm-openvpn-service-openvpn-helper.real "${@}"
EOScript
ln -s nm-openvpn-service-openvpn-helper nm-openvpn-service-openvpn-helper.sh
Though the ln command at the end has its arguments wrong way round. This message is a reminder that Fedora 10 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 10. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '10'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 10's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 10 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping I have this same bug in FC12.
Should I file a new bug, or can someone change this to FC12?
NetworkManager-0.7.996-6.git20091021.fc12.i686
NetworkManager-openvpn-0.7.996-4.git20090923.fc12.i686
Nov 20 05:05:55 music nm-openvpn[2473]: /usr/libexec/nm-openvpn-service-openvpn-helper tap0 1500 1576 init
Nov 20 05:05:55 music NetworkManager: <info> VPN plugin failed: 2
Nov 20 05:05:55 music nm-openvpn[2473]: script failed: external program exited with error status: 1
Also --
the workaround I've used in the past is to set up the tap
interface like a "real" interface, with a ifcfg-tap0 script,
and use the /sbin/ifup-pre-local script to start OpenVPN:
if <interface> == tap0 then
openvpn --config <your config>
endif
NetworkManager treats tap0 like a "real" interface, That way, tap0 gets configured at startup just like any other interface -- in particular, via
DHCP
Fedora 10 changed to end-of-life (EOL) status on 2009-12-17. Fedora 10 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. I still have the problem with Fedora 18. The workaround in comment 4 is working. This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. This problem still exists in Fedora 20 and 21. Can this be re-opened and properly addressed? The workaround mentioned in comment #4 is not sustainable (changes to nm-openvpn-service-openvpn-helper are overwritten from updates). Without the ability for OpenVPN to obtain IP configuration via DHCP severely hinder's interoperability with many VPN capable router home appliances where users do not have the convenience of "reconfiguring" the VPN server side. Google searches reveal that this affects many people for several years now. Would it be possible that priority on this be raised? It appears the following bugs may also be relevant: https://bugzilla.gnome.org/show_bug.cgi?id=445257 https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/297707 |