1. github下载n2n的rpm,直接安装
2. 修改supernode.conf(/etc/n2n/)
systemctl start supernode
3. 修改edge.conf
systemctl start edge
4. 在windows的pc下安装tap,保证tap未连接(坑1,我的本机上已经有一个tap设备,是联通状态的,应该是某个程序在使用,硬是连不上,后来重新新建一个,状态为未连接,使用命令即可)
5.执行命令连接supernode
edge.exe -a 192.168.66.101 -l 1.2.3.4:11111 -c tt -k tt123