2

Can you send data to a UDP receiver without your IP address or location visible to the receiver?

Dubstep
  • 137
  • 1
  • 10
  • 1
    You don't need to have your IP address included unless you want them to be able to respond. You can spoof any info in a packet; you just need to accept the consequences of the changes you make. – Carcigenicate Aug 28 '20 at 22:53
  • note that because intermediate devices (e.g. switches) see the packet a sufficiently advanced adversary might be able to figure out what was going on. this becomes easier as more packets are sent along the same, or similar, routes – Sam Mason Aug 30 '20 at 12:13

1 Answers1

4

Yes. It's possible to create and send UDP packets with a spoofed IP address using a raw socket.

Raw sockets allow applications to create their own IP headers including the source address fields. Look around for examples in whatever language you write in.

However, creating and sending such a packet doesn't mean that the networks along the way to the recipient will actually deliver it. Some networks employ defensed like Reverse path forwarding to protect against IP spoofing. There's CAIDA a research project that tests for IP spoofing in networks around the world, you can find an up to date report here.

Malt
  • 28,965
  • 9
  • 65
  • 105