Solved

iptables on redhat 7.1

Posted on 2001-06-05
3
513 Views
Last Modified: 2010-04-20
i'm using redhat 7.1, and i have problem with iptables
everytime i want to use iptables, it always display this error message

/lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters/lib

/lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib......../ip_tables.o failed

iptables 1.2.1a: can't initialize iptables table 'filter': iptables who? (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded

????
0
Comment
Question by:ichen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
ID: 6159371
That sounds like ipchains is loaded, which is the default configuration for RH 7.1. To fix, disable ipchains ("chkconfig --level 2345 ipchains off" or via linuxconf) and reboot. Note that iptables won't actually start at boot time until you create a config file (/etc/sysconfig/iptables), but after the reboot you should be able to do "iptables -L".
0
 
LVL 1

Author Comment

by:ichen
ID: 6162179
what do you mean by config file?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6164046
Well, iptables, like ipcahins, requires a configuation file to tell it what to do. When either are running they default to a filter set that passes everything, something like:

disorder> dwim iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination        

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination        

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination        

You can see that no filtering is occuring because no rules have been specified manually or via a config file. You probably want to look at the HowTo's (http://netfilter.samba.org/unreliable-guides/) for an explanation of what you can do with iptables/NetFilter (i.e., what goes into the config file). And there are various "canned" config files on the Internet, http://mirkk.kurd.nu/~monmotha/firewall/index.php is one example.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
blank screen when trying to setup Unity on Ubuntu 14.04 9 73
SSL/TLS - openssl troubleshooting 3 79
http response code 3 37
cmake and message 1 22
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question