Home > Back-end >  How to write a module to realize the eth0 on port receive packets sent to the port on eth1?
How to write a module to realize the eth0 on port receive packets sent to the port on eth1?

Time:10-15

Suppose I host has 2 ports and eth0 eth1, now need to write a module to implement will receive packets sent to the eth0 eth1,
Please expert guidance, through the way of hook can be achieved? Or other better ways, please feel free to comment, thank you very much!

CodePudding user response:

The meaning of the original poster is refers to the communication between the port?
Isn't that communication between process?
If it is communication between two network CARDS, using a script can ah,
Port, and eth0 eth1, to understand clearly,

CodePudding user response:

Two network CARDS (IP)? Two ports?
Your so-called forward forward is refers to the process or let the system automatically forwarded? System automatically forwarded as two network CARDS can "bridge" (similar to bridging and virtual machine); Forward program that implemented a lot, such as routing forwarding to a different IP
  • Related