Re: Options error: You must define TUN/TAP device (--dev)

6,377 views
Skip to first unread message

Jonathan K. Bullard

unread,
Feb 28, 2013, 3:52:33 PM2/28/13
to tunnelbli...@googlegroups.com
Try using a Tunnelblick VPN Configuration. See Creating and Installing a Tunnelblick VPN Configuration.


On Thu, Feb 28, 2013 at 1:18 PM, <teo...@solucionesdetecnologia.com> wrote:
Hi Just installed the latest beta on a Macbook with Mountain Lion 10.8.2.
I tried the same configuration on my laptop and works excellent, but in this particular laptop with the same OSX version, etc, it sends me an error when trying to connect to the server.
I have the certificate in the same folder and it doesn't work.

This is the error that I get:

2013-02-28 13:15:06 *Tunnelblick: OS X 10.8.2; Tunnelblick 3.3beta21b (build 3114.3185)

2013-02-28 13:15:06 *Tunnelblick: Attempting connection with config; Set nameserver = 1; monitoring connection

2013-02-28 13:15:06 *Tunnelblick: /Applications/Tunnelblick.app/Contents/Resources/openvpnstart start config.ovpn 1337 1 0 0 0 51 -atADGNWradsgnw 

2013-02-28 13:15:07 *Tunnelblick:


