We are using a router to connect multiple devices. We have a server connected to the Internet that will continually ping a website to check if there is still an Internet connection. If there is no Internet connection, we will cut the connection of those devices connected to the server as a precaution since our system requires an Internet connection to work. The computers connected to the server will constantly ping it, and if the connection is cut will run a program to stop anything from happening.
Our first idea was to release the IP address in the server on the LAN interface if there is no internet connection, and then renew it when the connection returns. This will terminate the connection between the server and other computers, but our server's LAN IP address is statically assigned for added security measures, and it cannot be released and renewed.
Another option for us is to disable the LAN interface on the server so that the other computers cannot ping it, but we are looking for a better solution, or is this the best solution for our problem?