route table problem

gcypher

Verified User
Joined
Jun 28, 2005
Messages
173
Location
The Netherlands
Hi there,

I am having an issue with 3 lines when doing route -n

this is the output i get:

[root@fast-xs apf]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
82.192.81.40 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
80.24.64.18 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
80.24.64.18 - 255.255.255.255 !H 0 - 0 -
210.187.84.14 - 255.255.255.255 !H 0 - 0 -
82.192.81.37 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
82.192.81.36 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
82.192.81.39 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
82.192.81.38 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
82.192.81.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 82.192.81.64 0.0.0.0 UG 0 0 0 eth0


The thing is i tried to remove these 3 lines:

80.24.64.18 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
80.24.64.18 - 255.255.255.255 !H 0 - 0 -
210.187.84.14 - 255.255.255.255 !H 0 - 0 -


this one i can delete with the usual route del -net ip netmask 255... gw 0.0.0.0

My problem is i cannot or seem not to be able to remove this 2 lines ..

80.24.64.18 - 255.255.255.255 !H 0 - 0 -
210.187.84.14 - 255.255.255.255 !H 0 - 0 -


which if you look well they have no gateway assigned ... which i think may be the problem ... i hope anyone can help me here :confused:


i rly dont know what to do anymore .. as you see i added
80.24.64.18 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
so it would take precedence over the faulty line
80.24.64.18 - 255.255.255.255 !H 0 - 0 -

so it would work for that ip ... if not its impossible to connect to the server using that ip.. (its my home ip) so thats how i find out i couldnt connect no more
 
Can you restart the network? Does that help? Before you do that, did you make sure your network scripts will restart the network properly so you won't have to drive down to the data center?

:)

Jeff
 
Hi thanks for the reply,

i did as u advised me and it did help .. a bit.

obviously theres less entry in the route table but not all where removed.

[root@fast-xs ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
18.red-80-24-64 - 255.255.255.255 !H 0 - 0 -
210.187.84.14 - 255.255.255.255 !H 0 - 0 -
82.192.81.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 82.192.81.64 0.0.0.0 UG 0 0 0 eth0


as you see these lines are still present
210.187.84.14 - 255.255.255.255 !H 0 - 0 -
18.red-80-24-64 - 255.255.255.255 !H 0 - 0 -

The !H flag tells that those ips are rejected in te route table .. somehow they came into there

any other things i can try do to ?

thanks in advance
 
I should have been more specific ...

Try first just restarting the network and not running the startips script.

If you still see the bad stuff, then check the system-specific network files. If you don't see the bad stuff until after you run the startips script, then the problem is incorrect IP#s in the DA startips routine.

Look at the /usr/directadmin/scripts/startips (I think that's the name of it) file to see where DA get's its list of IP#s.

Jeff
 
the solution was:

route del -net [host] gw 255.255.255.255 reject

on all the commands i tried i forgot to put reject behind it.
Now its solved and i removed the malicious entries from the route table
 
Back
Top