[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tun device creation on boot



On Sun January 16 2011 05:44:56 Daniel Bareiro wrote:
> I'm using OpenVPN to connect two departments with a central department.
> For this I'm using routing. In the central department I have an OpenVPN
> server which is using the /dev/net/tun1 and /dev/net/tun2 devices that
> I've created manually.
>
> Debian only creates a /dev/net/tun device. How I can achieve that on
> boot these devices to be created? I had thought of adding lines to
> create in /etc/rc.local, but there may be a more appropriate way to
> do it.

/dev/net/tun is all you need.

In your various OpenVpn config files just specify "dev tun5" or
whatever.

"tun5" and friends will appear by magic when needed in /sys/class/net
(but not in /dev where they are not needed).

--Mike Bird


Reply to: