Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am looking to use OpenVPN straight from the terminal instead of using a gui such as tunnelblick - but am encountering a couple of problems. I have tested my config file and it works fine so it is not the config fault.

The command I am running is

./openvpn connection.ovpn

The error message that I am getting is

Wed Mar  6 13:22:57 2013 us=528389 Cannot allocate TUN/TAP dev dynamically
Wed Mar  6 13:22:57 2013 us=528401 Exiting due to fatal error

Which seems to be implying that a tun/tap kext cannot be found. I have tried to run the command

sudo kextload tun.kext

immediately prior to this and it seemed to load fine but I still get the above error. I am using the 64-bit tun.kext from the TunnelBlick project so it should not be a problem with the kext itself. Any ideas?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

It turns out that the above problem was quite simple. OpenVPN has to be run with administrative privileges. So, instead run

sudo ./openvpn connection.ovpn
share|improve this answer
    
Even with root, it still says Thu Oct 17 14:49:45 2013 Cannot allocate TUN/TAP dev dynamically, Thu Oct 17 14:49:45 2013 Exiting due to fatal error... Any idea? –  bibstha Oct 17 '13 at 12:50
    
@bibstha Do you have a Tun/Tap kext installed on the machine? –  xizor Oct 17 '13 at 12:56
    
Oops no, I didn't execute the "sudo kextload tun.kest" part. However I could successfully login using tunnelblick without tun/pta driver. –  bibstha Oct 19 '13 at 13:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.