ntop / n2n

Peer-to-peer VPN
GNU General Public License v3.0
6.14k stars 928 forks source link

Mac OS can't use n2n because Tunnap is no longer maintained #1039

Open RioWu opened 2 years ago

RioWu commented 2 years ago

Tunnap is no longer maintained since 2015. If you want to use it, you should use the newer version which is called Tunnelblick. It will be nice if someone can update the building documentation.

hamishcoleman commented 2 years ago

Are you able to install the tuntap kext from the tunnelblick distribution? and successfully use it with n2n? If so, can you tell us the steps required, we can update the macos installation notes then.

RioWu commented 2 years ago

Thanks for your reply. I successfully ran it on my device, just a few steps should be changed:

  1. Restart your macOS into recovery mode and reduce the security policy(which is required for the next steps). You can refer to this website for specific steps:Startup Disk security policy control for a Mac with Apple silicon
  2. Use tunnelblick instead of tunnap, which can also be installed by homebrew:

brew install --cask tunnelblick

  1. After installing it, you'll find the tunnelblick icon in the systray at the top right corner. Open it and switch to the "Utility" page.
  2. Click the "install tun and tap system extensions" button to install the kernel extension.
  3. Then you are ready to run n2n.

P.S. issue #867 and issue #773 also discuss similar questions.

hamishcoleman commented 2 years ago

It is unfortunate that this is a lot of steps that are manual and not able to be automated - which makes it harder for us to run any CI testing and harder still to make it seamless to install for end users :-(

Thanks for writing these steps down, I will see how we can integrate that with the current documentation.

orangeagain commented 2 years ago

try this: this

XiangkunFang commented 1 year ago

Hi, I was running n2n latest version and following the steps posted above, but when running edge on my mac, it stuck at ''[edge_utils.c:1568] WARNING: supernode not responding, now trying [xx.xx.xx.xx:5000], and the supernode just keeps showing '10/Jan/2023 15:29:31 [sn_utils.c:1222] assign IP 10.216.167.167/24 to tap adapter of edge 10/Jan/2023 15:29:31 [sn_utils.c:1137] authentication failed' Can anyone help with this situation? Many thanks!

orangeagain commented 1 year ago

Hi, I was running n2n latest version and following the steps posted above, but when running edge on my mac, it stuck at ''[edge_utils.c:1568] WARNING: supernode not responding, now trying [xx.xx.xx.xx:5000], and the supernode just keeps showing '10/Jan/2023 15:29:31 [sn_utils.c:1222] assign IP 10.216.167.167/24 to tap adapter of edge 10/Jan/2023 15:29:31 [sn_utils.c:1137] authentication failed' Can anyone help with this situation? Many thanks!

看上去像是字面意思,“密码不对”