As Teltonika does not write custom scripts for our clients, I can only give you suggestions. This script should be simple, you only need to ping the tunnel and write condition if you do not get a response to send vpnon command. Also, you will need to run this scripts continuously. To do that you can use crontab functionality:
- Log into the router using SSH client;
- Use command crontab -e;
- Add additional line to crontab, for example: ***** /root/test.sh
In this example script will run every single minute.
Crontab syntax explanation:
Or you can use an ampersand (&) at the end of your command, for example:
and it will run in the background after you execute it even if the terminal window is closed.