Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-07-2012, 10:05 PM   #1
Registered: Aug 2010
Posts: 40

Rep: Reputation: 1
Loading IPTABLES Modules

I have been running my own iptables script for quite sometime now without any issues that I am aware of. My question is, is it necessary to use modprobe to load iptable modules within my script? I have noticed that about 80% of all iptables examples out there show them loading modules at the beginning of their script. As such:

/sbin/modprobe ip_tables ## Core Netfilter Module
/sbin/modprobe ip_conntrack ## Stateful Connections
/sbin/modprobe iptable_filter ## Filter Table
/sbin/modprobe ipt_MASQUERADE   ## Masquerade Target

I am running Debian 6, and as I stated before, I don't THINK I have had any problems without manually loading the modules. I guess I am more interested in the purpose, since from what I understand the kernel will load the modules as it needs them.

thanks for your time!
Old 08-08-2012, 03:15 PM   #2
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
It will come down to whether or not you use the modules, for instance, if you are running vsftpd on passive you need the ip_conntrack_ftp module.
Old 08-08-2012, 03:39 PM   #3
Registered: Aug 2010
Posts: 40

Original Poster
Rep: Reputation: 1
I understand that concept, but won't the kernel automatically load the module if it needs it? - Instead of manually loading it?


iptables, modules

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rc.modules not loading modules at startup WonderLlama Linux - Newbie 5 05-15-2010 12:40 AM
Loading Modules To Iptables lqchangba Linux - Server 2 05-26-2007 08:31 AM
Loading Modules To Iptables lqchangba Linux - Networking 2 05-25-2007 01:14 PM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
modules are loading that shouldn't in my rc.modules thrice Slackware 3 05-11-2004 10:35 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration