Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
iptables - bad rule
#1

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.

Reply
#2

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

Reply
#3

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

Reply
#4

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

Reply
#5
you can also try using redhat-config-network.
Reply
#6

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!

Reply
#7

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

Reply
#8

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

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)