LinuxQuestions.org
Visit Jeremy's Blog.
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 01-21-2011, 11:50 AM   #1
donalbane
LQ Newbie
 
Registered: Jan 2011
Location: Austin, TX
Posts: 29

Rep: Reputation: 2
iptables can't initialize iptables table `filter': Bad file descriptor


I am running a 2.6.21 kernel on an ARM architecture with iptables version 1.3.6. Iptables support is compiled into the kernel as modules:

ts7000:~# lsmod | grep iptable
iptable_filter 2368 0
ip_tables 10952 1 iptable_filter

When I try to use iptables I get an error:

ts7000:~# iptables -L
iptables v1.3.6: can't initialize iptables table `filter': Bad file
descriptor
Perhaps iptables or your kernel needs to be upgraded.

This is the first time I have used iptables. Is there something else that needs to be done before I can run the above command?

I am constrained to use the kernel (although I can reconfigure it and rebuild it), as it was custom-configured for my platform, but I tried to manually build and install version 1.4.9.1 of iptables and received the same error. I also read that the "Bad file descriptor" error can sometimes mean file system corruption, so I ran fsck on the file system and it is clean.

If anyone can suggest things to try to resolve this problem, I'd be very grateful.

Thanks,
Don
 
Old 01-21-2011, 04:09 PM   #2
donalbane
LQ Newbie
 
Registered: Jan 2011
Location: Austin, TX
Posts: 29

Original Poster
Rep: Reputation: 2
getsockopt failed strangely: invalid argument

As an update, someone suggested that there might be an issue with EABI vs. OABI on the ARM platform, so I reconfigured iptables with --enable-static and --disable-dynamic, since I think that there is not an issue as long as iptables doesn't try to build linking to the EABI-built kernel libraries. After rebuilding, I tried to run "iptables -L" again and this time received a different error:

"getsockopt failed strangely: invalid argument"

As before, if anyone has any suggestions on how I might resolve this error to get iptables working, I'd be very appreciative.

Thanks,
Don
 
Old 08-17-2011, 08:36 AM   #3
youngqq
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by donalbane View Post
As an update, someone suggested that there might be an issue with EABI vs. OABI on the ARM platform, so I reconfigured iptables with --enable-static and --disable-dynamic, since I think that there is not an issue as long as iptables doesn't try to build linking to the EABI-built kernel libraries. After rebuilding, I tried to run "iptables -L" again and this time received a different error:

"getsockopt failed strangely: invalid argument"

As before, if anyone has any suggestions on how I might resolve this error to get iptables working, I'd be very appreciative.

Thanks,
Don
Hi,

I have met the same problem, would you please let me know if you have solution finally?

Thanks!
 
  


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 `NAT' linuxgentoo Linux - Kernel 3 01-17-2010 10:15 AM
iptables-restore: unable to initialize table 'nat' R03L Fedora 1 10-26-2008 02:19 PM
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 09:31 PM.

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