1、下載程序
從GitHub地址里下載程序,或者直接用git clone
地址:https://gitee.com/laatu/nail-mesh-penetration?_from=gitee_search
2、啟動程序
Linux、Mac下用系統終端,Windows下要用cmd。
windows使用

輸入命令
ding -config=./ding.cfg -subdomain={自定義二級域名} {自定義端口}
示例:
ding -config=./ding.cfg -subdomain=xfei 8085
mac使用
// 進入文件夾 cd mac_64 chmod 777 ./ding ./ding -config=./ding.cfg -subdomain=abcde 8080
然后測試,本地頁面 http://127.0.0.1:8085
訪問 http://xfei.vaiwan.com映射到本地。
3、參數說明
- config:內網穿透的配置文件,按命令照示例固定為釘釘提供的./ding.cfg,無需修改。
- subdomain:您需要使用的域名前綴,該前綴將會匹配到“vaiwan.com”前面,例如你的subdomain是abcde,啟動工具后會將abcde.vaiwan.com映射到本地。
- 端口:您需要代理的本地服務http-server端口,例如你本地端口為8080等。
