LinuxQuestions.org
Review your favorite Linux distribution.
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 09-20-2002, 10:29 AM   #1
DonMiner
Member
 
Registered: Sep 2002
Location: Maryland USA
Distribution: Fedora Core
Posts: 33

Rep: Reputation: 15
IP tables problem


im having all these iptable errors, i dont know what the hell is going on. I'm trying to set up a home network that gets internet from my linux machine. My linux machine has 2 network cards, eth0 recieving internet and eth1 going to a switch/hub that my other computer(s) are hooked into. My computers can ping eachother over the network just fine. I was trying to use firestarter to share internet but i get all these iptable errors.

some of the important statements it says are: insmod errors can be caused by incorrect module parameters, including inva lid IR or IRQ parameters

iptables v1.2.4: can't initialize iptable `filter': iptables who? (do you need to insmod?)

Perhaps iptables or your kernal needs to be upgraded.

btw, i am using kernel 2.4.9

i'm guessing the problem is with iptables, in which case i should upgrade/reinstall it or is something else the problem? What should i do?
 
Old 09-20-2002, 11:32 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
did you include the filter module in your kernel build?
 
Old 09-20-2002, 01:19 PM   #3
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
sometimes when you're starting a firewall script for the first time since your last reboot, you'll get errors like that. i always receive a similar error on my firewall after a reboot.

i wrote the script myself, and what it does is it attempts to flush all the rules/chains that even itself has created. and if the script hasn't created them yet (it's being executed for the first time) then it will return an error.

if your firewall itself is working, then i wouldn't worry too much about it. you could also try removing the 'filter' chain/rule from your script, see what that does.
 
Old 09-20-2002, 03:35 PM   #4
DonMiner
Member
 
Registered: Sep 2002
Location: Maryland USA
Distribution: Fedora Core
Posts: 33

Original Poster
Rep: Reputation: 15
eth1 gives me iptable errors with filter etc when i boot also, but not to eth0... Now i think this could be because of 2 things, eth0 doesnt use whatever filter is and eth1 does & filter is messed up OR filter isn't configured correctly with eth1 but correctly with eth0...

If it is a configuration problem what is the name of the config file(s) for eth0/eth1 so i can fix this?

If Filter is messed up how do i fix it, or if it is missing how do i put it in?

If filter is not needed how do i take it out?

sorry for being so newbie, im trying!


just to reinstate my task, i am trying to share internet to my other computers on the network internet -> eth0 -> eth1 -> switch/hub -> computers
 
Old 09-20-2002, 04:08 PM   #5
DonMiner
Member
 
Registered: Sep 2002
Location: Maryland USA
Distribution: Fedora Core
Posts: 33

Original Poster
Rep: Reputation: 15
my newbieness is starting to show more!

i just booted with interactive setup and Eth1 was NOT causing the iptable errors, it was firestarter which i am trying to get to share my internet. so now i at least know its nothing wrong with my cards but its something wrong with firestarter or filter (which is obviously messed up)... I am guessing it is a problem with filter.

How do i add it? (or maybe how do i make it so no error messages appear?
 
Old 09-20-2002, 04:16 PM   #6
DonMiner
Member
 
Registered: Sep 2002
Location: Maryland USA
Distribution: Fedora Core
Posts: 33

Original Poster
Rep: Reputation: 15
It seems like just posting here makes me think about new things & i think i know what the problem is. The firestarter script is trying to do:

/lib/modules/2.4.9-34/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/

and then it says

2.4.9-34/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed

it does this like 15 times, this is just an examplke of one of the errors

There must be somehting wrong with ip_tables.o
 
Old 09-22-2002, 10:10 AM   #7
irfanasim
LQ Newbie
 
Registered: Sep 2002
Posts: 10

Rep: Reputation: 0
hi DonMiner

By default kernel 2.4 comes loaded with ipchains module . And ipchains and iptables cant work together . U must unload ipchains module first . U can check that with lsmod command . It will show u all loaded modules. Now to unload this module , follow these steps :

chkconfig --level 0123456 ipchains off
service ipchains off

then , to load iptables

chkconfig --level 235 iptables on
service iptables start

now u can check with lsmod to see iptables is loaded .
now u can make your iptables rule according to your requirements. U wont get the above errors u mentioned.
i would recommend you to go through www.iptables.org for more guidance and tutorials on iptables.

Good Luck

Irfan Asim
 
Old 07-30-2003, 09:20 AM   #8
soltrain
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
Hey thanks a lot man - I had the same problem - using RH 7.3 and had no idea ipchains was installed and iptables was not. Followed your directions to start the service and it worked well. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem concerning Latex-tables Philippe77 Linux - Software 0 11-28-2005 09:12 AM
ip tables problem berrance Linux - Networking 1 03-11-2005 01:56 PM
Newbie IP tables problem benbroad Linux - Security 7 11-29-2004 02:21 PM
Possible IP tables problem? jstreed Debian 3 11-02-2004 11:19 AM
ip-tables problem bhagat_panwar Linux - Security 2 08-27-2003 09:29 PM

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

All times are GMT -5. The time now is 04:10 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