- 论坛徽章:
- 0
|
显示真实IP的问题!
我也刚遇到这个问题,
看了看官方的faq,似乎有办法解决
7.13 Can I make origin servers see the client's IP address when going through Squid?
Normally you cannot. Most TCP/IP stacks do not allow applications to create sockets with the local endpoint assigned to a foreign IP address. However, some folks have some patches to Linux that allow exactly that.
In this situation, you must ensure that all HTTP packets destined for the client IP addresses are routed to the Squid box. If the packets take another path, the real clients will send TCP resets to the origin servers, thereby breaking the connections. |
|