I have a machine (server) on which I am running IP spoofing tests. All the ports are open on the server and it is on a VPN Network to which I am connected.
The problem is, when I try to send data to the machine on UDP simply using netcat, it works. I am following this particular solution to send data to the machine: https://gist.github.com/sandeshbhusal/c8fa09546ffc076e5103456dd4e3742d
The spoofing code works well on my local machine; I can see the data being sent and received properly. The code stops working when I try to use it on the server (I am using the code exactly as is).
A couple of questions:
- Do I need to change the mac addresses in the code? If so, what value should they have?
- When I run the code from within the server, tcpdump shows the data being sent but netcat can't see the data. What could the reason be?