Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我被告知要做一些我认为不可能的事情,挑战如下。
我有 2 个网络服务器。
Web 服务器 1 是页面所在的位置,客户端可以访问它,服务器 2 是具有非常严格的防火墙设置的服务器,它只接受来自服务器 1 的访问。
因此,服务器 1 在服务器 2 内部有一个内容的链接,并且只有当请求来自服务器 1 的 IP 地址时才能访问它。
但是,客户端点击了链接,因此他的 IP 地址将被发送到服务器 2,这将因为防火墙策略而被拒绝。
我得到这个正确还是有办法做到这一点?
我希望你能理解我的需要。
提前致谢。
也许向您提出这个问题的人建议的是客户端连接到服务器 1,然后服务器 1 连接到服务器 2 以获取内容(即服务器到服务器,即时,可能通过一些 API) . 因此,客户端永远不会直接连接到服务器 2。
client --> server 1 --> server 2