Created
March 25, 2015 03:19
-
-
Save yano3/9568e6a4f730a04f854b to your computer and use it in GitHub Desktop.
brew install tuntap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install tuntap | |
==> Downloading https://homebrew.bintray.com/bottles/tuntap-20111101.mavericks.bottle.tar.gz | |
######################################################################## 100.0% | |
==> Pouring tuntap-20111101.mavericks.bottle.tar.gz | |
==> Caveats | |
In order for TUN/TAP network devices to work, the tun/tap kernel extensions | |
must be installed by the root user: | |
sudo cp -pR /usr/local/Cellar/tuntap/20111101/Library/Extensions/tap.kext /Library/Extensions/ | |
sudo cp -pR /usr/local/Cellar/tuntap/20111101/Library/Extensions/tun.kext /Library/Extensions/ | |
sudo chown -R root:wheel /Library/Extensions/tap.kext | |
sudo chown -R root:wheel /Library/Extensions/tun.kext | |
sudo touch /Library/Extensions/ | |
To load the extensions at startup, you have to install those scripts too: | |
sudo cp -pR /usr/local/Cellar/tuntap/20111101/tap /Library/StartupItems/ | |
sudo chown -R root:wheel /Library/StartupItems/tap | |
sudo cp -pR /usr/local/Cellar/tuntap/20111101/tun /Library/StartupItems/ | |
sudo chown -R root:wheel /Library/StartupItems/tun | |
If upgrading from a previous version of tuntap, the old kernel extension | |
will need to be unloaded before performing the steps listed above. First, | |
check that no tunnel is being activated, disconnect them all and then unload | |
the kernel extension: | |
sudo kextunload -b foo.tun | |
sudo kextunload -b foo.tap | |
==> Summary | |
🍺 /usr/local/Cellar/tuntap/20111101: 11 files, 96K |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment