Home > Back-end >  How to receive package on a port forwarding to another port
How to receive package on a port forwarding to another port

Time:09-23

My device has two ports and eth0 eth1, how will receive package on eth0 port forwarding to eth1, cannot use the bridge, still have what way?
I now use raw socket will catch on eth0 bag forcibly sent to eth1, obviously it is not reasonable?
Please expert advice, thank you very much!!!!!

CodePudding user response:


Do you want to develop the rhythm of the virtual network card drivers,

CodePudding user response:


If network program is simple, can try port forwarding, nothing more than a TCP connection TCP listening, dao data back and forth, recv data send it directly to the other end,
Reference LCX

CodePudding user response:

Message too large raw socket with sendto hair don't in the past,
  • Related