Jump to content
Guest Four20

iptables - bad rule

Recommended Posts

Guest Four20

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest Four20

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

you can also try using redhat-config-network.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...