Linux-Noob Forums

Full Version: iptables - bad rule
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Guest


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.


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

Guest


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


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

you can also try using redhat-config-network.

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!


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


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