View previous topic :: View next topic |
Author |
Message |
sjod n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Sep 2002 Posts: 22
|
Posted: Sat Nov 06, 2004 1:50 am Post subject: iptables, modules and hotplugging |
|
|
Hi,
I have a whole stack of routing related modules, ip_conntrack*, ip_nat* and was wondering what the effect of not loading these into the gateway would be.
Is there a way to get hotplugging to load these modules on demand, or am I going to have to load all these on startup (in which case I might as well build them directly into the kernel)? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
SoTired Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3783827714269df197415f.png)
Joined: 19 May 2004 Posts: 174
|
Posted: Sat Nov 06, 2004 3:35 am Post subject: |
|
|
The modules all have specific purposes, so it's hard to say what not loading all of them would do.
If you don't load conntrack connections wont be tracked anymore, so rules that use the state of the connection (new, related, established, and what have you) wont work anymore.
NAT provides network address translation, removing that will probably break all of your NAT rules, though I'm not positive about that.
The modules would probably be needed when iptables first loads, hence any dynamic loading of them would be rather pointless.
Compiling into the kernel has advantages and disadvanges - none of the modules are going to increase the size much, and they wont slow anything (well, maybe iptables a bit) down, however so there's no real drawbacks to compiling them in (unless kernel size must be kept down.) On the other hand, loading them as modules will work fine too. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
splooge l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 30 Aug 2002 Posts: 636
|
Posted: Sat Nov 06, 2004 3:49 am Post subject: |
|
|
iptables will automagically load the modules it needs if they exist. It knows which module to load from the commands you pass to it.
whether you make modules or compile it into the kernel is personal preference (do you have a need to unload them once loaded?) and won't affect the speed of the system. _________________ http://get.a.clue.de |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|