-
进入natapp 的官网(https://natapp.cn/tunnel/buy)
-
配置
-
查看我的隧道
-
配置隧道信息
-
下载https://natapp.cn/article/config_ini <<config.ini>>文件
-
下载natapp
- 上传文件到linux服务器
- 给目录授权,需要先给执行权限
chmod a+x natapp
- 试运行
./natapp -authtoken=xxxx
Tunnel Status Online 代表链接成功
Version 当前客户端版本,如果有新版本,会有提示
Forwarding 当前穿透 网址 或者端口
Web Interface 是本地Web管理界面,可在隧道配置打开或关闭,仅用于web开发测试
Total Connections 总连接数
注意:以上运行方式有问题,只要关闭当前页面,启动的就会直接关闭。无法在后台进行运行。只当作测试,访问http://xxxx;可以访问即可。
- 后台运行
nohup ./natapp -authtoken=xxxx -log=stdout &
注意一定要加上 -log=stdout
- 查看进程
ps -ef|grep natapp
12.查看访问地址tail -f nohup.out
复制tcp后面server.natappfree.cc:xxxx到浏览器可以访问即可表示成功。