On Thursday 16 February 2006 14:54, Maurice de Laat wrote:
> On Thu, Feb 16, 2006 at 07:29:09PM +0100, Michael Stauber wrote:
> > Do you by chance have LCAP installed and active?
>
> At this point, I have to ask 'what is LCAP?',
> so I guess the answer is no :-)
>
> > If so, the required kernel module(s) for iptables cannot be loaded once
> > LCAP has kicked in.
>
> It is not that iptables doesn't want to load. I can start APF (based on
> iptables), and it blocks p.e. connection to the mysql-port. But at the
> next full hour (when /etc/cron.hourly/log_traffic run) the firewall isn't
> working anymore, because I can connect to the mysql port again.
OK, your problem is that log_traffic "automatically" rebuilds the iptables
firewall every hour.
/etc/sysconfig/iptables:
<quote>
# /etc/sysconfig/iptables
# This file is automatically generated by log_traffic.
# Any manual changes will be lost
</quote>
meaning that regardless of what you "load" to iptables, it will run the
command "iptables-restore < /etc/sysconfig/iptables" every time log_traffic
runs and replace yours.
You need to make your changes in /etc/cron.hourly/log_traffic script
(carefully) and then test (save backups) to make sure that when log_traffic
replaces the iptables file it keeps your changes on "refresh".
--
Larry Smith
SysAd ECSIS.NET
sysad (at mark) ecsis.net