Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
IPtables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tolano
n00b
n00b


Joined: 04 Jul 2006
Posts: 56

PostPosted: Thu Jul 13, 2006 11:47 am    Post subject: IPtables Reply with quote

Hello, I'm installing iptables in the computer and I have a question.
If in the kernel, I config Netfilter Xtables Support as a module, do I have to load it every time I start the computer? Or it's loaded automatically?

Always that I compile something as a module in the kernel means that must be loaded manually in the boot to be able to use it?

If I compile IP tables support (required for filtering/mask/NAT) as a module, and then all the suboptions as a modules (is the only way), does it mean that only loading IP tables suppor will load the sub options (i.e. IP range match support, TOS match support...)

Thank you.
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Thu Jul 13, 2006 4:14 pm    Post subject: Reply with quote

Short anwser, probably yes.

Long anwser: Most people have "loadable module support" enabled in their kernel, which means that if some piece of hardware (via hotplug/coldplug or udev) needs a module, it will be automatically loaded. Also, applications like iptables will load the necessary modules when the application starts.

Of course if you want to verify what modules are loaded then so this:
Code:
lsmod


You may want to run lsmod once before and once after loading iptables to see what it loads, and to check that everything is there.
Back to top
View user's profile Send private message
runningwithscissors
Guru
Guru


Joined: 21 Apr 2006
Posts: 454
Location: the third world

PostPosted: Thu Jul 13, 2006 6:10 pm    Post subject: Reply with quote

Even if you are compiling the stuff as modules, I think you should explicitly load them at boot, since the firewall will be started at boot too, I believe.

It just makes things clearer and easier to manage. Coldplug/Hotplug should be relied on for modules that you need but not too frequently. Essential modules, I think, should be loaded explicitly.
Back to top
View user's profile Send private message
tolano
n00b
n00b


Joined: 04 Jul 2006
Posts: 56

PostPosted: Thu Jul 13, 2006 10:09 pm    Post subject: Reply with quote

How can I set wich modules should be loaded with ColdPlug/Hotplug and which not?
I'll do it manually anyway, but just to know.
Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum