Page 1 of 1
Can't get OpenVPN to start
Posted: Tue Jun 05, 2012 6:23 pm
by rulix
Hello, I'm new around here and I have recently started using openvpn. Well, if you could say using since I haven't been able to get it to run. I have done the configuration for the keys and the server.conf as I have seen in many guides. But when I try to run it, either with "sudo /etc/init.d/openvpn start" or with "sudo service openvpn start" I always get this msg:
"Starting openvpn: /etc/init.d/openvpn: 163: /etc/init.d/openvpn: failure: not found"
I'm currently running a 32bit Ubuntu 12.04 and openvpn 2.2.1. Thank you in advance

Re: Can't get OpenVPN to start
Posted: Tue Jun 12, 2012 7:59 am
by Mimiko
Does file /etc/init.d/openvpn really exists? What is the openvpn config file?
Re: Can't get OpenVPN to start
Posted: Thu Jun 14, 2012 2:36 pm
by rulix
Yes, there is the openvpn file in init.d, also, the server.conf file is basically the sample you can get from the website, configuring it for routed mode. Actually, when running the command "sudo /etc/init.d/openvpn --config /etc/openvpn/server.conf" it starts running. I checked the ifconfig and the tun port appeared. Also while trying to connect to that vpn from another computer running windows 7, they could see each other (while trying to connect from windows I could see the messages on linux's terminal that the vpn was being accessed) but they never manage to pass the handshake. There was this error on the server: "Authenticate/Decrypt packet error: packet HMAC authentication failed" while on the client it only appeared that he couldn't handshake. I had the same keys and certificates in both computer(copied the entire key folder) and tried creating new keys and using them but always got the same error.
Re: Can't get OpenVPN to start
Posted: Thu Jun 14, 2012 6:11 pm
by Mimiko
Show full log form client and server.