OpenVPN not working in Slacko 5.4?

Using applications, configuring, problems
Post Reply
Message
Author
chillinfart
Posts: 88
Joined: Mon 22 May 2006, 18:43

OpenVPN not working in Slacko 5.4?

#1 Post by chillinfart »

I installed OpenVPN 2.2.2 from Slackware repositories (via txz packages). However, when i try to connect to certain providers (as VPNbook, shown in this post), i get an error about linux.
Linux ip link set failed: could not execute external program
What means? This is the log from my connection.
Wed Dec 19 13:44:51 2012 OpenVPN 2.2.2 i486-slackware-linux-gnu [SSL] [LZO2] [EPOLL] [eurephia] built on Jul 4 2012
Enter Auth Username:freeopenvpn
Enter Auth Password:
Wed Dec 19 13:45:18 2012 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Dec 19 13:45:18 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Wed Dec 19 13:45:18 2012 LZO compression initialized
Wed Dec 19 13:45:18 2012 Control Channel MTU parms [ L:1562 D:138 EF:38 EB:0 ET:0 EL:0 ]
Wed Dec 19 13:45:18 2012 Socket Buffers: R=[163840->131072] S=[163840->131072]
Wed Dec 19 13:45:18 2012 Data Channel MTU parms [ L:1562 D:1200 EF:62 EB:135 ET:0 EL:0 AF:3/1 ]
Wed Dec 19 13:45:18 2012 Fragmentation MTU parms [ L:1562 D:1200 EF:61 EB:135 ET:1 EL:0 AF:3/1 ]
Wed Dec 19 13:45:18 2012 Local Options hash (VER=V4): '0c7fabe0'
Wed Dec 19 13:45:18 2012 Expected Remote Options hash (VER=V4): 'e11a9f86'
Wed Dec 19 13:45:18 2012 UDPv4 link local: [undef]
Wed Dec 19 13:45:18 2012 UDPv4 link remote: 50.7.161.20:53
Wed Dec 19 13:45:21 2012 TLS: Initial packet from 50.7.161.20:53, sid=e9a8ffd3 8fa8ec35
Wed Dec 19 13:45:21 2012 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Wed Dec 19 13:45:22 2012 VERIFY OK: depth=1, /C=EU/ST=RO/L=Bucharest/O=VPNBook.com/OU=changeme/CN=ns.vpnbook.com/name=changeme/emailAddress=contact@vpnbook.com
Wed Dec 19 13:45:22 2012 VERIFY OK: depth=0, /C=EU/ST=RO/L=Bucharest/O=VPNBook.com/OU=changeme/CN=ns.vpnbook.com/name=changeme/emailAddress=contact@vpnbook.com
Wed Dec 19 13:45:23 2012 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Wed Dec 19 13:45:23 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Dec 19 13:45:23 2012 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Wed Dec 19 13:45:23 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Dec 19 13:45:23 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Wed Dec 19 13:45:23 2012 [ns.vpnbook.com] Peer Connection Initiated with 50.7.161.20:53
Wed Dec 19 13:45:26 2012 SENT CONTROL [ns.vpnbook.com]: 'PUSH_REQUEST' (status=1)
Wed Dec 19 13:45:26 2012 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 4.2.2.1,dhcp-option DNS 208.67.222.222,route 10.8.0.1,topology net30,ping 5,ping-restart 35,ifconfig 10.8.1.66 10.8.1.65'
Wed Dec 19 13:45:26 2012 OPTIONS IMPORT: timers and/or timeouts modified
Wed Dec 19 13:45:26 2012 OPTIONS IMPORT: --ifconfig/up options modified
Wed Dec 19 13:45:26 2012 OPTIONS IMPORT: route options modified
Wed Dec 19 13:45:26 2012 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Wed Dec 19 13:45:26 2012 ROUTE: default_gateway=UNDEF
Wed Dec 19 13:45:26 2012 TUN/TAP device tun0 opened
Wed Dec 19 13:45:26 2012 TUN/TAP TX queue length set to 100
Wed Dec 19 13:45:26 2012 /usr/sbin/ip link set dev tun0 up mtu 1500
Wed Dec 19 13:45:26 2012 Linux ip link set failed: could not execute external program
Wed Dec 19 13:45:26 2012 Exiting
#
[/quote]

