Getting openconnect & tuntap working on Yosemite OSX

I upgraded to Yosmite today. It was not without pain.

I use openconnect, which in turn, uses tuntap.

After upgrading, my connection attempts resulted in:

Failed to open tun device: No such file or directory
Set up tun device failed

I was also seeing this in /var/log/system.log:

Oct 28 15:39:39[19]: ERROR: invalid signature for foo.tap, will not load
Oct 28 15:39:40[19]: ERROR: invalid signature for foo.tun, will not load

I tried upgraded and reinstalling. Eventually I found this post on the Homebrew github site. I’m using MacPorts, but that’s not relevant to this.

I will reproduce what I used in case it gets lost.

  1. Place this in /Library/LaunchDaemons/tun.plist:
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
    <plist version="1.0">
  2. Issue this command:

    launchctl load -w /Library/LaunchDaemons/tun.plist
  3. Does this help you?

    Website Pin Facebook Twitter Myspace Friendfeed Technorati Digg Google StumbleUpon Premium Responsive

Leave a Comment

Scroll to Top