準備:#
パブリック IP を持つサーバーが必要で、TCP プロトコルのポート 8080 を開放する必要があります
構築を開始する:#
以下の手順で、ローカルの Linux コンピュータとパブリックサーバーで n2n をコンパイルします
- Git をインストールする
apt install git
- n2n プロジェクトをクローンする
git clone https://github.com/ntop/n2n
- 指定されたディレクトリに移動する
cd n2n
- autoconf をインストールする
apt install autoconf
- プロジェクトをコンパイルする
./autogen.sh
./configure
make
make install
- サーバーを起動する
./supernode -p 10086 -f
- クライアントを起動する
./edge -c nekool -a 192.168.100.1 -f -l パブリックサーバーのIP:8080