iproute2 rules not being followed !!!!!!!

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi...

I have installed ip route 2 package on Linux kernel 2.4.25

I am using 2 tables:

###################################

ebox:100.254~# ip route list table ALTER
default via 192.168.100.253 dev br0

ebox:100.254~# ip route list table main
10.0.0.254 dev ppp0  proto kernel  scope link  src 10.0.0.1
192.168.100.0/24 dev br0  proto kernel  scope link  src 192.168.100.254
192.168.100.0/24 dev eth1  proto kernel  scope link  src 192.168.100.233
192.168.200.0/24 dev eth2  proto kernel  scope link  src 192.168.200.254
127.0.0.0/8 dev lo  scope link
default via 10.0.0.254 dev ppp0



#####################################


Now I set up the rules :

#####################################

ebox:100.254~# ip rule list
0:      from all lookup local
7:      from 216.239.59.147 lookup main
8:      from 202.141.80.6 lookup ALTER
32739:  from 202.141.80.6 lookup ALTER
32740:  from 66.102.11.99 lookup ALTER
32741:  from 66.102.11.104 lookup main
32742:  from 64.73.37.225 lookup main
32743:  from 216.239.59.103 lookup main
32744:  from 210.43.44.8 lookup main
32745:  from 64.233.183.19 lookup main
32746:  from 64.233.183.83 lookup ALTER
32747:  from 64.233.183.106 lookup ALTER
32748:  from 210.157.158.37 lookup ALTER
32749:  from 66.249.87.99 lookup main
32752:  from 213.244.168.210 lookup main
32753:  from 66.197.129.37 lookup ALTER
32754:  from 82.102.4.72 lookup ALTER
32755:  from 216.73.82.14 lookup ALTER
32756:  from 216.73.82.70 lookup ALTER
32757:  from 216.74.132.11 lookup main
32758:  from 216.109.117.205 lookup ALTER
32759:  from 202.138.124.172 lookup main
32760:  from 216.109.127.16 lookup main
32761:  from 209.244.156.19 lookup ALTER
32762:  from 68.142.228.136 lookup ALTER
32763:  from 82.102.4.57 lookup ALTER
32765:  from 216.109.118.65 lookup main
32766:  from all lookup main
32767:  from all lookup default


#####################################


But when I try to trace the route of a packet with destination address
such that according to ip rule table ALTER should be considered ...
its not following the rule...  its always following table Main...

#####################################

ebox:100.254~# tcptraceroute -n 202.141.80.6
Selected device ppp0, address 10.0.0.1, port 40113 for outgoing packets
Tracing the path to 202.141.80.6 on TCP port 80 (http), 30 hops max
 1  10.0.0.254  0.333 ms  0.212 ms  0.210 ms
 2  202.141.80.6 [open]  0.589 ms  0.591 ms  0.588 ms


######################################



I would appreciate if I can get any help on why this is not working .!!!!

Thanks.

Regards 
Shantanu
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux