mac安装

brew tap homebrew/cask
brew install tuntap --cask
brew install openssl
brew install cmake

git clone https://github.com/ntop/n2n.git
git checkout 3.0-stable

cd n2n
mkdir -p build
cd build
cmake ..
make
# 会报错,把报错涉及到的man文件的路径由/usr/share/换成/usr/local/share/
sudo make install

使用

sudo edge -c ${name} -k ${password} -a ${ip} -f -l ${supernode_ip:port}

k8s部署

toolbox中有yaml

windows客户端

Happyn Network Manager

windows端口转发

# 建立转发
netsh interface portproxy add v4tov4 listenaddress=* listenport=6443 connectaddress=172.31.251.11 connectport=6443
# 查看
netsh interface portproxy show all
# 删除
netsh interface portproxy delete v4tov4 listenaddress=* listenport=12345

参考

[建议]Mac的不同版本支持范围 - happyn交流论坛

n2n 安装及使用 | Fitz's Blog (zhouyuqian.com)

文章目录