内网穿透工具-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

你可能感兴趣的:(内网穿透工具-ittun)