Page 1 of 1

Error using tun4

Posted: Thu Jan 19, 2012 2:56 pm
by emaironhead
Hello,

I have a firewall with OpenBSD 4.4 with four clients, tun0, tun1, and tun2 tun3. I now have a new branch and try to set up or tun4 tun5 on I returns the error "Can not open TUN / TAP dev / dev/tun4: No such file or directory (errno = 2)."

There is a limit to the OpenVPN TUN or OpenBSD?

Log Client (Verb 6).

Thu Jan 19 12:08:59 2012 us=26439 /sbin/ifconfig tun4 destroy
Thu Jan 19 12:08:59 2012 us=29620 /sbin/ifconfig tun4 create
Thu Jan 19 12:08:59 2012 us=33297 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
Thu Jan 19 12:08:59 2012 us=33371 /sbin/ifconfig tun4 10.8.0.6 10.8.0.5 mtu 1500 netmask 255.255.255.255 up
Thu Jan 19 12:08:59 2012 us=36347 Cannot open TUN/TAP dev /dev/tun4: No such file or directory (errno=2)
Thu Jan 19 12:08:59 2012 us=36408 Exiting

I'm from Brazil! Sorry my bad English (google translate);-)

Re: Error using tun4

Posted: Fri Jan 20, 2012 9:06 am
by hssuhle
Looks like you need to create this tun4 before you can use it.

In Linux, the command looks like this:

Code: Select all

mknod /dev/tun4 c 10 200