内网穿透工具ngrok使用教程
source link: https://blog.51cto.com/qiuyue/5557761
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
内网穿透工具ngrok使用教程
原创1、ngrok介绍:
ngrok是一款可以将内网IP和端口暴露到公网上的工具,解决了在没有固定公网IP的情况下依然可以从公网访问自己内网的项目,是一个内网穿透的解决方案。
2、获取Authtoken:
(1)注册账号,并登录;
(2)官网“Download”下载ngrok-v3-stable-linux-amd64.tgz;
(3)登录dashboard,点击左侧“Your Authtoken”,复制右侧的Authtoken:
3、内网CentOS 7.9虚拟机安装Nginx:
# yum -y install nginx
# systemctl start nginx
# ss -tunlp | grep -w 80
内网浏览器访问虚机IP(192.168.0.202):
4、ngrok安装配置:
# ngrok config add-authtoken <Authtoken>
5、ngrok简单使用:
公网浏览器访问https://9c69-218-81-32-230.jp.ngrok.io:
Ctrl + c退出
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK