fuzzman442 wrote:
jphelps,
I observed the same thing last weekend. I am on Ubuntu 12.04 LTS (32 bit). My OpenVPN TUN server was working fine, until I rebooted to pick up kernel 3.7.10. That was last weekend. The /dev/tun device disappeared. I asked about it in IRC; and someone mentioned the udev possibility. However, I'm not that familiar with it. I think something in the new kernel caused the issue.
How to fix it:
Code:
linode:~$ cd /dev
linode:~$ sudo MAKEDEV tun
linode:~$ sudo openvpn --mktun --dev tun0
I thought that doing that and then an openvpn restart would have been enough. But I ended up with a tun1 instead of a tun0. This might have been because I had an existing installation. So I rebooted again, and tun0 came up and worked fine.
I hope this helps.
I've tried a few things but your comment has definitely helped me, thanks.
An apt-get update/upgrade cycle showed udev needing updates however doing so didn't help, nor did rebooting.
So I tried MAKEDEV tun though I'm skeptical that does anything meaningful with udev. No help there.
However
Code:
openvpn --mktun --dev tun0
showed expected output and
Code:
/etc/init.d/openvpn start
immediately afterward worked normally. I rebooted and openvpn had started normally.