On Sat, Jul 21, 2012 at 11:29 AM, Martin Lambev <address@hidden>
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
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.
On Jul 20, 2012, at 12:00 AM, address@hidden wrote:
> Re: I desperately need fresh idea - iptables CentOS