After a few days on Google, I'm not able to find the right answer to my question. After reading a lot of scripting possibilities, then OpenVPN is up.
I have a client running Debian 7.8, with OpenVPN 2.2.1 x86_64-linux-gnu.
The connection is working great, and everything is fine. But - I need to mount some NFS-drives then the connection is initiated ('up' - I guess).
But - then I'm trying to start a script, I'm running into this error:
Jun 15, 2011 3 gedachten over “ OpenVPN: script failed: could not execute external program ” Christopher oktober 11, 2011 om 11:05 pm. This saved my ass, thanks for the tip it doesn't help when the ubuntu How-To page office.up script contains # office.up. [PATCH] Fix 'could not execute external program' on client.up.tunnelblick.sh Showing 1-2 of 2 messages.
I have added the settings in the config-file:
See the full settings file here.
The script I'm trying to run (just for testing right now) is:
(Update 2017: - The '!' mark is missing in the #/bin/bash-line. Don't copy/paste above line, cause it was the problem)
I have tested with '#!/bin/sh' as well, just to be sure. After all, i tested the permissions and ownership:
As you can see, I have added 'script-security 2' before the 'up' and 'down' commands. OpenVPN is running as root, and started by a init.d script, but even if I'm trying to run it with the full command, I get the same error.
Nov 08, 2012 As per your concern, please click the link below for the detailed instructions on how to collect log files from Windows Live Mail: How can I collect log files from Windows Live Mail To upload the log files please refer to the Private message I have created here. Live Mail' and the execution command 'C: Program Files Windows Live Mail wlmail.exe' in the Windows registry HKCU. Process is in most cases loaded from directory C: Program Files Windows Live Mail. Most popular wlmail.exe files.
Se the example below (with and without sudo):
If I'm running the damn small script by myself, with both SU and Sudo, everything is going smooth without any issues.
The point is that I need to run this command, to mount a few NFS-drives, but right now I'm locked down. So I need some help here - I did try on a Danish forum with no luck.
The online manuels is not that helpful - and now I need your help.
I ran into the same issue, luckily I found a solution.
Here are things I checked:
grep
should be /bin/grep
; you can find the full path by typing which
in front of your command)script-security 2 system
insteadJust to make it clear:I forgot the '!' (exclamation mark). That's explain everything.
Check username under which openvp daemon is running and chown
your script folder or file to it.
Hi!
Thanks in advance for any help you guys can give me! I have an issue that I can't seem to solve on my own!
The situation is as follows:
I run a headless ubuntu server (12.04)
I've managed to get the vpn working with openvpn
I use the server for several purposes: Hosting my media. I stream video/audio to mobile devices. Downloading stuff using usenet and torrents.
Obviously this presents a problem for me. The VPN makes my IP random which is perfect for privacy. However, I obviously can't access my data remotely with this setup. Can anyone help out?
Would it be possible to force just usenet/torrent data through the tunnel and have the rest via my regular connection?
Maybe having to network cards, one to force the VPN on and the other to roam freely!
I'm really hoping I don't have to get another machine running. My electric bill is already through the roof with my current setup!
EDIT:
I also thought about running a virtual machine on the server that would take care of the downloading side, however, that is way too complex for my little mind to comprehend. Especially it being a CLI setup..