Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#9184 closed defect (fixed)

openvpn calls "ifconfig" instead of "/sbin/ifconfig"

Reported by: Alexey I. Froloff <raorn@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Backfire 10.03
Keywords: openvpn Cc:


When I try to start OpenVPN server it dies with:

daemon.notice openvpn(...)[26486]: ifconfig tun0 pointopoint mtu 1500
daemon.err openvpn(...)[26486]: Linux ifconfig failed: could not execute external program

Problem is - openvpn calls "ifconfig" instead of "/sbin/ifconfig". If I create symlink to /sbin/ifconfig from current directory and start openvpn manually it starts working. Same thing may apply to "route" command.

Attachments (1)

openwrt-openvpn-paths.patch (708 bytes) - added by Alexey I. Froloff <raorn@…> 7 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 years ago by cshore

Have you damaged your PATH? OpenVPN works fine here, so I'm thinking you've mangled something. Hard-coding paths is generally a bad idea; that's what PATH is for.

Changed 7 years ago by Alexey I. Froloff <raorn@…>

comment:2 Changed 7 years ago by Alexey I. Froloff <raorn@…>

configure script searches host system for ifconfig, ip and route binaries. Attached patch hardcodes these paths and adds dependency on busybox (ifconfig and route).

comment:3 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Committed in r26480 - thanks!

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.