- 论坛徽章:
- 381
|
回复 4# ajdan4q - 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.
复制代码 看那个,应该是直接实现不了吧 |
|