osbtensor
Posts: 3
Joined: Wed 16 Jan 2013, 03:02

#2 Post by osbtensor »

I get the exact same error.. I see no one responded to your issue, did you ever find a solution? or what the issue is/was?

It looks like it's a permissions problem, but as puppy is a root only system I don't see how that could be the problem..

Kinda stumped, no reason it should kick out when trying to use /sbin/ip. Anybody else have any ideas?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#3 Post by rcrsn51 »

It appears that the program wants to run /usr/sbin/ip. But in Slacko, it's actually /bin/ip. Try this command

Code: Select all

ln -s /bin/ip /usr/sbin/ip
This will make a link between the two.

osbtensor
Posts: 3
Joined: Wed 16 Jan 2013, 03:02

#4 Post by osbtensor »

this fixed the problem. thank you very much.

but now this leads me to a question.. prior to posting [my problem] i went to /usr/sbin in console and tested 'ip' without any parameters and it echo'd the usage for this command. it appeared that the command was valid, which is what led me to believe it was a permission issue.

now tho, i'm a bit confused on /usr/sbin, /usr/bin, /sbin, and /bin as all have commands. how did you know that /bin/ip would work? is this normal on slack-based machines? to use /bin vs one of the others? if /usr/sbin/ip had not existed i could completely understand, but since it acted like it was a valid command, that's where it loses me.

sorry if i'm not explaining my question well, just wanting to grasp the concept.

thanks again for the assistance in fixing my problem.

I found this article and it makes a little bit more sense.. doesn't completely de-muddle the situation, just somewhat explains why it's confusing to begin with.

http://www.osnews.com/story/25556/Under ... bin_Split/

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#5 Post by rcrsn51 »

Before you make the symlink, do the following:

Go to the folder /usr/sbin and look for the file named "ip". Is it there?

Go to the folder /bin and look for "ip". Is it there?

Run the command "which ip".

Here is an important difference between Linux and DOS. In DOS, if you type the name of a program and that program file is in the current directory, it will run.

In Linux, the shell will search for the file using its PATH argument and run the first version of the file that it finds.

Run the command "echo $PATH".

Note that the current folder is not part of the path. So if you want to run a command in the current folder, you must use the notation "./program_name".

osbtensor
Posts: 3
Joined: Wed 16 Jan 2013, 03:02

#6 Post by osbtensor »

that makes complete sense.

it didn't matter which directory i was in when i attempted to call 'ip.' it (the system) was using /bin/ip due to it having priority ranking in $PATH. i incorrectly took this to mean that /usr/sbin/ip was working, when in fact it was /bin/ip that was responding without me realizing.

this then explains that the program was calling /usr/sbin/ip when the actual command the system uses is /bin/ip.

thanks ever so much.

User avatar
Major448
Posts: 2
Joined: Tue 08 Nov 2011, 14:40

#7 Post by Major448 »

Thanks for this thread, and solution. I travel a lot, So, openvpn is VERY important to me. It would be a "deal breaker" for Puppy if I couldn't have made it work.

In case someone else reaches this thread, I just wanted to add some additional information which may be useful. I use "Precise" instead of "Slacko", but this may work for other versions as well.

I had the same problem described above. I used the same command to link the directories. However, when I ran openvpn, my log file showed that I was not finding "/bin" ...... when it SHOULD have shown that I was not finding "/bin/ip". In other words, it was missing "ip", even though I knew it was there.

The solution to this? I uninstalled openvpn, then re-installed it. Problem solved! It connected!

