But when I in my terminal type, "sudo openvpn /etc/openvpn/server.conf" - Nothing happens. No error or anything, terminal just waiting for me to write a new command.
When I do the same for the client, with the client.conf, I get the following:
Code: Select all
sudo openvpn --config /home/simon/pivpn1.ovpn
Sat Jul 8 21:50:26 2017 OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 22 2017
Sat Jul 8 21:50:26 2017 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Enter Private Key Password: ************
Sat Jul 8 21:50:30 2017 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sat Jul 8 21:50:30 2017 Control Channel Authentication: tls-auth using INLINE static key file
Sat Jul 8 21:50:30 2017 UDPv4 link local: [undef]
Sat Jul 8 21:50:30 2017 UDPv4 link remote: [AF_INET]22.214.171.124:11941
Sat Jul 8 21:51:30 2017 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sat Jul 8 21:51:30 2017 TLS Error: TLS handshake failed
Sat Jul 8 21:51:30 2017 SIGUSR1[soft,tls-error] received, process restarting
Sat Jul 8 21:51:32 2017 UDPv4 link local: [undef]
Sat Jul 8 21:51:32 2017 UDPv4 link remote: [AF_INET]126.96.36.199:11941
I guess that's because the server isn't running..
The server file is created by using https://github.com/pivpn/pivpn and the result is this:
Code: Select all
server 10.8.0.0 255.255.255.0
# server and remote endpoints
ifconfig 10.8.0.1 10.8.0.2
# Add route to Client routing table for the OpenVPN Server
push "route 10.8.0.1 255.255.255.255"
# Add route to Client routing table for the OPenVPN Subnet
push "route 10.8.0.0 255.255.255.0"
# your local subnet
push "route 192.168.87.0 255.255.255.0"
# Set your primary domain name server address for clients
push "dhcp-option DNS 188.8.131.52"
push "dhcp-option DNS 184.108.40.206"
# Override the Client default gateway by using 0.0.0.0/1 and
# 220.127.116.11/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
status /var/log/openvpn-status.log 20
# Generated for use by PiVPN.io
I have opened port 11941 internal (I have option to do this external as well, don't know the purpose of that, so didnt) for Port Forwarding UDP.
Can anyone give some adivce on this? I am kinda noobish at all this