Suppose you configure network settings on a remote Linux machine. The only way to access this machine is an SSH connection. To prevent access problems in case of network configuration failure, try such option:
- open
tmux
; - write
sleep 600 && reboot
(you should cancel this command every 5-9 minutes and start again); - perform network configuration in a separate tab.
It’s important to make only temporary changes that will be lost after a reboot:
- do not execute commands like
systemctl enable nftables
, usesystemctl start nftables
instead; - do not use
--permanent
option forfirewall-cmd
.
In case of network configuration failure, your machine will be rebooted in 10 minutes. All configuration changes will be wiped out and you’ll be able to connect.