Linux-Noob Forums
iptables - bad rule - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Network Problems (https://www.linux-noob.com/forums/forum-58.html)
+--- Thread: iptables - bad rule (/thread-3697.html)



iptables - bad rule - Guest - 2004-01-23


Ok, i just set up a linux box with my old machine since I built a new one.

 

I set it up and its all running good with internet hooked straight to it.

I go and hook the internet back to my newer machine. hook the two computers together via cross over cat5 cable and start it up.

I get the error

iptables - bad rule - does a matching rule already exist

 

There are 5 lines at the top that end with "accept"

and about 6 at the bottom that say "reject"

 

can anyone help me with this issue. I shared my internet on my windows machine. But the linux box isnt recognizing on the network.

 

any suggestions will be most appriciated.




iptables - bad rule - anyweb - 2004-01-23


if its redhat, try running lokkit and disabling the firewall temporarily

 

does that work ?

 

does the machine get an ip ?

 

(ifconfig as root will tell you)

 

cheers

 

anyweb




iptables - bad rule - Guest - 2004-01-23


doing ifconfig

No ip it gives me 127.0.0.1 with the mask of 255.0.0.0

 

I disabled the firewall, would i have to restart?

if not then no it didnt work




iptables - bad rule - anyweb - 2004-01-23


ok, well try

 

service network start

 

then

 

ifup eth0

 

if that fails then linux isnt seeing your network card properly

 

what network card is it and what version of linux are you using

 

more info please

 

cheers




iptables - bad rule - grep420 - 2004-01-23

you can also try using redhat-config-network.



iptables - bad rule - four20 - 2004-01-23


Thanks anyweb.

It comes to find out it was the firewall that was doing it.

 

it didnt even show up on the firewall that there was an attack.

 

Thanks man you r0ck!




iptables - bad rule - anyweb - 2004-01-23


no worries glad to help

 

please provide more info in future and dont use my msn messenger to talk to me unless its urgent

 

we are all willing to help here :)

 

cheers

 

anyweb




iptables - bad rule - four20 - 2004-01-25


come to find out something happened my linux machine frooze, and now when i try to enable my ethernet connection it pauses, then goes to the sent 3 pings, 0 received.

my firewall on the windows box is still disabled