All of lore.kernel.org
 help / color / mirror / Atom feed
* Dynamic kernel module load
@ 2007-05-24 16:31 Paul Harlow
  2007-05-24 16:35 ` Jan Engelhardt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paul Harlow @ 2007-05-24 16:31 UTC (permalink / raw)
  To: Netfilter Lists

Hi all,

Fedora 5 patched, i386 SMP

I am looking for info on how to dynamically load a particular kernel module when I restart IPTables. I have firewalling rules in place for FTP traffic (both passive and active) however when I restart IPTables I notice that the module ip_conntrack_ftp does not load, I have to load it manually. This presents a problem if someone other than myself has to reload firewall rules on this machine but isn't aware of the FTP rules/needs.

Will adding the line "ip_conntrack_ftp" to the modules.conf file solve this problem and leave the particular module in permanently?

Paul Harlow
System and Network Administrator
SKLD Information Services LLC
9540 E. Jewell Ave. Suite A
Denver, CO   80247
303.695.3861 - desk
303.913.2804 - cell



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dynamic kernel module load
  2007-05-24 16:31 Dynamic kernel module load Paul Harlow
@ 2007-05-24 16:35 ` Jan Engelhardt
  2007-05-24 17:08 ` Martijn Lievaart
  2007-05-24 17:10 ` Paul Blondé
  2 siblings, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2007-05-24 16:35 UTC (permalink / raw)
  To: Paul Harlow; +Cc: Netfilter Lists


On May 24 2007 10:31, Paul Harlow wrote:
>Hi all,
>
>Fedora 5 patched, i386 SMP
>
>I am looking for info on how to dynamically load a particular kernel
>module when I restart IPTables. I have firewalling rules in place for FTP
>traffic (both passive and active) however when I restart IPTables I
>notice that the module ip_conntrack_ftp does not load, I have to load it
>manually.

That is because your ruleset only depends [as in: symbols] on
iptable_filter, ip_conntrack and such, but not ip_conntrack_ftp.

>This presents a problem if someone other than myself has to
>reload firewall rules on this machine but isn't aware of the FTP
>rules/needs.
>
>Will adding the line "ip_conntrack_ftp" to the modules.conf file solve
>this problem and leave the particular module in permanently?

Adding it to /etc/sysconfig/kernel variable MODULES_LOADED_ON_BOOT
(opensuse; YMMV) will do that, yes. (modprobe.conf? I do not think
that is the right place.) Until someone manually rmmods it (,yes).


	Jan
-- 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dynamic kernel module load
  2007-05-24 16:31 Dynamic kernel module load Paul Harlow
  2007-05-24 16:35 ` Jan Engelhardt
@ 2007-05-24 17:08 ` Martijn Lievaart
  2007-05-24 17:10 ` Paul Blondé
  2 siblings, 0 replies; 4+ messages in thread
From: Martijn Lievaart @ 2007-05-24 17:08 UTC (permalink / raw)
  To: Paul Harlow; +Cc: Netfilter Lists

Paul Harlow wrote:
> Hi all,
>
> Fedora 5 patched, i386 SMP
>
> I am looking for info on how to dynamically load a particular kernel module when I restart IPTables. I have firewalling rules in place for FTP traffic (both passive and active) however when I restart IPTables I notice that the module ip_conntrack_ftp does not load, I have to load it manually. This presents a problem if someone other than myself has to reload firewall rules on this machine but isn't aware of the FTP rules/needs.
>
> Will adding the line "ip_conntrack_ftp" to the modules.conf file solve this problem and leave the particular module in permanently?
>   

Patch /etc/sysconfig/iptables-config, mine looks like:

# Additional iptables modules (nat helper)
# Default: -empty-
IPTABLES_MODULES="ip_conntrack_ftp"

(snip)

HTH,
M4



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Dynamic kernel module load
  2007-05-24 16:31 Dynamic kernel module load Paul Harlow
  2007-05-24 16:35 ` Jan Engelhardt
  2007-05-24 17:08 ` Martijn Lievaart
@ 2007-05-24 17:10 ` Paul Blondé
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Blondé @ 2007-05-24 17:10 UTC (permalink / raw)
  To: 'Netfilter Lists'

You will either want to add the loading of ip_conntrack_ftp to /etc/rc.local
(see http://iptablesrocks.org), or insert a line into
/etc/sysconfig/iptables-config (or wherever you keep your iptables
configuration file) like this:

IPTABLES_MODULES="ip_conntrack_ftp"



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Paul Blondé



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-24 17:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-24 16:31 Dynamic kernel module load Paul Harlow
2007-05-24 16:35 ` Jan Engelhardt
2007-05-24 17:08 ` Martijn Lievaart
2007-05-24 17:10 ` Paul Blondé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.