Method for obtaining real IP of client in four-layer proxy network environment

A network environment and client-side technology, applied in the field of client-side IP resolution, can solve problems such as time-consuming, labor costs, and business impact, and achieve the effect of saving time and labor costs and deploying quickly

Active Publication Date: 2019-02-19
成都知道创宇信息技术有限公司
View PDF9 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method needs to upgrade the source site server program to support the resolution pro

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for obtaining real IP of client in four-layer proxy network environment
  • Method for obtaining real IP of client in four-layer proxy network environment
  • Method for obtaining real IP of client in four-layer proxy network environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0030] figure 1 It is a logical schematic diagram of the workflow of the present invention. It can be seen that the solution is divided into two parts: the four-layer agent part and the source station part.

[0031] Four-layer proxy part:

[0032] Its workflow is as follows figure 2 As shown, the details are as follows:

[0033] 1. The four-layer proxy accepts the data requested by the client.

[0034] 2. Obtain the source IP and source port of the requested data.

[0035] 3. Generate a proxy agreement in HAProxy format.

[0036] The HAProxy proxy protocol is a string in the following format:

[0037] "PROXY protocol source IP destination IP source port destination port\r\n"

[0038] For example: "PROXY TCP4 213.103.23.88 10.0.0.2 49863 8080\r\n" where 213.103.22.88 is the real client IP information, and 49863 is the client port inform...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for obtaining a real IP of a client in a four-layer proxy network environment. The method is specifically as follows: a local proxy is deployed at a source station; afourth-layer proxy obtains a source IP and a source port of request data, attaches the request data to generated HAProxy proxy protocol to generate a new request, and sends the new request to the source station; a local proxy server program parses data related to the HAProxy proxy protocol in a data packet; socket options are started bind the IP of the client to a forged source address, and the local proxy and a service server successfully establish a connection to implement normal data exchange in combination of a set of routing spoofing technology formed by a firewall packet filtering rule,policy routing and default routing under Linux; then, a source station server obtains the real IP of the client; and by adoption of the method disclosed by the invention, the deployment is performed fast without the awareness of the source station server, thereby shortening the time and reducing the labor cost.

Description

technical field [0001] The invention belongs to the field of client IP analysis, and in particular relates to a method for obtaining the real IP of a client under a four-layer proxy network environment. Background technique [0002] The data interaction path in the four-tier proxy network environment is client→proxy→upstream_server, that is, the client (client) does not directly send data to the source station server (upstream_server), but sends the data to the four-tier proxy server (proxy). The layer-4 proxy server forwards the data received from the client to the source server, and the layer-4 proxy server is also responsible for forwarding the response data from the source server to the client. Since the source server establishes a connection with the layer-4 proxy server instead of the client, the peer IP obtained by the source server is the IP of the layer-4 proxy server instead of the client IP. [0003] Generally speaking, the peer IP information obtained by the ori...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/12H04L29/08
CPCH04L61/2528H04L67/2876H04L61/5007
Inventor 郑斌叶兴张文宇陈海洋王猛刘东凯刘袁肖庆伟曹蕊
Owner 成都知道创宇信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products