Dear all
When we got 900 mbps FTTP a couple of years ago, I installed OpenWrt SNAPSHOT r15599-37752336bd / LuCI Master git-21.020.56896-af422b1 on a Raspberry Pi 4 Model B Rev 1.4 as my main router. It has been working excellently ever since.
One reason for choosing OpenWrt was because I hoped it might be able to be configured to do some other special stuff and I've finally got round to thinking about it.
I have a number of devices on the lan which are pre-programmed to send data to specific url's on the wan, an example is a weather station sending data as GET requests to a restful endpoint at weathercloud.com
eg
http://api.weathercloud.net/v01/set?wid=$WID&key=$Key&……
What I would like to do is rewrite "api.weathercloud.net" to "www.myserver.com" where myserver is also on the wan and running an instance of node-red in which I can create a matching endpoint and parse the data into my own database (and then forward the whole thing onwards to api.weathercloud.net)
Can this rewrite be done as it passes through openWrt ? how?
Thanks for your help.
Richard