Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-tuntap-osx requires deprecated tuntap #8

Open
Mahoney opened this issue Jan 30, 2021 · 2 comments
Open

docker-tuntap-osx requires deprecated tuntap #8

Mahoney opened this issue Jan 30, 2021 · 2 comments

Comments

@Mahoney
Copy link
Owner

Mahoney commented Jan 30, 2021

When I brew install mahoney/tap/docker-tuntap-osx I get the following warning:

Warning: Calling depends_on :tuntap is deprecated! There is no replacement.
Please report this issue to the mahoney/tap tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/mahoney/homebrew-tap/Formula/docker-tuntap-osx.rb:10
@Mahoney
Copy link
Owner Author

Mahoney commented Jan 30, 2021

docker-tuntap-osx, from which Mahoney-forks/docker-tuntap-osx was forked in order to ease packaging up as a brew formula, is a few clever shell scripts to use tuntap to bridge to Docker's networking, so tuntap is a required dependency. While Homebrew complains, it will still install tuntap.

The warning was introduced in Homebrew/brew@87dd13a#diff-320575af4dde7cef9a4c84b17ad631c492272540dac17301308ea3c4ada141c2R13

The commit message does not explain much of the reasoning, or link to any related discussion / issues / ongoing work that would explain it (that I have found, anwyay). However it seems reasonable to assume it is because the tuntap developer has sunsetted tuntap, and installing Tuntap now requires bypassing Apple's kernel extension security.

The developer of tuntap suggested a few possible avenues of exploration:

  1. If you really need the kernel extensions on more recent operating systems, you
    might try the notarized kernel extensions provided by the Tunneblick project:
    https://github.com/Tunnelblick/Tunnelblick/tree/master/third_party
  2. utun will probably cover most cases
  3. implement a virtual ethernet
    device on top of the new-ish userspace driver APIs Apple has introduced

Unfortunately I do not currently have the necessary knowledge to flesh out any of these three suggestions into a working solution.

Related issues:
AlmirKadric-Published/docker-tuntap-osx#32

@lorenzleutgeb
Copy link

lorenzleutgeb commented Mar 9, 2021

Adding to the list of references, this is a more elaborate explanation of the problems with TUN/TAP on macOS: https://tunnelblick.net/cTunTapConnections.html

Looks like using Apple's utun devices would be the easiest way out, but I don't know how to instruct HyperKit to use/create one. Maybe @AlmirKadric does?

Edit: Oh, just saw AlmirKadric-Published/docker-tuntap-osx#32 (comment) which probably completely disqualifies me. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants