mac安装n2n

#安装ruby
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

#安装tun cmake ssl等支持
brew tap homebrew/cask
brew install tuntap
brew install openssl
brew install cmake

#如果是linux 需要安装 openssl sudo apt-get install libssl-dev

# clone或者unzip n2n压缩包
git clone https://github.com/ntop/n2n

#开始编译
mkdir build
cd build 
cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl ../
make

# optionally install
make install

参考文章 https://blog.csdn.net/nokiaxjw/article/details/88872172

https://github.com/meyerd/n2n/wiki

Leave a Reply

Your email address will not be published. Required fields are marked *