Could not start OpenVPN (openvpnstart returned with status #242)


Contents of the openvpnstart log:


     OpenVPN returned with status 1, errno = 2:

          No such file or directory

     

     Command used to start OpenVPN (one argument per displayed line):

     

          /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3-alpha1/openvpn

          --cd

          /Users/ziyadcharafeddin/Library/Application Support/Tunnelblick/Configurations

          --daemon

          --management

          127.0.0.1

          1337

          --config

          /Users/ziyadcharafeddin/Library/Application Support/Tunnelblick/Configurations/config.ovpn

          --log

          /Library/Application Support/Tunnelblick/Logs/-SUsers-Sziyadcharafeddin-SLibrary-SApplication Support-STunnelblick-SConfigurations-Sconfig.ovpn.1_0_0_0_51.1337.openvpn.log

          --management-query-passwords

          --management-hold

          --script-security

          2

          --up

          /Applications/Tunnelblick.app/Contents/Resources/client.up.tunnelblick.sh -m -w -d -atADGNWradsgnw

          --down

          /Applications/Tunnelblick.app/Contents/Resources/client.down.tunnelblick.sh -m -w -d -atADGNWradsgnw

          --up-restart

          --route-pre-down

          /Applications/Tunnelblick.app/Contents/Resources/client.route-pre-down.tunnelblick.sh -m -w -d -atADGNWradsgnw

     

     Contents of the OpenVPN log:

     

          Options error: You must define TUN/TAP device (--dev)

          Use --help for more information.

          

     More details may be in the Console Log's "All Messages"


Here is my config file:


client
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
mute 20
verb 5
proto tcp
remote "190.5.245.226" 1194
pkcs12 "estivaneli-osxclients.p12"
comp-lzo no
route-delay 2
reneg-sec 0
cipher AES-128-CBC

On one machine it works, the other one it doesn't. Same configuration, same certificate, nothing changed.
What could be happening? They don't have any other VPN software installed.

Please let me know since I am running out of options to solve this issue..
Thanks a lot in advance, I am using version Tunnelblick 3.3beta21b (build 3114.3185).

Teo

--
You received this message because you are subscribed to the Google Groups "tunnelblick-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tunnelblick-dis...@googlegroups.com.
To post to this group, send email to tunnelbli...@googlegroups.com.
Visit this group at http://groups.google.com/group/tunnelblick-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jonathan K. Bullard

unread,
Mar 1, 2013, 5:55:27 AM3/1/13
to tunnelbli...@googlegroups.com, teo...@solucionesdetecnologia.com
Tunnelblick and/or OpenVPN may not like the quotation marks in
pkcs12 "estivaneli-osxclients.p12"
so you might want to try
pkcs12 estivaneli-osxclients.p12

Also, you might try changing the OpenVPN version that Tunnelblick uses from 2.3alpha1 to 2.2.1. (On Tunnelblick's Preferences tab.)

Teofilo Homsany

unread,
Mar 1, 2013, 6:43:47 AM3/1/13
to Jonathan K. Bullard, tunnelbli...@googlegroups.com
Hi Jonathan,

Tries both options as you mentioned and still nothing. One MacBook with same version works, the other one doesn't. Same configuration file and certificate.
Very strange.
Tried reinstalling and nothing.

Sent from my iPhone

Jonathan K. Bullard

unread,
Mar 1, 2013, 6:55:18 AM3/1/13
to Teofilo Homsany, tunnelbli...@googlegroups.com
After removing the quotation marks, Tunnelblick 3.3beta32 should be able to automatically convert your files to a Tunnelblick VPN Configuration. (The conversion will fail if there are quotation marks in the "pkcs12" line -- this is a bug in Tunnelblick that I will fix soon.)

If that fails, then (as the error message will suggest), look in The Console Log for an entry "Tunnelblick: Installation or repair failed; log:" entry which should give a more specific error message than OpenVPN does, and if you can't figure out the problem from that entry, post it.

teo...@solucionesdetecnologia.com

unread,
Mar 4, 2013, 5:25:46 PM3/4/13
to tunnelbli...@googlegroups.com, Teofilo Homsany
Console error:

3/4/13 5:21:19.830 PM openvpn[349]: Options error: Unrecognized option or missing parameter(s) in /Users/ziyadcharafeddin/Library/Application Support/Tunnelblick/Configurations/Estivaneli.ovpn:2: ach (2.3-alpha1)

Here is the configuration file:

##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server.     #
#                                            #
# This configuration can be used by multiple #
# clients, however each client should have   #
# its own cert and key files.                #
#                                            #
# On Windows, you might want to rename this  #
# file so it has a .ovpn extension           #
##############################################

client 
dev tun 
resolv-retry infinite 
nobind 
persist-key 
persist-tun 
mute 20 
verb 5 
proto tcp 
remote 190.5.245.226 1194 
pkcs12 estivaneli-osxclients.p12 
comp-lzo no
route-delay 2 
reneg-sec 0 
cipher AES-128-CBC

What could I be missing?
To unsubscribe from this group and stop receiving emails from it, send an email to tunnelblick-discuss+unsub...@googlegroups.com.

Jonathan K. Bullard

unread,
Mar 4, 2013, 5:39:33 PM3/4/13
to tunnelbli...@googlegroups.com, Teofilo Homsany
It looks OK to me. You might want to try OpenVPN 2.2.1 (in the VPN Details… window, it's on the Preferences tab) just because it is easy.

Otherwise, if nobody here can help, you might want to try the OpenVPN Users Forum or the OpenVPN Users Mailing List. Provide them with (A) The part of the Tunnelblick log that shows the arguments to OpenVPN, (B) the configuration file, and (C) the Console error message.


To unsubscribe from this group and stop receiving emails from it, send an email to tunnelblick-dis...@googlegroups.com.
Visit this group at http://groups.google.com/group/tunnelblick-discuss?hl=en-US.

Teofilo Homsany

unread,
Mar 4, 2013, 5:41:48 PM3/4/13
to Jonathan K. Bullard, tunnelbli...@googlegroups.com
Jonathan does tunnelblick requires maybe another software installed so it works?
Maybe Osx libraries etc.

Sent from my iPhone

Jonathan K. Bullard

unread,
Mar 4, 2013, 5:47:03 PM3/4/13
to Teofilo Homsany, tunnelbli...@googlegroups.com
No. Everything is included.

Teofilo Homsany

unread,
Mar 4, 2013, 5:49:09 PM3/4/13
to Jonathan K. Bullard, tunnelbli...@googlegroups.com
Strange that both laptops with same Osx version one works and the other one doesn't.
Thanks!

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages