nicnic2001
Posts: 28
Joined: Mon Apr 14, 2014 11:23 pm

OpenVPN help please.

Tue Jul 21, 2015 7:04 pm

Hi there,

Following this tutorial:
http://readwrite.com/2014/04/10/raspber ... b-browsing

When it tells you to reboot your PI at the end I see at startup:
[FAIL] Starting virtual private network daemon: server failed!
I also see this when I type:

Code: Select all

sudo service openvpn restart

In this tutorial I have changed everything that has needed to be changed to fit my needs like IP Address and also network interfaces.

Looking at:

Code: Select all

sudo cat /var/log/openvpn.log
Shows me this log:
Tue Jul 21 18:55:06 2015 OpenVPN 2.2.1 arm-linux-gnueabihf [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec 1 2014
Tue Jul 21 18:55:06 2015 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Tue Jul 21 18:55:06 2015 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Jul 21 18:55:06 2015 Cannot open file key file '/etc/openvpn/easy-rsa/keys/ta.key': No such file or directory (errno=2)
Tue Jul 21 18:55:06 2015 Exiting


Anyhelp appreciated, thanks

Nick

rmcaninch
Posts: 2
Joined: Tue Jul 21, 2015 6:47 pm

Re: OpenVPN help please.

Tue Jul 21, 2015 7:38 pm

Check the file permissions on that /etc/openvpn/easy-rsa/keys/ta.key

ls -l /etc/openvpn/easy-rsa/keys/ta.key

nicnic2001
Posts: 28
Joined: Mon Apr 14, 2014 11:23 pm

Re: OpenVPN help please.

Thu Jul 23, 2015 12:52 pm

rmcaninch wrote:Check the file permissions on that /etc/openvpn/easy-rsa/keys/ta.key

ls -l /etc/openvpn/easy-rsa/keys/ta.key
Thanks for your reply, I found that it was a command issue and that ta.key was never created

Return to “Raspberry Pi OS”