Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just recently had to re-install linux (today), and I was trying to go ahead and set up my custom firewall rules using iptables but i run into a problem, here is what i get:
[root@decatur robert]# /sbin/iptables -P INPUT DROP
/lib/modules/2.4.18-27.7.x/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.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.18-27.7.x/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.18-27.7.x/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.18-27.7.x/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed
iptables v1.2.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
[root@decatur robert]#
i have no clue what's wrong, this is off a fresh install of RedHat 7.3 plus any upgrades from RHN that i downloaded, iptables is installed and running because if i just type the iptables command i get this:
[root@decatur robert]# /sbin/iptables
iptables v1.2.5: no command specified
Try `iptables -h' or 'iptables --help' for more information.
[root@decatur robert]#
but it's when i try to add a rule or change a policy that i get the error message.
i see ipchains but not iptables, i tried loading iptables via insmod, this is what i did:
[root@decatur log]# /sbin/insmod /lib/modules/2.4.18-27.7.x/kernel/net/ipv4/netfilter/ip_tables.o
/lib/modules/2.4.18-27.7.x/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.
You may find more information in syslog or the output from dmesg
why would it give me "Device or resource busy", i turned off ipchains and ip6tables and restarted iptables but i still get the same errors.
is ipchains as good as iptables? if i cant get iptables to work, and ipchains is just as good, then i guess i'll go with ipchains, but i really want iptables.
Last edited by Robert0380; 05-12-2003 at 12:04 AM.
[root@decatur robert]# /sbin/service ipchains stop
Flushing all chains: [ OK ]
Removing user defined chains: [ OK ]
Resetting built-in chains to the default ACCEPT policy: [ OK ]
[root@decatur robert]# rpm -q iptables
iptables-1.2.5-3
yea it's there, Red Hat 7.3
note: iptables was working fine before, but i had to reformat the drive and re-install everything, iptables was installed by default just like last time, but im getting these crazy errors this time around. im about to try using the older kernel just to see if that makes a difference, i'll let you know after i reboot and come back.
well what-do-you-know, iptables works fine with my older kernel (the one that comes with rh 7.3) but not with the latest kernel. Any ideas on what the problem could be? I'm not good with kernel issues by any means.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.