The situation is such that the user connects to a specific address and port, and I cannot control his client-program, that is, make another connection again, because the current connection will break, and he will have to manually connect again to the new address, but I need so that it does not turn off, but at the same time it was first connected to one server, and then, after it received data from it, joined another, so that it was imperceptible for it.
Alternatively, you can make a proxy and send traffic from there to here and there. But the option with a proxy does not suit, because the proxy channel is overloaded, and the channel of the other servers will be almost empty.
I do not know if I explained the situation. Now I am just starting to get acquainted with networks in order to solve this problem later, but even without knowledge I didn’t understand from the very beginning how to do something else except through a proxy. It turns out that the client has established a connection with the server’s ip and port, and using this connection, I cannot tell the client’s machine to join another server?
- Good question. As far as I know, no. I know that you can send an open socket (file descriptor) from one process to another on the same host (via sendmsg ()), but this is different from what you are describing. In essence, you want to dynamically control the substitution of the dst address of the established tcp connection at the client. - avp
- @avp, is this ip spoofing called? Well, if at least in one direction to send, that is, only from the server to the client. For example, the client connected to server A, and server A sent only headers (or whatever is needed for verification) to server B, instead of sending this answer to the client, and then server B sends this answer to the client, but the answer will not be empty, and with the data. Is such an implementation possible? Or will the many necessary information to successfully identify the server B on the client, will be hidden at the network interface levels and the OS kernel of server A? - xinakapu
- one@xinakapu, IMHO is called several other actions spoofing and I definitely did not mean it. You better describe in more detail what exactly you want to do. What a client, server. If the client is a browser and works in http? Then maybe a trivial redirect will fit. - You are writing as if we are all familiar with the task and it remains to clarify the technical details. Here, what you first essentially asked the client is connected via tcp and works with serer1, then server1 switches it to server2 (and the client does not participate in this), etc. Without changes in the client's OS (IMHO) this will not work - avp
|
1 answer
response from comment:
As far as I know, no. I know that you can send an open socket (file descriptor) from one process to another on the same host (via sendmsg ()), but this is different from what you are describing. In essence, you want to dynamically control the substitution of the dst address of the established tcp connection at the client.
|