When trying to establish an openvpn connection to a server, I get the following in syslog: Apr 04 19:56:36 [openvpn] /sbin/ifconfig tun0 192.168.58.6 pointopoint 192.168.58.5 mtu 1500 Apr 04 19:56:36 [openvpn] Linux ifconfig failed: could not execute external program Apr 04 19:56:36 [openvpn] Exiting And once I worked around that by doing 'ln -s /bin/ifconfig /sbin/ifconfig', I got past that, but then this came up: Apr 04 20:01:56 [openvpn] /sbin/route add -net a.b.c.d netmask 255.255.255.255 gw 192.168.0.1 Apr 04 20:01:56 [openvpn] ERROR: Linux route add command failed: could not execute external program Apr 04 20:01:56 [openvpn] /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 192.168.58.5 Apr 04 20:01:56 [openvpn] ERROR: Linux route add command failed: could not execute external program Apr 04 20:01:56 [openvpn] /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 192.168.58.5 Apr 04 20:01:56 [openvpn] ERROR: Linux route add command failed: could not execute external program Apr 04 20:01:56 [openvpn] /sbin/route add -net 192.168.58.1 netmask 255.255.255.255 gw 192.168.58.5 Apr 04 20:01:56 [openvpn] ERROR: Linux route add command failed: could not execute external program I fixed it again by doing 'ln -s /bin/route /sbin/route', but I thought I'd report it here to get it fixed for others as well. Reproducible: Always Steps to Reproduce: 1. Establish openvpn connection Actual Results: openvpn fails because it can't call /sbin/ifconfig and /sbin/route Expected Results: openvpn should be able to use ifconfig and route Versions: net-misc/openvpn-2.2.2 sys-apps/net-tools-1.60_p20120127084908 emerge --info: Portage 2.2.0_alpha99 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r2, 3.3.0 x86_64) ================================================================= System uname: Linux-3.3.0-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.1 Timestamp of tree: Wed, 04 Apr 2012 12:00:01 +0000 ccache version 3.1.7 [disabled] app-shells/bash: 4.2_p24 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2-r1 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.7-r5 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.9.3 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.6 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.3 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo sunrise kde local Installed sets: ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=amdfam10 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="-j --load-average=5" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr" FFLAGS="" GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/gentoo http://gentoo.osuosl.org/" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_GB de de_DE zh_CN" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/kde /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit crypt cups curl cxx dbus dri dts dvd dvdr dvdread emboss encode exif expat fam ffmpeg firefox flac foomaticdb ftp gd gdbm gdu gif gnutls gpm gtk iconv icq idn ieee1394 imagemagick imap imlib innodb ipod ipv6 jabber java javascript jingle jpeg jpeg2k kde kdehiddenvisibility lame lcms ldap libnotify lzo mad matroska md5sum midi mmap mmx mng modules mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp oscar pam pango pcre pdf php png policykit ppds qt3support qt4 quicktime raw rdesktop readline rss samba sdl semantic-desktop session speex spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs syslog taglib tcpd threads tidy tiff truetype udev unicode usb vorbis wifi wmf wxwindows x264 xattr xcb xcomposite xinerama xml xmlrpc xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en en_GB de de_DE zh_CN" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Correct if I'm wrong, but this seems to me that has to do if you're root or user...
How come your utilities are in /bin? # ls -la /sbin/ifconfig /sbin/route -rwxr-xr-x 1 root root 92328 Feb 13 21:29 /sbin/ifconfig -rwxr-xr-x 1 root root 73920 Feb 13 21:29 /sbin/route
(In reply to comment #2) > How come your utilities are in /bin? I wouldn't know - pretty sure I didn't tinker with them: # equery b /bin/ifconfig /bin/route * Searching for /bin/ifconfig,/bin/route ... sys-apps/net-tools-1.60_p20120127084908 (/bin/ifconfig) sys-apps/net-tools-1.60_p20120127084908 (/bin/route) # ls -la /bin/ifconfig /bin/route -rwxr-xr-x 1 root root 92685 Mar 26 01:28 /bin/ifconfig -rwxr-xr-x 1 root root 74812 Mar 26 01:28 /bin/route (and those are the symlinks I created manually, prior to submitting this bug report) # ls -la /sbin/ifconfig /sbin/route lrwxrwxrwx 1 root root 13 Apr 4 20:01 /sbin/ifconfig -> /bin/ifconfig lrwxrwxrwx 1 root root 10 Apr 4 20:02 /sbin/route -> /bin/route
Try to rebuild openvpn. https://bugs.gentoo.org/show_bug.cgi?id=408957
(In reply to comment #4) > Try to rebuild openvpn. > > https://bugs.gentoo.org/show_bug.cgi?id=408957 Ok, that works - thought I had tried that.
Hi! After I upgraded my computer (emerge --sync --quiet; emerge -avuD --newuse world), the OpenVPN stopped working because the issue described in this bug. After I reemerged the openvpn package, it works agains.
This appears to be a duplicate of https://bugs.gentoo.org/show_bug.cgi?id=407195
*** This bug has been marked as a duplicate of bug 407195 ***