View previous topic :: View next topic |
Author |
Message |
craigwalshuk n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/11294586174422aaae3ba74.png)
Joined: 23 Mar 2006 Posts: 2 Location: Preston, England
|
Posted: Thu Mar 23, 2006 3:38 pm Post subject: Can't compile iptables support [solved] |
|
|
Let me just start by saying Gentoo is amazing, I've got everything working just they way I want it apart from this. I've read all the other posts to do with iptables but still can't fine a solution. I'm trying to compile iptables support into my kernel but it's just not working. I followed the wikipedia article (http://gentoo-wiki.com/HOWTO_Iptables_for_newbies) to the letter but there is no joy. I installed gentoo at first using the kernel on the live CD and that worked just fine, but then I changed to the gentoo-sources kernel. Is this the best kernel to use?
I emerged iptables first and then tried to compile support for it, is that the right way round? I used make menuconfig and then checked my /usr/src/linux/.conf file to make sure iptables was loaded as a module (CONFIG_IP_NF_IPTABLES=m), but when i do modprobe ip_tables it comes up with FATAL: Module ip_tables not found. Where am I going wrong?
Thank you in advance _________________ Aint no power in the 'verse can stop me!
Last edited by craigwalshuk on Sun Mar 26, 2006 11:00 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
whyscream n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Feb 2004 Posts: 46
|
Posted: Fri Mar 24, 2006 12:26 pm Post subject: |
|
|
Some options:
1. Did you reboot to the new kernel before trying to load the new modules?
2. Did you enable support for /proc/config.gz into your kernel? If so, check that file for the iptables module setting, to make sure you are using the new kernel.
3. Search for the actual module in /lib/modules:
Code: | find /lib/modules/`uname -r` -name "ip_tables.*" | This should show you something like: "/lib/modules/2.6.15-gentoo-r1/kernel/net/ipv4/netfilter/ip_tables.ko"
4. When the module exists but it does not load when running modprobe, try to insmod the module:
Code: | insmod /lib/modules/`uname -r`/kernel/net/ipv4/netfilter/ip_tables.* |
As for the order of compilation, it's normal to first make sure your kernel has support for iptables (a.k.a. configure the kernel, compile it, and reboot into it), and then to install the userland utils (a.k.a. 'emerge iptables'), as the howto tells you. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
craigwalshuk n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/11294586174422aaae3ba74.png)
Joined: 23 Mar 2006 Posts: 2 Location: Preston, England
|
Posted: Sun Mar 26, 2006 10:59 pm Post subject: I'm so stupid |
|
|
Ok, it seems I had everything working just fine from the beginning. I forgot to copy the newly made kernel to /boot and I was booting the wrong one! Thank you for your help! _________________ Aint no power in the 'verse can stop me! |
|
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
|
|