S
S
Sly Fox2015-07-07 11:46:52
linux
Sly Fox, 2015-07-07 11:46:52

How can I organize the transfer of all Internet traffic from one PC to another?

The essence of the task is to immediately send all traffic that comes to one machine to another (by a known IP address). Both machines have Linux installed. The whole problem is that you need to do this at the lowest possible level (no raw sockets).
The idea has already been raised to rewrite the network card driver class, but this is still very difficult to figure out. We also already tried to implement all this using Netfilter, but it did not work out.
PS. iptables somehow did not please our supervisor. And we do not consider it.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey Burov, 2015-07-07
@BuriK666

iptables DNAT than does not suit?

S
Sergey, 2015-07-07
@Yestestvenno

yum -y install firewalld firewall-config

V
Vasily, 2015-07-07
@DobriyJuk

Everything is right says pi314 (a class that the nickname passed by censorship :)). If we need to mirror traffic coming to a certain port, but we cannot use iptables for ideological, economic, political, religious reasons (or perhaps we are simply afraid of a large load on the CPU if it is weak; and also, we are afraid of a sharp increase in packet transit time - google the difference between software and hardware routers), then the only sane solution - in fact, this is generally the most sane solution - is to install a managed second-level switch with a traffic mirroring function. I won’t say for everything, but even the Cisco Catalyst 2950, ​​ancient as shit * mammoth, could do it.

A
Alx, 2015-07-08
@gx2

There is a remark about mirroring on the switch: the port where the traffic is mirrored (destination port) ceases to be the port for servicing the OS, because poppy destination addresses will be different, ie. you can just watch the traffic, but not process it with application programs (such as databases, etc.).
Correct me if wrong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question