My OpenVPN was working fine until yesterday when it was stuck while a client was connected to MiniDLNA and was scanning. OpenVPN status is returning:
● openvpn.service - OpenVPN service
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: active (exited) since Wed 2019-01-30 10:45:42 UTC; 10min ago
Main PID: 598 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4700)
CGroup: /system.slice/openvpn.service
Jan 30 10:45:42 rock64 systemd[1]: Starting OpenVPN service...
Jan 30 10:45:42 rock64 systemd[1]: Started OpenVPN service.
Server and client configurations are as follows:
Server.conf:
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "redirect-gateway
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
duplicate-cn
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 3
explicit-exit-notify 1
Client.conf:
client
dev tun
proto udp
remote xx.dns.xx 1194
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
verb 3
Is there anything I can do to solve this problem? I would also appreciate if anybody who can point me to a procedure where I can backup my full configuration (Ubuntu+Openvpn+ufw+Samba, etc..) from eMMC to a hard drive or a USB drive.
Thanks in advance.
code=exited, status=0/SUCCESS
, and it says that it's started. Why do you think that OpenVPN is not running? Your server and client scripts are on two different machines, yes? Did you recently edit any OpenVPN files? Did this ever work for you? And yes, 10.8.0.0 is not a normal address to assign to an individual computer. Is your network set up for a static IP?