Patent ID: 8446840

Claim:
A TCP proxy insertion method, comprising: during establishment of a TCP connection, forwarding a TCP connection establishing packet between a TCP client and a TCP server through an L3, and recording option information and sequence number information of the TCP connection establishing packet; performing proxy determination on a received packet according to a proxy policy after the TCP connection is established; if it is determined that no proxy process is required for the received packet according to the proxy policy, forwarding the received packet through the L3, and updating the recorded sequence number information according to sequence number information of the received packet; if it is determined that a proxy process is required for the received packet according to the proxy policy, generating a client pseudo socket and a server pseudo socket according to the recorded option information and sequence number information, terminating the received packet by adopting the client pseudo socket and the server pseudo socket, processing the terminated packet through an L7 and forwarding the processed packet.