2

没有公网的服务器上的 web 服务如何通过有公网的服务器来访问?

 1 year ago
source link: https://www.v2ex.com/t/886862
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  问与答

没有公网的服务器上的 web 服务如何通过有公网的服务器来访问?

  css3 · 12 小时 19 分钟前 · 894 次点击

web 服务部署在 A 服务器上,A 能连外网,但自身没公网, B 服务器有公网,可用公网通过 ssh 进入,B 网络的路由器可以配置端口转发功能, 目前通过 autossh ,可以直接在 B 内 ssh 进入 A , 目前在 A 上部署了个 web , 原以为也可以通过 autossh 的方式在 A 上面将端口转发到 B ,再通过公网,通过转发出来的端口访问,但刚进行了尝试访问不了。有没有解决方案呢,最好不借助工具了,不知道有没有方案


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK