mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 00:15:51 +03:00
[GH-ISSUE #322] 公网vps+内网机器(可访问公网和内网服务,无公网ip),如何配置可使任意外网机器访问内网服务? #240
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#240
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oaspireo on GitHub (Oct 12, 2019).
Original GitHub issue: https://github.com/snail007/goproxy/issues/322
Expected Behavior
通过配置vps和内网机器,任意外网机器可以访问内网web服务
Current Behavior
内网机器浏览器访问
vps ip:8080可以看到相关web,外网机器访问无效Context (Environment)
vps
内网机器
@snail007 commented on GitHub (Oct 12, 2019):
目前看来,架构和命令都没问题,不过tcp代理可以去掉,server的-r支持访问其他内网机器。内网机器可以访问说明bridge的8080是穿透成功的,另外无法访问有可能是你的网络到vps的8080不通或者阻断,防火墙都有可能。
@oaspireo commented on GitHub (Oct 15, 2019):
谢谢,-r参数简化了我的命令行数量,原本是写了多个bridge、sever和client的。我是有多个web服务需要穿透,其中一个很简单的ftp可以正常访问,其它的就不成。一开始怀疑是报文头的事,配上--http-host还是不成,估计是服务器防火墙的问题。