[Gllug] Iptables Continued

Ben Fitzgerald ben_m_f at yahoo.co.uk
Tue Feb 15 13:15:51 UTC 2005


On Tue, Feb 15, 2005 at 12:51:06PM +0000, Joel Bernstein wrote:
> On Tue, Feb 15, 2005 at 12:44:04PM +0000, Mick Farmer wrote:
> > Dear Sean,
> > 
> > If I modprobe manually, it works fine - thanks for that.
> > There doesn't seem to be a way to include it in the iptables
> > file, only as a command option.
> 
> Correct me if I'm wrong, but aren't you running iptables from a script? 
> 
> What's wrong with having something like:
> 
> lsmod | grep <modulename> 2>&1 >/dev/null || modprobe <modulename> 
> 
> in the startup script?
> 
> /joel

Or put a "preinstall" condition into modules.conf? This way modprobe
will load your prerequisite then your module.

e.g. pre-install ip_tables /sbin/modprobe my_module

Ben

-- 
Registered Linux user number 339435
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list