FS#1608 - iptables does not load filter rules after crash
Attached to Project:
Arch Linux
Opened by nackd (Prieto) - Saturday, 09 October 2004, 17:07 GMT
Last edited by Judd Vinet (judd) - Tuesday, 12 October 2004, 15:54 GMT
Opened by nackd (Prieto) - Saturday, 09 October 2004, 17:07 GMT
Last edited by Judd Vinet (judd) - Tuesday, 12 October 2004, 15:54 GMT
|
Details
After the system crashes (or not, but you don't shutdown it
cleanly) iptables fails to restore the filter rules.
|
This task depends upon
Comment by nackd (Prieto) - Saturday,
09 October 2004, 17:08 GMT
The problem is in /etc/rc.d/iptables. It writes a file in /var/run
to know if it has been already started. That file is deleted when
iptables is stopped, but it is not when the system is not cleanly
shutdown. Instead, it should use the standard function ck_daemon.
(Yes, it also uses a file in /var/run/daemons, but that dir is
emptied by the init scripts). I'm attaching a patch.
iptables.patch