i need your help. Setup: openwrt router with USB LTE Modem in Bridge Mode to my Mikrotik.
The problem is the router gets an 24h official dhcp ip adress, but the dhcp client thinks it will last for 7 days.
Because of that i use netwatch to monitor a wan ip (google dns) and when it get an timeout, it will disable and enable the interface.
This is working fine for me at the moment.
My other problem:
Sometimes the usb modem doesnt connect on the openwrt router and the easiest way is to reboot the router.
So my idea; use netwatch and when it get 2mins timeouts reboot the openwrt router.
My question how i would write the ssh command to connect with password? After login it only needs "reboot"
Thanks and best regards