I have created this program that runs inside a router. The program is essentially a speed test and for the upload part of the test, the program is utilising a lot CPU and generating a file inside the router that occupies a lot of disk memory.
My idea was to remove the file generating feature of my program. Place a file of a certain size in my web server with a public IP and have that router download it. Instead of downloading the packets and writing in the disk of the router have it redirect/bounce back all the traffic to my web server before it reached the application layer. Then get the RX values from my web server to find upload speed of the router.
I have looked at many examples with
rinetd but all of them redirect/forward traffic within the same local network. I'd like the traffic to be redirected back to the internet into my public IP web server. Is it possible?