no 'dev tun' or 'dev tap' found

1,396 views
Skip to first unread message

Big Mahalo

unread,
Jun 27, 2011, 3:18:45 PM6/27/11
to tunnelblick-discuss
I am so technically challenged. TB was running fine and then I
upgraded and i've been chasing my tail trying to get the
configurations correct. hopefully it's an easy fix.
get this message when I try to connect using the icon by spotlight.

No 'dev tun' or 'dev tap' found
the configuration file for 'TunnelblckVPN' does not appear to contain
a 'dev tun' or 'dev tap' option. this option mahy be needed for
proper tunnelblck operation. consult with your network administrator
or the OpenVPN documentation.

click ok / next message

Tunnelblck was unable to start OpenVPN to connect to TunnelblckVPN.
For details see the OpenVPN log in details...window

here is the log/
2011-06-27 09:04:06 *Tunnelblick: OS X 10.6.7; Tunnelblick 3.1.7
(build 2190.2413); OpenVPN 2.1.4
2011-06-27 09:04:30 *Tunnelblick: Attempting connection with
TunnelblickVPN using shadow copy; Set nameserver = 1; monitoring
connection
2011-06-27 09:04:30 *Tunnelblick: /Applications/Tunnelblick.app/
Contents/Resources/openvpnstart start TunnelblickVPN.tblk 1337 1 0 1 0
51
2011-06-27 09:04:30 *Tunnelblick: openvpnstart status #236: Unable to
find configuration file in (null)
2011-06-27 09:04:48 *Tunnelblick: Attempting connection with
TunnelblickVPN using shadow copy; Set nameserver = 1; monitoring
connection
2011-06-27 09:04:48 *Tunnelblick: /Applications/Tunnelblick.app/
Contents/Resources/openvpnstart start TunnelblickVPN.tblk 1337 1 0 1 0
51
2011-06-27 09:04:48 *Tunnelblick: openvpnstart status #236: Unable to
find configuration file in (null)
2011-06-27 09:16:14 *Tunnelblick: Attempting connection with
TunnelblickVPN using shadow copy; Set nameserver = 1; monitoring
connection
2011-06-27 09:16:14 *Tunnelblick: /Applications/Tunnelblick.app/
Contents/Resources/openvpnstart start TunnelblickVPN.tblk 1337 1 0 1 0
51
2011-06-27 09:16:14 *Tunnelblick: openvpnstart status #236: Unable to
find configuration file in (null)

jkbull...gmail.com

unread,
Jun 27, 2011, 3:37:01 PM6/27/11
to tunnelbli...@googlegroups.com
It looks like there may be two things going on here:
  1. Tunnelblick thinks (perhaps correctly) that there is no 'dev tun' or 'dev tap' line in your configuration file. Such a line is usually required for OpenVPN to work properly on a Mac.
  2. Tunnelblick has a problem when you tell it to go ahead and connect anyway. This is probably a bug.
The first odd thing that I noticed is that you have apparently specified that Tunnelblick should "Use Shadow Copies of Configuration Files". You might try disabling that by clicking on the Tunnelblick icon, then "Options…", then (assuming there is a checkmark to the left of it), click on ""Use Shadow Copies of Configuration Files" -- the checkmark should disappear. Try to connect again.

If you get the same messages, let's find out about problem #1 next. Please click on the Tunnelblick icon, then click "Details…", then click the "Edit configuration" (or "Examine configuration") button. If asked if you want to unprotect it, just "Examine" it. It will open the configuration file in TextEdit. Select the entire file and copy it into a reply and we'll see what it has.

Big Mahalo

unread,
Jun 29, 2011, 5:10:10 AM6/29/11
to tunnelblick-discuss
JKbull
thank you for your response. I suspect I'm missing one small critical
step which is messing with the whole set up.

