View previous topic :: View next topic |
Author |
Message |
tolano n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Jul 2006 Posts: 56
|
Posted: Thu Jul 13, 2006 11:47 am Post subject: IPtables |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mikegpitt Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/320581971410bd37710af6.jpg)
Joined: 22 May 2004 Posts: 3224
|
Posted: Thu Jul 13, 2006 4:14 pm Post subject: |
|
|
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:
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 |
|
![](templates/gentoo/images/spacer.gif) |
runningwithscissors Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/11500234314fc230b7d97b5.gif)
Joined: 21 Apr 2006 Posts: 454 Location: the third world
|
Posted: Thu Jul 13, 2006 6:10 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tolano n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Jul 2006 Posts: 56
|
Posted: Thu Jul 13, 2006 10:09 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|