I am currently using a Pi3 as a Wi-Fi access point for a wireless weatherstation. The Pi uses tcpdump to capture the data that the weatherstation "phones home" and logs the weather data from that call. All is working great under normal circumstances. However, when the internet goes out apparently the web requests cannot complete so tcpdump never sees the "required" data it is looking for that contains the data I want.
What I would like to do is have the Pi push the requests for ONLY that specific domain to its own webserver where I can still provide the proper response the weatherstation is looking for but still get the data it is trying to send. I would then have the Pi make the request to the REAL webserver if the internet is up.
Any ideas? Thanks.