Categories
Roll back network settings in case of session loss?
Hello, is there any possibility in Linux to roll back network settings when the ssh session is lost, as is done in Mikrotik? google didn't help
Answer the question
In order to leave comments, you need to log in
there is cron , there is at , you can write a rollback script, place it in cron, and if you are the result of some kind of error, etc. If you lose your session, the script will roll back. edit. Example echo /path/to/my/script | at now + 5 min
echo /path/to/my/script | at now + 5 min
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question