A
A
Andrey2021-04-28 12:05:30
linux
Andrey, 2021-04-28 12:05:30

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

1 answer(s)
D
Dmitry, 2021-04-28
@q2digger

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

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question