Error using tun4

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
emaironhead
OpenVpn Newbie
Posts: 1
Joined: Thu Jan 19, 2012 2:25 pm

Error using tun4

Post by emaironhead » Thu Jan 19, 2012 2:56 pm

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);-)

hssuhle
OpenVpn Newbie
Posts: 5
Joined: Fri Jan 20, 2012 8:33 am

Re: Error using tun4

Post by hssuhle » Fri Jan 20, 2012 9:06 am

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

Post Reply