Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 454258

Summary: Openvpn tries to use /sbin/ifconfig, but it's moved to /bin/ifconfig
Product: Gentoo Linux Reporter: Gabor MARTON <dodver>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major CC: bkohler
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gabor MARTON 2013-01-27 10:30:02 UTC
Without the iproute2 use flag openvpn uses /sbin/ifconfig and /sbin/route. Since a recent update those two executables moved from /sbin to /bin. Now openvpn can't use them, because it refers to the with full path (/sbin/ifconfig, /sbin/route).

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/openvpn start (openvpn compiled without iproute2 use flag)
2. wait
3. Get surprised: openvpn can't come up :(
Actual Results:  
Jan 27 11:10:22 localhost openvpn[8061]: /sbin/ifconfig tap0 X.X.X.X netmask 255.255.255.0 mtu 1484 broadcast X.X.X.X
Jan 27 11:10:22 localhost openvpn[8061]: Linux ifconfig failed: could not execute external program
Jan 27 11:10:22 localhost openvpn[8061]: Exiting


Jan 27 11:11:41 localhost openvpn[8140]: /sbin/route add -net X.X.X.X netmask 255.255.255.0 gw X.X.X.X
Jan 27 11:11:41 localhost openvpn[8140]: ERROR: Linux route add command failed: could not execute external program


Expected Results:  
A working openvpn tunnel.
Comment 1 Ben Kohler gentoo-dev 2013-01-27 16:15:25 UTC

*** This bug has been marked as a duplicate of bug 407195 ***