Home > other >  How the data is transmitted to the target server
How the data is transmitted to the target server

Time:10-10

Existing a lot of data terminal S, D to send data to the target server frame, which contains different terminals, normal is S and D connection is established, send,
Now for some reason I want to first to a relay server S Repeater sending data frames, and then by the Repeater send D,
Had to do this is no problem, but may be the target server D did some processing, make the data frame send D, refused to different terminal number use the same IP sending data frames
I want to write a Repeater in the relay server VC program, to establish a connection with the target server, after receipt of the S of packets, changes the destination address and port number, again send D,
I wonder if this approach is feasible, such as possible should be how to do,

CodePudding user response:

If the server D he specify which IP to connect, then you have no way to,

If we can even, should not be set must specify the IP to send data frames, not so no chat

CodePudding user response:

reference 1st floor san_77227487 response:
if D server which IP to connect on him, then you have no way to,

If we can even, should not be set must specify the IP to send data frames, not so no chat


Target server D does not specify which IP to margin on him, obviously data terminal S IP is different,
He is likely to be an IP number corresponds to a terminal, when a terminal number in an IP after logging in, other IP is not able to login to the terminal number send data, it can be sure of,
So there may be other terminal number can't be with the same IP data,
This will prevent illegal data input!
This is my problem,

CodePudding user response:

Linux system? Check netfilter, transfer can be done here, I remember about the process is to register hook function, and then determine the packet (here will determine if your port is fixed port is ok), at last, by routing forwarding, note that after you modify IP, the corresponding MAC to match, otherwise there will be a IP conflict,

CodePudding user response:

reference qprevf reply: 3/f
Linux system? Check netfilter, transfer can be done here, I remember about the process is to register hook function, and then determine the packet (here will determine if your port is fixed port is ok), at last, by routing forwarding, note that after you modify IP, the corresponding MAC to match, otherwise there will be a IP conflict,

I am using Windows
I relay server IP is fixed,
Data source is a remote terminal GPRS, IP is not fixed, it may be matched with its MAC,
The good news is that the data frame is not very big, up to 100 bytes, should all put in a packet, I only change over IP packets, if the MAC also to my MAC, terminal server might be detected from all parts of the same machine, and rejection, besides the same MAC thousands of IP is not likely
  • Related