内网穿透工具

NATAPP(一般般)
打开NATAPP官网,下载对应的客户端到本地

注册natapp账号登陆

购买免费隧道并配置,获取token

在本地使用cmd命令行的方式启动exe文件,并指定token

临时部署:

./natapp -authtoken=c92c66463fa9fc69

Powered By NATAPP       Please visit https://natapp.cn             (Ctrl+C to Quit)
                                                                                   
Tunnel Status           Online                                                     
                                                                                   
Version                 2.3.9                                                      
                                                                                   
Forwarding              http://3dw55s.natappfree.cc -> 127.0.0.1:9080              
                                                                                   
Web Interface           http://127.0.0.1:4040                                      
                                                                                   
Total Connections       0

后台部署:

vim config.ini
[default]
authtoken=731db9b3a5dda1ec      #对应一条隧道的authtoken
clienttoken=                    #对应客户端的clienttoken,将会忽略authtoken,若无请留
空,
log=./natapp.log                        #log 日志文件,可指定本地文件, none=不做记录
,stdout=直接屏幕输出 ,默认为none
loglevel=INFO                  #日志等级 DEBUG, INFO, WARNING, ERROR 默认为 DEBUG
http_proxy=                     #代理设置 如 http://10.123.10.10:3128 非代理上网用>户请务必留空
nohup ./natapp --config=./config.ini -log=stdout &

查看日志获取映射地址

cat natapp.log 
[2021/10/09 16:46:47 CST] [INFO] (natapp/src/log.(*PrefixLogger).Info:83) [client] Trusting root CAs: [assets/client/tls/ngrokroot.crt]
[2021/10/09 16:46:47 CST] [INFO] (natapp/src/log.(*PrefixLogger).Info:83) [view] [web] Serving web interface on 127.0.0.1:4040
[2021/10/09 16:46:48 CST] [INFO] (natapp/src/log.(*PrefixLogger).Info:83) [client] Authenticated with server, client id: 8b397ed5f04752e4770fa0e8596c78a8
[2021/10/09 16:46:48 CST] [INFO] (natapp/src/log.(*PrefixLogger).Info:83) [client] Tunnel established at http://3dw55s.natappfree.cc

浏览器访问

官方文档地址:https://natapp.cn/article/natapp_newbie

posted @ 2023-05-16 09:05  jluo123  阅读(55)  评论(0编辑  收藏  举报