Mon Mar 12, 2018 5:25 pm
Hi Thanks for your reply.
No I have not missed the safe mode option but we have had instances in the past where safe mode didn't operate as expected unfortunately, so the idea is to create a script that will make it idiot proof in fact the only way to lockout would be to backup the config to a backup file where the script is restoring from,
the output from the log i receive when i type this command /log print where topics=system,info message~"rule" looks like the below
13:10:30 system,info nat rule changed by admin
13:10:32 system,info nat rule changed by admin
15:12:47 system,info filter rule changed by admin
15:12:50 system,info filter rule changed by admin
So i was thinking that once the script sees the term "rule" it will start up and check
1, The router can ping 8.8.8.8 or a vpn endpoint for those running over 3G or 4G
2, that the winbox port is open and it is in rule number 1 position in the input chain
if either of the above fail it will revert back to its last known good configuration.
If everything appears to be OK then it will backup the configuration to the known good working configuration file