Oct 282014
 

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 snorty.example.org com.apple.kextd[19]: ERROR: invalid signature for foo.tap, will not load
Oct 28 15:39:40 snorty.example.org com.apple.kextd[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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <key>KeepAlive</key>
            <false/>
            <key>Label</key>
            <string>tun</string>
            <key>ProgramArguments</key>
            <array>
                    <string>/sbin/kextload</string>
                    <string>/Library/Extensions/tun.kext</string>
            </array>
            <key>RunAtLoad</key>
            <true/>
            <key>StandardErrorPath</key>
            <string>/dev/null</string>
            <key>StandardOutPath</key>
            <string>/dev/null</string>
            <key>UserName</key>
            <string>root</string>
    </dict>
    </plist>
    
  2. Issue this command:

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

    Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive