Home > Back-end >  LAN data forwarding
LAN data forwarding

Time:10-06

Premise: LAN client all data is sent to the native
MAC: client IP: 192.168.1.5 55:55:55:55:55:55
MAC: native IP: 192.1668.1.2 22:22:22:22:22:22
MAC: router IP: 192.168.1.1 11:11:11:11:11:11


The machine through the address translation and port port multiplexing (NAT) network data back to the machine, the machine is sent to the client when the client again to accept less than data (suspected router discarded)

To the client after the data sent to the purpose of this machine will be MAC into the router, then walk straight hair, but the router will be sent directly to the client, the client then sends and receives a MAC address is not corresponding to the ~

I hope LAN data (can) as long as you send to the network through the machine, but will not affect the normal access to the Internet, to the client. What should I do?

(I am using WinPcap)
(like the P2P terminator, such as network management software is how to implement?)

CodePudding user response:

Would you like to make it a gateway?

CodePudding user response:

reference 1st floor dataxdata response:
would you like to make it a gateway?

Is about this meaning ~ but it is the same layer and the client, do data filtering, meet again sent to the real gateway

CodePudding user response:

I think the first thing to solve the problem of network topology, if your machine is just ordinary one machine in the network, so can't be all packets after you
Your machine have two pieces of card, best respectively connected to LAN and the network, the equivalent of a network firewall, access to the network traffic through your machine, so that you can proceed to the packet filter

CodePudding user response:

reference dataxdata reply: 3/f
I think the first thing to solve the problem of network topology, if your machine is common one machine in the network, so can't all packets after you
Your best machine has two Ethernet card, respectively connected to LAN and the network, the equivalent of a network firewall, access to the network traffic through your machine, it can be for packet filtering then


Of data are sent to the machine now, but will not affect the machine how to forward data on the Internet?

CodePudding user response:

reference 4 floor s306150918 response:
Quote: reference dataxdata reply: 3/f

I think the first thing to solve the problem of network topology, if your machine is just ordinary one machine in the network, so can't be all packets after you
Your best machine has two Ethernet card, respectively connected to LAN and the network, the equivalent of a network firewall, access to the network traffic through your machine, it can be for packet filtering then


Of data are sent to the machine now, but will not affect the machine how to forward data on the Internet?


Is not the machine directly connect the network line?

CodePudding user response:

You say data refers to any data (such as web browsing, email, FTP, etc.), or your proprietary business protocol data, if it is your own protocol data, then the data was sent to you may all come, if it is a common data online, how can all run to your machine?
  • Related