I fooled around a little more, reinstalled , created a new sample
folder for the config file on my desktop and seemed to get further
then before. I know have two configurations: one is shared, the other
is private. (it does seem odd to have the folder live on the
desktop. should't it be buried in a library somewhere?)

the private one I don't get a configuration file when I click on
examine configuration file.
here is the log for that one and I am still getting the no dev tun no
dev tap message
2011-06-28 22:53:57 *Tunnelblick: OS X 10.6.7; Tunnelblick 3.1.7
(build 2190.2413); OpenVPN 2.1.4
2011-06-28 23:01:38 *Tunnelblick: Attempting connection with
TunnelblickVPN; Set nameserver = 1; monitoring connection
2011-06-28 23:01:38 *Tunnelblick: /Applications/Tunnelblick.app/
Contents/Resources/openvpnstart start TunnelblickVPN.tblk 1337 1 0 3 0
51
2011-06-28 23:01:38 *Tunnelblick: openvpnstart status #236: Unable to
find configuration file in (null)

ON the shared configuration here is the log followed by the config
file

2011-06-28 23:05:51 *Tunnelblick: OS X 10.6.7; Tunnelblick 3.1.7
(build 2190.2413); OpenVPN 2.1.4
2011-06-28 23:06:07 *Tunnelblick: Attempting connection with
Tunnelblick VPN; Set nameserver = 1; monitoring connection
2011-06-28 23:06:07 *Tunnelblick: /Applications/Tunnelblick.app/
Contents/Resources/openvpnstart start Tunnelblick\ VPN.tblk 1337 1 0 3
0 49
2011-06-28 23:06:12 *Tunnelblick: openvpnstart status #247: /
Applications/Tunnelblick.app/Contents/Resources/tun.kext failed to
load - (libkern/kext) kext (kmod) start/stop routine failed; check the
system/kernel logs for errors or try kextutil(8).
/Applications/Tunnelblick.app/Contents/Resources/tun.kext failed to
load - (libkern/kext) kext (kmod) start/stop routine failed; check the
system/kernel logs for errors or try kextutil(8).
/Applications/Tunnelblick.app/Contents/Resources/tun.kext failed to
load - (libkern/kext) kext (kmod) start/stop routine failed; check the
system/kernel logs for errors or try kextutil(8).
/Applications/Tunnelblick.app/Contents/Resources/tun.kext failed to
load - (libkern/kext) kext (kmod) start/stop routine failed; check the
system/kernel logs for errors or try kextutil(8).
/Applications/Tunnelblick.app/Contents/Resources/tun.kext failed to
load - (libkern/kext) kext (kmod) start/stop routine failed; check the
system/kernel logs for errors or try kextutil(8).
Error: Unable to load net.tunnelblick.tun and/or net.tunnelblick.tap
kexts in 5 tries. Status = 71

below is the config file


client
dev tun
proto udp
remote vpn.btguard.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca btguard.ca.crt
comp-lzo
verb 3
auth-user-pass
auth-nocache


thanks in advance

On Jun 27, 9:37 am, "jkbull...gmail.com" <jkbull...@gmail.com> wrote:
> It looks like there may be two things going on here:
>
>    1. Tunnelblick thinks (perhaps correctly) that there is no 'dev tun' or
>    'dev tap' line in your configuration file. Such a line is usually required
>    for OpenVPN to work properly on a Mac.
>    2. Tunnelblick has a problem when you tell it to go ahead and connect

jkbull...gmail.com

unread,
Jun 29, 2011, 7:57:00 AM6/29/11
to tunnelbli...@googlegroups.com
Thanks for the info. I think you are correct that there is some small step you are missing.

I'm sorry you are having so much trouble.

You are apparently creating your own .tblk. The basic sequence for that is described in Creating a Tunnelblick VPN Configuration, but here's a summary:
  1. Create a folder.
  2. Copy or move the configuration file into the folder.
  3. Copy or move additional files that are required (such as .key and .crt files).
  4. Rename the folder to the name you want the configuration known by, followed by ".tblk". (When you rename the folder, it's icon should change to a "Tunnelblick VPN Configuration icon" -- see below).
  5. Double-click the folder's new icon to install it. This will cause Tunnelblick to install the .tblk by copying it to the appropriate folder (private or shared) and make critical changes to the structure inside the copy.
The instructions in the link were not as clear as they should have been -- instruction 5 above was just a sentence in the next paragraph, not a numbered instruction. I have made them clearer (I think!).

The copy on the Desktop is not used after the initial installation (as I now explain better -- I hope -- in the link above).

I think the first time you tried this, instead of step 5, you may have copied or moved the .tblk directly to the private folder (/Users/YOURUSERNAME/Library/Application Support/Tunnelblick/Configurations). Thus the critical changes were never made. Among other things, the name of the configuration file -- inside the copy -- is changed. So the configuration file cannot be found, since it doesn't have the name that is expected. Since the configuration file can't be found, it can't see any "dev tun" or "dev tap" -- so you get the errors you see. I'll look into issuing a better error message in this situation.

The copy on the Desktop is not used after the initial installation (as I now explain better -- I hope -- in the link above).

Now the problem with the shared configuration: That is something completely different, and usually is caused by having used a different VPN program sometime in the past. Briefly, VPNs use special device drivers, called kexts. If a different VPN program has loaded a kext that conflicts with the one that Tunnelblick needs to load, Tunnelblick will be unable to load the one it needs to use and you will get the error you showed.

This is described briefly at the fifth point of Known Issues, and in https://groups.google.com/d/topic/tunnelblick-discuss/a7I7GMak9WM/discussion and https://groups.google.com/d/topic/tunnelblick-discuss/EAWx3kEh6pg/discussion. If you still can't fix this, please post here and I'll try to help.

By the way, since you're paying BTGuard for VPN service, you really should be talking to their tech support people -- Tunnelblick is just the free software that BTGuard and many other VPN service providers recommend their customers use. You're paying them, not Tunnelblick :)
Reply all
Reply to author
Forward
0 new messages