Giter Site home page Giter Site logo

Comments (9)

tomml avatar tomml commented on August 18, 2024 8

Seems not working for new Apple M1 chip? Could anyone confirm?

from docker-tuntap-osx.

AlmirKadric avatar AlmirKadric commented on August 18, 2024 7

Hi @tonifirnandes ,
If you follow the exact instructions there it should work (I did the same thing a few days ago on my new macbook pro). After you attempt the installation, it will fail with the above message. If you then go to your Systems Preferences -> Security & Privacy (1st Tab - General) you will see an additional button near the Allow apps downloaded from: (see attached image)
image

Clicking this button will approve the installation, from there you can go and run the installation for tuntap again and it should install without issues.

Please let me know if this solves your problem, or if you run into any other issues.

from docker-tuntap-osx.

rhickstedjr avatar rhickstedjr commented on August 18, 2024

I have the kext loaded (net.sf.tuntaposx.tap) but can't create the tap interface (trying to use for simh to get my VAX network operational):

Note: installed via brew:

brew cask install tuntap

192-168-2-122:BIN rickhicksted2$ uname -a
Darwin Ricks-MBP-2 17.7.0 Darwin Kernel Version 17.7.0: Fri Jul 6 19:54:51 PDT 2018; root:xnu-4570.71.3~2/RELEASE_X86_64 x86_64

192-168-2-122:BIN rickhicksted2$ kextstat |grep -e tun -e tap
170 0 0xffffff7f80ea4000 0x7000 0x7000 net.sf.tuntaposx.tun (1.0) 95DD963D-E23D-3B0F-8DE8-A4D2F6BFA5CC <7 5 4 1>
171 0 0xffffff7f80b0f000 0x7000 0x7000 net.sf.tuntaposx.tap (1.0) 23FDB715-3D0D-3A26-ACBA-E3794C231CB7 <7 5 4 1>
192-168-2-122:BIN rickhicksted2$

192-168-2-122:BIN rickhicksted2$ ifconfig tap0 10.0.0.1
ifconfig: interface tap0 does not exist

192-168-2-122:BIN rickhicksted2$ ls -l /dev/tap*
crw-rw---- 1 root wheel 32, 0 Aug 10 23:19 /dev/tap0
crw-rw---- 1 root wheel 32, 1 Aug 10 23:19 /dev/tap1
crw-rw---- 1 root wheel 32, 10 Aug 10 23:19 /dev/tap10
crw-rw---- 1 root wheel 32, 11 Aug 10 23:19 /dev/tap11
crw-rw---- 1 root wheel 32, 12 Aug 10 23:19 /dev/tap12
crw-rw---- 1 root wheel 32, 13 Aug 10 23:19 /dev/tap13
crw-rw---- 1 root wheel 32, 14 Aug 10 23:19 /dev/tap14
crw-rw---- 1 root wheel 32, 15 Aug 10 23:19 /dev/tap15
crw-rw---- 1 root wheel 32, 2 Aug 10 23:19 /dev/tap2
crw-rw---- 1 root wheel 32, 3 Aug 10 23:19 /dev/tap3
crw-rw---- 1 root wheel 32, 4 Aug 10 23:19 /dev/tap4
crw-rw---- 1 root wheel 32, 5 Aug 10 23:19 /dev/tap5
crw-rw---- 1 root wheel 32, 6 Aug 10 23:19 /dev/tap6
crw-rw---- 1 root wheel 32, 7 Aug 10 23:19 /dev/tap7
crw-rw---- 1 root wheel 32, 8 Aug 10 23:19 /dev/tap8
crw-rw---- 1 root wheel 32, 9 Aug 10 23:19 /dev/tap9

192-168-2-122:BIN rickhicksted2$ cat bridge.sh
sudo ifconfig bridge1 create
sudo ifconfig bridge1 up addm tap0
sudo ifconfig bridge1 up addm en0
192-168-2-122:BIN rickhicksted2$ ./bridge.sh
Password:
ifconfig: BRDGADD tap0: No such file or directory

Any ideas?

Thanks,

Rick

from docker-tuntap-osx.

chenyanlei avatar chenyanlei commented on August 18, 2024

Hi @tonifirnandes
I have encountered the same problem, have you solved it?

from docker-tuntap-osx.

AlmirKadric avatar AlmirKadric commented on August 18, 2024

@rhickstedjr apologies for the late reply. Will answer this anyway for others to have some reference. If the tap interface doesn't appear within ifconfig it means that docker hasn't bound to it. To resolve this restart docker-for-mac manually. Also to help further diagnose the issue the following information should be provided:

  • ls -l /Applications/Docker.app/Contents/Resources/bin/ to make sure the shim was properly installed and configured
  • ls -l /dev/tap* to make sure docker has access to tap interface
  • ifconfig to make sure docker connected to the tap interface
  • netstat -rn to make sure routes were set to the containers over the tap interface
  • docker run --rm --privileged --pid=host --net=host alpine ifconfig to make docker created the target interface
  • docker run --rm --privileged --pid=host debian nsenter -t 1 -m -u -n -i iptables-save to make sure the docker host allows routing
  • docker inspect <<Container_id>> to make sure your container is configure to use all of the above

from docker-tuntap-osx.

AlmirKadric avatar AlmirKadric commented on August 18, 2024

@chenyanlei can you provide the above information and I'll help you with your issue as well

from docker-tuntap-osx.

AlmirKadric avatar AlmirKadric commented on August 18, 2024

@chenyanlei @tonifirnandes are you still facing issues
I would like to clean up this issue
if i dont get a response by next i will be closing the issue

from docker-tuntap-osx.

AlmirKadric avatar AlmirKadric commented on August 18, 2024

closed due to inactivity

from docker-tuntap-osx.

km1562 avatar km1562 commented on August 18, 2024

I have the same problem for M1 chip

from docker-tuntap-osx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.