Hi! I was wondering if there was a way in FreeBSD (I have NAS4Free running on my NAS) to check if my modem has internet connectivity and reboot it automatically if it doesn't?
A few weeks ago I was on vacation and suddenly my internet died at home, so I couldn't access my Plex Media Server for the rest of the week. Going on another vacation next week and don't want this to happen again.
It's kind of random how the internet just stops working (probably happened 2-3 times this year), so I'd like to have some script/software to check for internet connectivity, say every 10-15min and reboot the modem if needed. I always shut down my Windows PC when I go out, so this checker would have to run on the NAS.
The problem is that I can't reboot my Thomson TG789vn modem with a direct URL command from the web browser in Windows. I can only get to the "Yes/No"-page with a direct URL.
If I paste in the URL that actually makes the reboot command I get:
(http://192.168.1.1/rebooting.lp?tid=RESTART)
If I paste in the URL to the "Yes/no"-page it loads up just fine, but from here you'd have to manually click the "Yes" button in order to send the reboot command to the modem:
(http://192.168.1.1/restart.lp?tid=RESTART)
If I click "yes" the URL in the browser changes to the one that gives the "Access Error: 500 -- Internal Server Error" error detailed above.
So now the question is: Is it possible to to have such a script/software running if you can't reboot the modem with a direct URL/command or a workaround I haven't thought of? Any tips and tricks would be helpful.
A few weeks ago I was on vacation and suddenly my internet died at home, so I couldn't access my Plex Media Server for the rest of the week. Going on another vacation next week and don't want this to happen again.
It's kind of random how the internet just stops working (probably happened 2-3 times this year), so I'd like to have some script/software to check for internet connectivity, say every 10-15min and reboot the modem if needed. I always shut down my Windows PC when I go out, so this checker would have to run on the NAS.
The problem is that I can't reboot my Thomson TG789vn modem with a direct URL command from the web browser in Windows. I can only get to the "Yes/No"-page with a direct URL.
If I paste in the URL that actually makes the reboot command I get:
(http://192.168.1.1/rebooting.lp?tid=RESTART)
If I paste in the URL to the "Yes/no"-page it loads up just fine, but from here you'd have to manually click the "Yes" button in order to send the reboot command to the modem:
(http://192.168.1.1/restart.lp?tid=RESTART)
If I click "yes" the URL in the browser changes to the one that gives the "Access Error: 500 -- Internal Server Error" error detailed above.
So now the question is: Is it possible to to have such a script/software running if you can't reboot the modem with a direct URL/command or a workaround I haven't thought of? Any tips and tricks would be helpful.