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

Error: Permission denied On Mac OS #31

Open
ardikars opened this issue Jul 11, 2020 · 3 comments
Open

Error: Permission denied On Mac OS #31

ardikars opened this issue Jul 11, 2020 · 3 comments

Comments

@ardikars
Copy link

ardikars commented Jul 11, 2020

Why I got permission denied?

OS

uname -a
Darwin unix 19.4.0 Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 x86_64

Step to reproduce

# vim app.c

#include <stdio.h>
#include <tuntap.h>

int main() {
	int ret;
	struct device *dev;

	ret = 0;
	dev = tuntap_init();
	if (tuntap_start(dev, TUNTAP_MODE_TUNNEL, TUNTAP_ID_ANY) == -1)
		ret = 1;

	tuntap_destroy(dev);
	return ret;

}

# gcc app.c -o app -ltuntap
$ brew cask install tuntap
# ./app
Error: Permission denied

@tleguern
Copy link
Member

Hello,

In recent macOS releases Apple killed the kernel extension feature which we rely one to configure tun and tap devices. Also an alternative tun driver named utun appeared I never finished implementing it in libtuntap.

One day perhaps, depending on my motivation.

Regards.

@km1562
Copy link

km1562 commented Jul 31, 2021

how to solve it?I have the same question!

@tleguern
Copy link
Member

tleguern commented Aug 2, 2021

To solve it one has to implement support for the utun driver. You can either do that yourself or pay me.

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

3 participants