Skip to content

Instantly share code, notes, and snippets.

@rjohnson-ucar
Created May 28, 2016 15:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rjohnson-ucar/303b53c68e898cdc60a62b72d6a44ccc to your computer and use it in GitHub Desktop.
Save rjohnson-ucar/303b53c68e898cdc60a62b72d6a44ccc to your computer and use it in GitHub Desktop.
Error loading /tmp/tun.kext in Clockworkmod's Tether.app -- I uninstalled OpenVPN to work around this
An "Error loading /tmp/tun.kext" in Clockworkmod's Tether.app for the Mac typically (often?) means that Tether.app failed to detect and unload an interfering tun/tap kext.
Tether.app thus gets an error from the OS when it tries to insert itself into an already occupied spot.
CWM Tether.pp does OK unloading the kexts for TunnelBlick (and probably Viscosity, though I don't have that). However, the OpenVPN kexts weren't found and turned down by Tether.app as of May 2016.
My solution was to uninstall OpenVPN completely. I only had OpenVPN present to see it fail for data center VLAN access, and had months ago switched to TunnelBlick for production use.
After I completely uninstalled OpenVPN, Tether.app can load its kext, and tethering works for me.
@RedxTar
Copy link

RedxTar commented Dec 24, 2019

I had the same problem but all i had to do was to allow it to run on the security settings

@faitno
Copy link

faitno commented Jan 13, 2021

I had the same problem but all i had to do was to allow it to run on the security settings

May you explain your solution? I don't find any useful settings in security settings
https://help.endian.com/hc/en-us/articles/360019434774-How-to-Fix-Cannot-allocate-TUN-TAP-dev-dynamically-error-on-MAC-OS-X?mobile_site=false
I found info about this problem on newest MACos mojave etc
https://stackoverflow.com/questions/54631371/tunnelblick-cant-load-load-net-tunnelblick-tun-and-or-net-tunnelblick-tap-kexts

@RedxTar
Copy link

RedxTar commented Feb 21, 2021

Sorry for the late reply. This was to long ago to remember the details but reinstall and grant permission on the security settings to have it work. This is all dependent on your OS version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment