monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I desperately need fresh idea - iptables CentOS


From: Emil Natan
Subject: Re: I desperately need fresh idea - iptables CentOS
Date: Sun, 22 Jul 2012 10:22:59 +0300



On Sat, Jul 21, 2012 at 11:29 AM, Martin Lambev <address@hidden> wrote:
Thanks for the suggestion,

I was thinking how to do it without involving any additional script or program beside monit.

for whether or not iptables are running I come up with this:

check file iptabels with path /var/lock/subsys/iptables
   group firewall
   start program = "/etc/init.d/iptables start"
   stop  program = "/etc/init.d/iptables stop"
   if 5 restarts within 5 cycles then timeout

But for masquerade will have to use "grep" and "iptables -L -n" what you suggest using cron?

Yes. That's what I do, Of course it's good idea to also monitor "crond" via monit.

Thank you!


On Jul 20, 2012, at 12:00 AM, address@hidden wrote:

> Re: I desperately need fresh idea - iptables CentOS


reply via email to

[Prev in Thread] Current Thread [Next in Thread]