I have set up a experimental setup which consists of:
- Windows PC with ethernet cable;
- Arduino shield (connected to Windows machine with USB) with LTE connectivity sending data using TCP/IP to ngrok;
- VirtualBox with Kali Linux running on same Windows machine mentioned above;
On Kali Linux there is working Python script for receiving local TCP packets and ngrok TCP tunnel forwarding packets sent from Arduino to my local TCP server. Everything works fine and I'm getting correct data on Python console.
After this I wanted to test my system with DoS attack. On same Kali VirtualBox machine I used tool called hping3. If I type "hping3 -S --flood --rand-source Arduino_shield_IP" connection is dropped and python console doesnt recieve any data until I stop TCP flood. But when I run same python script and ngrok on another laptop, connection isnt dropped when TCP flooding. Why is that? I got devices IP adress using AT commands.
I have to mention that this is a university project and we have a permission to test LTE like this.