Сбрасывание iptables повредило мой канал, как я могу сохранить свой экземпляр?

Я разделил бы том резервного копирования от виртуальной машины и смонтировался бы через NFS. Вы не потеряете производительности, пробегающейся через NFS.

0
задан 29 August 2012 в 23:32
2 ответа

All three of your policies are DROP, so by flushing the chains, you've removed all the rules which might modify the disposition of particular packets, and left them all to the default policies: effectively, you've said that all packets in, out and through the machine should be discarded.

Whether a reboot will help will depend on what your machine's startup state is. If you've got a sensible set of rules designed to come up on reboot, then reboot it. If on the other hand you've got the reboot code set up to save and restore the running firewall state on reboot, or you have a highly-restrictive set of startup rules, then the reboot won't help.

Assuming you get it back, something I find that helps often when working on iptables rules is

at now+5min
 service iptables stop
 ^D

This has saved me quite often when trying to do something clever. I can stuff up and lock myself out, knowing that in five minutes the firewalls will come down, and I can get back in and set things to rights.

2
ответ дан 4 December 2019 в 11:57

Похоже, вы используете Линод. В этом случае используйте Linode Shell , чтобы получить доступ к консоли вашей виртуальной машины. Затем вы можете войти в систему и восстановить свой брандмауэр.

Используя другого провайдера, провайдер может предоставить вам эквивалентный доступ к виртуальной консоли. Например, VMware отлично на это способна.

2
ответ дан 4 December 2019 в 11:57

Теги

Похожие вопросы