Debian or Ubuntu客户端安装方法

创建日期


使用root运行:

18.04 LTS

add-apt-repository universe [ unless you have done it previously ]
wget http://apt-stable.ntop.org/18.04/all/apt-ntop-stable.deb
dpkg -i apt-ntop-stable.deb

16.04 LTS

wget http://apt-stable.ntop.org/16.04/all/apt-ntop-stable.deb
dpkg -i apt-ntop-stable.deb

14.04 LTS

wget http://apt-stable.ntop.org/14.04/all/apt-ntop-stable.deb
dpkg -i apt-ntop-stable.deb

Debian 9 (stretch)

wget http://apt-stable.ntop.org/stretch/all/apt-ntop-stable.deb
dpkg -i apt-ntop-stable.deb

Debian 8 (jessie)

wget http://apt-stable.ntop.org/jessie/all/apt-ntop-stable.deb
dpkg -i apt-ntop-stable.deb

Raspbian (stretch_pi)

echo "deb http://apt-stable.ntop.org/stretch_pi armhf/" > /etc/apt/sources.list.d/ntop.list
echo "deb http://apt-stable.ntop.org/stretch_pi all/" >> /etc/apt/sources.list.d/ntop.list

根据版本不同,选择上面的命令执行。然后以下为通用部分

apt-get clean all
apt-get update
apt-get install n2n
vi /etc/n2n/edge.conf
systemctl enable edge.service
systemctl start edge.service

这将会安装2.4版本,(20190221),同时安装有客户端和服务端,服务端可以禁用
systemctl disable supernode.service
使用下面命令可以升级

apt-get update
apt-get upgrade

配置

一个基本的配置看起来像这样

cat /etc/n2n/edge.conf
-d=n2n0
-c=groupname
-k=password
-a=10.x.x.x
-l=x.x.x.x:port

默认的/etc/n2n/edge.conf文件中有配置说明(英文版)

文档更新时间: 2019-08-16 02:47   作者:ghostry