Thread: Openvpn fails
View Single Post
barry99705's Avatar
Posts: 641 | Thanked: 27 times | Joined on Apr 2007
#9
Originally Posted by mfresh View Post
It may be a dumb question, but have you edited the vpn shell script?

As downloaded, it looks like this:

#!/bin/sh
sudo gainroot
cd /etc/openvpn
openvpn --config n800remote.ovpn

which will work using the config file created in the howto.

Since you are using a different setup, it looks to me like at the very least you would need to edit it. Try this:

#!/bin/sh
sudo gainroot
cd /usr/sbin/
openvpn --config /etc/openvpn/openvpn.conf

Then, from /home/user, (which is where vpn should be stored) try running ./vpn
That shoud make you root, move you to the folder in which openvpn is located, and finally run openvpn, with the config file openvpn.conf located in /etc/openvpn/

Does that work?
Nope, I already edited the script. It just stops running it after gainroot.
__________________
Just because you are online, doesn't mean you don't have to form a full sentence.


SEARCH! It's probably already been answered.