LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-07-2012, 10:05 PM   #1
dschuett
Member
 
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:

Code:
/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
etc....

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
Kustom42
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
dschuett
Member
 
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?
 
  


Reply

Tags
iptables, modules



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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