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]212.10.152.148: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]212.10.152.148:11941
The server file is created by using https://github.com/pivpn/pivpn and the result is this:
server.conf
Code: Select all
dev tun
proto udp
port 11941
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/server.crt
key /etc/openvpn/easy-rsa/pki/private/server.key
dh /etc/openvpn/easy-rsa/pki/dh2048.pem
topology subnet
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 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/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"
client-to-client
duplicate-cn
keepalive 10 120
tls-version-min 1.2
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
cipher AES-256-CBC
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
#crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
log /var/log/openvpn.log
verb 1
# Generated for use by PiVPN.io
Can anyone give some adivce on this? I am kinda noobish at all this