内网穿透工具-ittun

软件下载地址:ittun

解压软件:

config.yml
ngrok.exe
startup.bat
修改config.yml

server_addr: "ittun.com:44433"
tunnels:
    ssh:
       remote_port: 51001
       proto:
         tcp: ":22"
    web:
     subdomain: test
     root: "D:/go/ittunNgork/bin/html/"
     proto:
       http: ":8080"
    web2:
     hostname: pimwx2
     root: "D:/java/nginx-1.0.11/html"
     proto:
       http: ":80"

以上的配置指定静态文件访问而已,接下来我们修改这个文件yml,改成我们想要的内网穿透,以便外网正常访问。

server_addr: "ittun.com:36415"
trust_host_root_certs: false
tunnels:
   xqq:
     subdomain: "wubiao"
     proto:
       http: 80

修改.yml文件之后,接下来修改批处理文件startup.bat

ngrok -config config.yml start xqq

双击startup.bat既可以运行成功如图:


image.png

接下来网外就可以访问了:
外网直接访问:http://wubiao.ittun.com
内网可以访问:127.0.0.1:80

同时你本机得运行一个web server服务,对应的端口设:80,与上面一致。
下面是成功运行截图:


image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容