Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Identify fake UDP Packet

I want to identify an UDP or TCP packet that have its source IP address faked. My guess is that even if the packet is faked with a program such has hping, the MAC src address is still the same on all the faked packets, is this correct?

If my idea is not correct, how can I identify such packets that are being faked and looks like it has different source for each and every packet?

Thanks.

like image 749
Nergal Dimitri Avatar asked Oct 15 '25 13:10

Nergal Dimitri


1 Answers

MAC addresses can be faked too.

With TCP, its easy to identify / handle this. You'll reply to a fake SYN packet with a SYN-ACK. If it was a real client, it'd reply with an ACK to complete the handshake. Only caveat is that you'll have to implement syn-cookies so that you don't create state & use up resources while waiting for an ACK.

With UDP, there is no way to know, since the protocol is connection-less. If you send a reply to the fake packet, you're not guaranteed a response from a "real" client. So there is no way to identify a fake one.

like image 186
jman Avatar answered Oct 18 '25 00:10

jman