Ce qui est marrant c’est :
ps aux | grep openvpn
root 8634 0.0 0.0 3324 840 pts/0 S+ 09:19 0:00 grep openvpn
Ce qui signifie que le process ne tourne pas, or :
service openvpn status
could not access PID file for VPN 'client' ... failed!
VPN 'server' is not running ... failed!
Je peux vous garantir que j’ai rien touché hier.
Je pense que pendant la phase de démarrage, y’a bien le process qui se lance et qui test mais au bout d’un moment il s’arrête. Du coup je tente un restart du bousin.
service openvpn restart
Stopping virtual private network daemon:kill: 258: No such process
server.
Starting virtual private network daemon: client server.
Dans les 10 secondes :
service openvpn status
could not access PID file for VPN 'client' ... failed!
VPN 'server' is running.
Puis :
ps aux | grep openvpn
nobody 8704 0.0 0.0 4632 1128 ? Ss 09:22 0:00 /usr/sbin/openvpn --writepid /var/run/openvpn.server.pid --daemon ovpn-server --cd /etc/openvpn --config /etc/openvpn/server.conf
En attendant 20 min, retour à la classique :
/var/www/envisol/rapports# service openvpn status
could not access PID file for VPN 'client' ... failed!
VPN 'server' is not running ... failed!
Edit : du coup, ta commande ne me donne rien quand il est sur failed !
En revanche, au start ça me donne :
lsof -p 9041 | grep -v /lib
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
openvpn 9041 nobody cwd DIR 8,1 4096 45932606 /etc/openvpn/jail
openvpn 9041 nobody rtd DIR 8,1 4096 45932606 /etc/openvpn/jail
openvpn 9041 nobody txt REG 8,1 515044 50689504 /usr/sbin/openvpn
openvpn 9041 nobody 0u CHR 1,3 0t0 580 /dev/null
openvpn 9041 nobody 1w REG 8,1 46745653 50324198 /var/log/openvpn.log
openvpn 9041 nobody 2w REG 8,1 46745653 50324198 /var/log/openvpn.log
openvpn 9041 nobody 3w REG 8,1 232 45932608 /etc/openvpn/openvpn-status.log
openvpn 9041 nobody 4u IPv4 55838 0t0 TCP *:https (LISTEN)
openvpn 9041 nobody 5u CHR 10,200 0t0 2525 /dev/net/tun
openvpn 9041 nobody 6u 0000 0,9 0 578 anon_inode