openvpn problem since today

November 1, 2014 9k views

i installed today mornig the following update:

Start-Date: 2014-11-01 10:32:23
Commandline: apt-get -y upgrade
Upgrade: linux-libc-dev:i386 (3.2.63-2, 3.2.63-2+deb7u1), linux-image-3.2.0-4-686-pae:i386 (3.2.63-2, 3.2.63-2+deb7u1)
End-Date: 2014-11-01 10:32:40

later i tried to connect to openvpn server installed on the vps. but i get the following error on the client side:

Sat Nov 01 16:18:49 2014 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)

i looked on my server and realized that openvpn could not start anymore:

root@xxxxxxxxxx:~# service openvpn restart
[ ok ] Stopping virtual private network daemon:.
[FAIL] Starting virtual private network daemon: server failed!

this is what i get in the log:

Sat Nov 1 16:19:29 2014 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Nov 1 16:19:29 2014 PLUGININIT: POST /usr/lib/openvpn/openvpn-auth-pam.so '[/usr/lib/openvpn/openvpn-auth-pam.so] [login]' intercepted=PLUGINAUTHUSERPASSVERIFY
Sat Nov 1 16:19:29 2014 Diffie-Hellman initialized with 2048 bit key
Sat Nov 1 16:19:29 2014 Control Channel Authentication: tls-auth using INLINE static key file
Sat Nov 1 16:19:29 2014 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Sat Nov 1 16:19:29 2014 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Sat Nov 1 16:19:29 2014 TLS-Auth MTU parms [ L:1602 D:178 EF:78 EB:0 ET:0 EL:0 ]
Sat Nov 1 16:19:29 2014 Socket Buffers: R=[163840->131072] S=[163840->131072]
Sat Nov 1 16:19:29 2014 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Sat Nov 1 16:19:29 2014 do
ifconfig, tt->ipv6=0, tt->didifconfigipv6_setup=0
Sat Nov 1 16:19:29 2014 /sbin/ifconfig 192.168.1.1 netmask 255.255.255.0 mtu 1500 broadcast 192.168.1.255
SIOCSIFADDR: No such device
: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFMTU: No such device
SIOCSIFBRDADDR: No such device
: ERROR while getting interface flags: No such device
Sat Nov 1 16:19:29 2014 Linux ifconfig failed: external program exited with error status: 255
Sat Nov 1 16:19:29 2014 Exiting

in the log i saw that dev/net/tun no such device error:

the i typed ifconfig in my putty window and there is no tun device started. only eth0 and lo.
yesterday and over the last 2 months it was all running without problems. i didnt changed anything since yesterday on my config or anything else on my vps server. the only thing i did since yesterday was this:

Start-Date: 2014-11-01 10:32:23
Commandline: apt-get -y upgrade
Upgrade: linux-libc-dev:i386 (3.2.63-2, 3.2.63-2+deb7u1), linux-image-3.2.0-4-686-pae:i386 (3.2.63-2, 3.2.63-2+deb7u1)
End-Date: 2014-11-01 10:32:40

is it possible that the kernel update is doing this trouble with openvpn? i deinstalled openvpn and reinstalling it, but nothing works.

3 comments
  • when i type dmesg i also get this error a lot of times!

    tun: Unknown symbol ipv6proxyselect_ident (err 0)

  • According to this discussion, all it takes to fix the problem is a reboot of your VPS.

    Whenever you update your kernel, you should always reboot the machine. Not rebooting does not always cause problems, but when problems do occur it is frustrating because it is the last thing you think of.

  • i also has this problem recently after upgrade the kernel, already reboot the VPS but it still not working.
    Error code:
    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
    Thu Dec 11 22:09:11 2014 Linux ifconfig failed: external program exited with error status: 1
    Thu Dec 11 22:09:11 2014 Exiting

    what should i do?