My LAMP webserver started lagging while serving up pages. After poking around I noticed
iptables -L was taking a good 2-5 seconds to complete - I'm used to this happening a lot quicker.
So I restarted iptables and it fixed my lag problem.
Question: is it bad practice to restart iptables on a regular basis?
I know it disables the firewall so I'm unprotected for a matter of seconds, but it seems that after about a week of running time the
iptables -L command tends to take longer and longer to execute. So I figured a weekly cron would suffice, but wanted to know if this was a bad idea. Instead there may be a iptables specific conf option I should be setting instead?