Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Nov 2014, 18:08
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
OpenVPN not working in Slacko 5.4?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
chillinfart

Joined: 22 May 2006
Posts: 45

PostPosted: Wed 19 Dec 2012, 14:54    Post_subject:  OpenVPN not working in Slacko 5.4?  

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.

Quote:
Linux ip link set failed: could not execute external program


What means? This is the log from my connection.

Quote:
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]
Back to top
View user's profile Send_private_message 
osbtensor

Joined: 15 Jan 2013
Posts: 3

PostPosted: Tue 15 Jan 2013, 23:09    Post_subject:  

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?
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9260
Location: Stratford, Ontario

PostPosted: Tue 15 Jan 2013, 23:43    Post_subject:  

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

This will make a link between the two.
Back to top
View user's profile Send_private_message 
osbtensor

Joined: 15 Jan 2013
Posts: 3

PostPosted: Wed 16 Jan 2013, 18:10    Post_subject:  

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/Understanding_the_bin_sbin_usr_bin_usr_sbin_Split/
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9260
Location: Stratford, Ontario

PostPosted: Wed 16 Jan 2013, 18:59    Post_subject:  

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".
Back to top
View user's profile Send_private_message 
osbtensor

Joined: 15 Jan 2013
Posts: 3

PostPosted: Wed 16 Jan 2013, 20:47    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
Major448


Joined: 08 Nov 2011
Posts: 2

PostPosted: Sun 03 Feb 2013, 11:39    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
chillinfart

Joined: 22 May 2006
Posts: 45

PostPosted: Tue 05 Feb 2013, 13:59    Post_subject:  

Thanks for replies, i lost the thread Laughing

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

About openvpn now it connects sucessfully, but i got this error.

Quote:
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]
Back to top
View user's profile Send_private_message 
chillinfart

Joined: 22 May 2006
Posts: 45

PostPosted: Sun 18 Aug 2013, 03:29    Post_subject:  

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) Mr. Green

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?
Back to top
View user's profile Send_private_message 
surender

Joined: 30 Mar 2013
Posts: 63

PostPosted: Wed 08 Jan 2014, 01:29    Post_subject:  

bin linkset dev tun0 up mtu 1500
linux ip link set failed
Back to top
View user's profile Send_private_message 
surender

Joined: 30 Mar 2013
Posts: 63

PostPosted: Wed 08 Jan 2014, 18:37    Post_subject:  

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
Back to top
View user's profile Send_private_message 
chillinfart

Joined: 22 May 2006
Posts: 45

PostPosted: Fri 28 Feb 2014, 02:40    Post_subject:  

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

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)
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0839s ][ Queries: 12 (0.0086s) ][ GZIP on ]