By the way, I had already tested that everything (certs, keys, configs) worked on another linux machine. So, I knew that the only issue I was having had to be with how I set things up on Puppy..

Hope this helps someone.

chillinfart
Posts: 88
Joined: Mon 22 May 2006, 18:43

#8 Post by chillinfart »

Thanks for replies, i lost the thread :lol:

Viewing /bin/ip in Slacko i noticed that is a symlink to busybox.

About openvpn now it connects sucessfully, but i got this error.
Note: unable to redirect default gateway -- Cannot read current default gateway from system
I'm using a "3g modem" (UMTS/HSDPA) and i can't get VPN address despite sucess.

EDIT: too much hype, gpptp still with issues. Creates a ppp1 interface and it fades when connection is started. [/quote]

chillinfart
Posts: 88
Joined: Mon 22 May 2006, 18:43

#9 Post by chillinfart »

Took a lot of time making working OpenVPN, now with Slacko 5.5. I remade symlinks to Busybox and put the command ln as suggested on previous posts. Now i can use Private Internet Access (my current ISP blocks PPTP/L2TP access) :mrgreen:

However, Gadmin GUI is too silly to understand some values that PIA or other VPN services doesn't provide, so i should use openvpn by the old way (command). Exists plans to simplify this on Slacko 5.6?

surender
Posts: 67
Joined: Sun 31 Mar 2013, 01:39

#10 Post by surender »

bin linkset dev tun0 up mtu 1500
linux ip link set failed

surender
Posts: 67
Joined: Sun 31 Mar 2013, 01:39

#11 Post by surender »

Tue Jan 7 22:31:23 2014 us=632019 /bin link set dev tun0 up mtu 1500
Tue Jan 7 22:31:23 2014 us=632563 Linux ip link set failed: could not execute external program
Tue Jan 7 22:31:23 2014 us=632591 Exiting

how to solve this error please

chillinfart
Posts: 88
Joined: Mon 22 May 2006, 18:43

#12 Post by chillinfart »

On Slacko 5.6 you need to link /sbin/ip to /bin/ip (not present on 5.6 :shock: )

Just repeat the same command posts above, but change the order (or go to /sbin/ip on rox-Filer, right click, link and discard "relative link")

For OpenVPN, u also need libpam and lzo (the second available from PPM, look for the first one on pbone or rpmfind)

TyroBGinner
Posts: 236
Joined: Wed 30 Mar 2016, 20:18

Bumpin' in 2016!!!!!!!!!!

#13 Post by TyroBGinner »

Hi to all you peeps in PuppyLand!!

Guess what, this is my big debut message!!!

And, believe me, it was a long time coming and took a long way to get to this point.

Since I now have the means to access this sort of thing more readily, I intend to enhace my computer skillz with far greater rapidity.

So let's get to it....


I hit this OpenVPN problem also, and it was due to a 'missing link'. Or, the client was looking for the ip command in the wrong place. It wants /usr/sbin/ip. My Slacko 5.6 k 3.4.52 has only /sbin/ip. So symlink it such that the former is channeled to the latter. Of course, /sbin/ip is just a link to busybox. This description seems to be a bit at odds with what has been said above, but I am just describing what has been my experience. Also, this message sequence did help me figure out my problem. Thanks, all!


Hey, 'chillinfart', I got a fairly recent OpenVPN client from the mirrors.slackware.com repositiories, and LZO from either there or SlackBuilds. This worked ok, but I tried to compile LZO and OpenVPN 2.3.10. LZO compiled, but did not seem to make the liblzo2.so.2 file but instead a file of a similar name. So, OpenVPN could not get to the lzo lib that it needed. OpenVPN itself would not get past the configure stage due to a lacking libpam....I could not find it anywhere....it only seemed to exist for alternate *nixes like BSD and such...any ideas on how to address these problems? You seem to have a handle on this based on your messages here.

Post Reply