I am more-less advanced home user, not a network expert, and I have more-less typical home configuration for such users: Mikrotik RB962UiGS as a main home router, WEB server on Synology NAS on internal network, and router is port-forwarding http(s) traffic to WEB server to be able access WEB server from outside. This configuration already works, no problem with this. Now, I would like to turn off my NAS to do some maintenance. I would like outside clients accessing my WEB server get some more informative custom static web page with some text, like “Server is under maintenance, try again 5 minutes later”. What is the best way to achieve this? Obvious way - I have to change my port-forwarding rule to point to another, “secondary”, web-server with such page. So, my questions splits into two group of questions:
-
What is the best way of automatically (?) change port-forwarding rule, if internal server is not available? Are there any example of script, periodically pinging my NAS, and adjust destination IP base on accessible of NAS?
-
Can my RB962UiGS router play role of such “secondary” web-server having only single one static web-page? If can - how to set it up to avoid adding extra device with web-server on my home network only for this purpose?
Or, may be my logic is not valid at all, and there is another solution for that?
Thank you for any help and suggestions…