Squid 作为特定站点的代理?
我是 Squid 的新手,正在调查它是否能够完成手头的任务。
我需要通过 no-ip.com 将静态 IP 的端口 80“转置”到具有主机名指针的动态 IP 上的端口 1088。 换句话说:
- somedomain.com 有一条 A 记录 1.2.3.4
- someotherdomain.com 有一条动态 A 记录(通过 no-ip.com 更新)
- 静态 IP 1.2.3.4 由代理(例如 Squid?)在端口 80 提供服务当访问时 (http://www.somedomain.com),将请求转发到 someotherdomain.com: 1088 并将其显示为来自 1.2.3.4 (somedomain.com)。
- somedomain.com 不能用作访问 someotherdomain.com 以外的其他位置的通用代理; 事实上,后端的中继对于访问 somedomain.com 的用户应该是透明的,
感谢您对此的任何见解!
维尔
I'm new to Squid, and am investigating whether it would be able to accomplish a task at hand.
I need to "transpose" port 80 of a static IP to the port 1088 on a dynamic IP that has a hostname pointer though no-ip.com. In other words:
- somedomain.com has an A record 1.2.3.4
- someotherdomain.com a dynamic A record (updated via no-ip.com)
- the static IP 1.2.3.4 is served by a proxy (such as Squid?) at port 80 which, when accessed (http://www.somedomain.com), relays the request to someotherdomain.com:1088 and displays it as if it came from 1.2.3.4 (somedomain.com).
- somedomain.com cannot be used as a general proxy to access other locations than someotherdomain.com; in fact, the relay in the back-end should be transparent to the user accessing somedomain.com
Thanks for any insights on this!
Ville
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在寻找的是反向代理,是的,Squid 可以做到这一点。
Apache 也可以使用 mod_proxy:
What you are looking for is a reverse proxy and yes, Squid can do that.
Apache can as well with mod_proxy: