LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-29-2011, 05:26 AM   #1
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Rep: Reputation: 16
can't initialize iptables table `filter'


On my diskless cluster, I want to open a port on the image that nodes use it.

Here is what I get:
Code:
root@server:~# chroot /home/nfsroot/
root@server:/# iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 4949  -j ACCEPT
iptables v1.4.4: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
root@server:/# uname -a
Linux server 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
root@server:/#
First I chroot to /home/nfsroot where I installed the ubuntu image for nodes. Any suggestion on that?
 
Old 04-29-2011, 07:00 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by mahmoodn View Post
On my diskless cluster, I want to open a port on the image that nodes use it.

Here is what I get:
Code:
root@server:~# chroot /home/nfsroot/
root@server:/# iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 4949  -j ACCEPT
iptables v1.4.4: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
root@server:/# uname -a
Linux server 2.6.32-24-server #39-Ubuntu SMP Wed Jul 28 06:21:40 UTC 2010 x86_64 GNU/Linux
root@server:/#
First I chroot to /home/nfsroot where I installed the ubuntu image for nodes. Any suggestion on that?

grep IPTABLES /boot/config-`uname -r`
should print:
Code:
CONFIG_IP_NF_IPTABLES=y
If it is m, then you need to load the iptables module.
Do lsmod to see what's loaded.
 
Old 04-30-2011, 12:00 AM   #3
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
Code:
mahmood@orca:~$ grep IPTABLES /boot/config-`uname -r`
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP6_NF_IPTABLES=m
using lsmod, there is no iptables module. What should I do next?
 
Old 04-30-2011, 12:29 AM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
[QUOTE=mahmoodn;4341571]
Code:
CONFIG_IP_NF_IPTABLES=m
"m" means it is compiled as a module, not compiled into the kernel.
To load try:

service iptables restart

If that doesn't work you can load the modules manually:

modprobe iptables
modprobe iptable_filter

Not sure of the exact names. They are in the /lib/modules/*/kernel/net/ subdirectory for your kernel.
 
Old 04-30-2011, 12:36 AM   #5
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
/lib/modules is empty. That means there is no kernel installed for the nodes!!
It is strange because the client can boot from that image and I can see the login prompt and then login.
 
Old 04-30-2011, 01:02 AM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by mahmoodn View Post
/lib/modules is empty. That means there is no kernel installed for the nodes!!
It is strange because the client can boot from that image and I can see the login prompt and then login.
The kernel itself is in /boot. But your install is broken if you don't have the modules.
 
Old 04-30-2011, 01:06 AM   #7
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
/boot is also empty !!
I have installed the boot image using
Code:
 debootstrap --arch amd64 lucid /home/nfsroot/ http://archive.ubuntu.com/ubuntu/
/home/nfsroot is shared with nfs. I used this guide https://wiki.edubuntu.org/EasyUbuntu...edClusterGuide

When I say /boot and /lib/modules are empty I mean /home/nfsroot/boot and /home/nfsroot/lib/modules are empty. I am not talking about the server node
 
Old 04-30-2011, 01:24 AM   #8
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by mahmoodn View Post
/boot is also empty !!
I have installed the boot image using
Code:
 debootstrap --arch amd64 lucid /home/nfsroot/ http://archive.ubuntu.com/ubuntu/
/home/nfsroot is shared with nfs. I used this guide https://wiki.edubuntu.org/EasyUbuntu...edClusterGuide

When I say /boot and /lib/modules are empty I mean /home/nfsroot/boot and /home/nfsroot/lib/modules are empty. I am not talking about the server node
Cool! OK - it loaded the kernel using tftp from your server. It looks like it also has loads a filesystem from the server with the rest of the OS. This is probably where your modules need to be. Either that or recompile the kernel with "y" instead of "m".
 
Old 04-30-2011, 01:38 AM   #9
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
What should I do exaclty?
 
Old 04-30-2011, 12:14 PM   #10
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by mahmoodn View Post
What should I do exaclty?
Based on the documentation I'd guess that your NFS share should have the modules in it. After the kernel is booted via PXE, it should NFS mount the rest. See what's mounted and why the modules are not in the mounted directories on the root node.

The documentation is long on building the kernel and short on setting up the rest of the system.
 
Old 04-30-2011, 12:19 PM   #11
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Original Poster
Rep: Reputation: 16
I am not using Kerrighed. I used that document to setup a diskless cluster.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't initialize iptables table `filter': Table does not exist... sodek Linux - Software 4 04-24-2019 04:20 AM
iptables can't initialize iptables table `filter': Bad file descriptor donalbane Linux - Networking 2 08-17-2011 08:36 AM
iptables: can't initialize iptables table `NAT' linuxgentoo Linux - Kernel 3 01-17-2010 10:15 AM
iptables v1.3.8: can't initialize iptables table `filter' sebastien.lorandel Linux - Networking 11 09-22-2007 06:34 AM
iptables not working... can't initialize 'filter' PennyroyalFrog Linux - Newbie 2 11-24-2004 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:25 AM.

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