GOPROXY内网穿透
注: 喜欢看github的朋友, GITHUB直通车:https://github.com/snail007/goproxy
内网穿透
自动化安装goproxy免费版
1 | curl -L http: //mirrors .host900.com:9090 /snail007/goproxy/install_auto .sh | bash |
需求: 外网全局请求局域网内的80端口
环境:
1 2 | VPS IP:118.5.16.17 LAN IP:192.168.40.194 |
条件:
1 2 3 | 1.VPS需要是云机 2.证书需要一致( scp 同步传输保持证书一致性) 3.完成两步骤 |
访问: http://118.5.16.17:63088就会穿透到192.168.40.194中的80
步骤一
VPS(腾讯云)
1 2 | proxy server -r ":63088@:80" -P "127.0.0.1:63080" -C /etc/proxy/proxy .crt -K /etc/proxy/proxy .key proxy bridge -p ":63080" -C /etc/proxy/proxy .crt -K /etc/proxy/proxy .key |
步骤二
LAN(局域网)
1 | proxy client -P "118.5.16.17:63080" -C /etc/proxy/proxy .crt -K /etc/proxy/proxy .key |
,
效果小图展示
完成!