Pas mal galéré sur un openvpn qui ne redémarrait plus suite à une mise à jour du noyau,
j’avais les messages suivants :
/etc/init.d/openvpn start
* Starting virtual private network daemon(s)...
* Autostarting VPN 'server'
SIOCSIFADDR: No such device
: ERROR while getting interface flags: No such device
SIOCSIFDSTADDR: No such device
: ERROR while getting interface flags: No such device
SIOCSIFMTU: No such device
* Starting virtual private network daemon(s)...
* Autostarting VPN 'server'
SIOCSIFADDR: No such device
: ERROR while getting interface flags: No such device
SIOCSIFDSTADDR: No such device
: ERROR while getting interface flags: No such device
SIOCSIFMTU: No such device
dans le syslog :
Apr 3 09:54:56 xxxxxx ovpn-server[8123]: Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Apr 3 09:54:56 xxxxxx ovpn-server[8123]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Apr 3 09:54:56 xxxxxx ovpn-server[8123]: /sbin/ifconfig 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Apr 3 09:54:56 xxxxxx ovpn-server[8123]: Linux ifconfig failed: external program exited with error status: 1
Apr 3 09:54:56 xxxxxx ovpn-server[8123]: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Apr 3 09:54:56 xxxxxx ovpn-server[8123]: /sbin/ifconfig 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Apr 3 09:54:56 xxxxxx ovpn-server[8123]: Linux ifconfig failed: external program exited with error status: 1
problème réglé en recréant proprement le dev/tun :
cd /dev
sudo MAKEDEV tun
sudo MAKEDEV tun