|
cCommonProblems
Common Problems
It's complicated!OpenVPN is such a powerful tool with so many options, and computer configurations are so varied, that it is impossible to have an exhaustive troubleshooting guide. This guide is meant for the most common setups, so if it doesn't apply to your situation, or doesn't help, ask the Tunnelblick Discussion Group or the OpenVPN users mailing list for help. I used a different program and uninstalled it, but with Tunnelblick all I can see are my old configurations!The different program (for example, Urban Shield) uses a customized version of Tunnelblick that makes backups of their configurations and restores them when Tunnelblick starts up, and also hides all other configurations. To solve this problem:
How can you tell if OpenVPN connected to the server properly?
If OpenVPN is not connected to the serverIf OpenVPN can't connect to the server, there should be one or more error messages in the OpenVPN log to indicate what the problem is. To see the OpenVPN log, click on the Tunnelblick icon, click on "VPN Details…", then click on the name of the configuration you are troubleshooting. The OpenVPN log is the large area of black text on a white background. (It contains messages from Tunnelblick in addition to the messages from OpenVPN.) Look at lines near the end of the log for an error message. OpenVPN Connects, but you can't surf the InternetSee Connects OK, But.... A connection is established, but drops out or is restarted after a few minutes, or DNS stops working after a few minutesThis can have several causes:
An error messages says to see details in the Console LogSee The Console Log for instructions on viewing the Console Log. An error message says "write to TUN/TAP : Input/output error (code=5)"OpenVPN may display a series of these messages when using a TAP connection. Although a few such messages are normal, if they continue to be displayed for more than a few seconds and the connection is never established, try to connect using "Set nameserver (alternate 1)" in Tunnelblick 3.2beta10 or later. An error message says "Tunnelblick could not be launched because of a problem with the configuration. Please examine the Console Log for details."This is usually caused by a problem with the private configuration folder. (Tunnelblick sets this up, but if you accidentally delete a critical file or folder, this could happen.) The Console log will contain details about the specific problem. See File Locations for information about how the files and folders should be set up. (See The Console Log for instructions on viewing the Console Log.) An error message says "You have tried to connect using a configuration file that is the same as the sample configuration file installed by Tunnelblick"This means that you have tried to connect to a VPN without setting up a configuration file. Consult your network administrator or your VPN service provider to obtain configuration and other files or the information you need to modify the sample file. For more information, see Getting VPN Service. An OpenVPN log entry says "potential route subnet conflict"This means that the remote network you are creating a VPN to has IP addresses that are also in your local LAN. The easiest way to fix this is usually to change the addresses of your local LAN. You do this by changing your router's configuration. For some routers you specify the first three numbers of the LAN (e.g. 192.168.77); in other routers you specify the address of the router itself (e.g. 192.168.77.1). After changing the LAN address, you should restart all computers (and other network devices including network printers), so they start using addresses in the new address range. Example: WARNING: potential route subnet conflict between local LAN [192.168.1.0/255.255.255.0] and remote VPN [192.168.1.0/255.255.255.0] This means that both the remote network and your local network are using the 192.168.1.* range of IP addresses. So change your local network to use, for example, 192.168.5.*, or 192.168.23.*. If you get the same warning message, try another address range. An OpenVPN log entry says "Message hash algorithm 'SHA512' not found (OpenSSL)"Update to Tunnelblick 3.1beta14 or later. An OpenVPN log entry says "Cannot allocate TUN/TAP dev dynamically"This problem indicates a problem with the tun/tap kexts.
dev-type tun and a workaround is to change to the single linedev tun(or substitute "tap" for "tun" in the above if you are using the tap interface.)
An OpenVPN log entry says "Tunnelblick: openvpnstart status #247: Error: Unable to load tun and tap kexts. Status = 71"See the following entry. An OpenVPN log entry says "Tunnelblick: openvpnstart status #247: Error: Unable to load net.tunnelblick.tun and/or net.tunnelblick.tap kexts in 5 tries. Status = 71"This means that Tunnelblick was unable to load the tun and/or tap kexts (device drivers) it needs to make a VPN connection. Usually that is because there are incompatible kexts already loaded. Recent versions of Tunnelblick try to be "good citizens" by loading kexts only when needed, and unloading them when they are no longer needed. However, some other VPN clients (Cisco AnyConnect SSL VPN, for example) load their own, incompatible kexts when the computer is started and leave them loaded, whether or not a VPN connection is in use. (Some non-VPN software also loads incompatible kexts -- for example, Pogoplug loads a "com.pogoplug.xcetun" tun kext which interferes with Tunnelblick's tun kext.) To find out if this is what is causing the problem, use the "kextstat" command in a Terminal window. It will list all of the loaded kexts. Usually the tun and/or tap kexts show up at or near the end of the list. Common tun/taps are:
To unload kexts and allow Tunnelblick to load its own kexts, use the 'kextunload" Terminal command to unload each loaded tun and tap kext individually. For example, to unload com.viscosityvpn.Viscosity.tun, type the following: sudo kextunload -b com.viscosityvpn.Viscosity.tun (The "sudo" is necessary because this command modifies the device driver. You will be asked for your administrator password.) There are a user-contributed scripts on the Downloads page that will automatically unload the Cisco kext when Tunnelblick makes a connection, and reload the Cisco kext when the connection is disconnected. An OpenVPN log entry says "Cannot load certificate file XXX.crt: error: 02001002:system library:fopen:No such file or directory: error: 20074002:BIO routines:FILE_CTRL:system lib: error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system lib "Your certificate file (XXX.crt) was not found. Usually the file should be in the same folder as the configuration file, ~/Library/Tunnelblick/Configurations, not in a subfolder. For example, if the configuration file has a line such as cert abcde.crtor ca abcde.crtthen the file abcde.crt should be in the same folder as the configuration. If the configuration file has a line such as cert xyz/abcde.crtor ca xyz/abcde.crtthen the file abcde.crt should be in the xyz subfolder of the folder with the configuration. An OpenVPN log entry says "TLS Error: Auth Username/Password was not provided by peer"Your client configuration file should include an "auth-user-pass" option. An OpenVPN log entry says "script failed: could not execute external program"An up or down script contains an error. Common causes:
PLEASE USE THE TUNNELBLICK DISCUSSION GROUP FOR COMMENTS OR QUESTIONS | |