Does anyone know how to debug Routing Policy Database (RPDB)?

Does anyone know how to debug Routing Policy Database (RPDB)?

Post by Treke » Wed, 14 May 2008 17:44:49



Hi all

I was trying to setup some policy routing on my Linux by using "ip
rule", i am wondering if there is a way to debug the Routing Policy
Database (RPDB) ?, For example some counter or logs to show  which
rule was matched?

Regards
Treker

 
 
 

Does anyone know how to debug Routing Policy Database (RPDB)?

Post by wang.wennyw.. » Fri, 16 May 2008 05:59:56



Quote:> Hi all

> I was trying to setup some policy routing on my Linux by using "ip
> rule", i am wondering if there is a way to debug the Routing Policy
> Database (RPDB) ?, For example some counter or logs to show  which
> rule was matched?

> Regards
> Treker

you can try this command:

route -Ceen

 
 
 

Does anyone know how to debug Routing Policy Database (RPDB)?

Post by Treke » Sun, 18 May 2008 17:05:35


HI

Thanks for the help, it's not exactly what i want, but i think it help
a little bit.

For example. if there is a way can make the output of "ip rule" as the
following thing.

XXX YYY 0:      from all lookup local
XXX YYY 32764:  from all to 5.6.7.8 lookup 1
XXX YYY 32765:  from all to 1.2.3.4 lookup 1
XXX YYY 32766:  from all lookup main
XXX YYY 32767:  from all lookup default

where XXX maybe is the packet count, YYY is the byte counts of that
rule.
like what we have in iptables
============================================================
Chain POSTROUTING (policy ACCEPT 2367 packets, 273K bytes)
 pkts bytes target     prot opt in     out     source
destination
    0     0 MASQUERADE  all  --  *      tun0    192.168.1.0/24
0.0.0.0/0
    6   300 MASQUERADE  all  --  *      ppp0    192.168.1.0/24
0.0.0.0/0
============================================================

then you may easily know which rule come wrong. comments?

Treker




> > Hi all

> > I was trying to setup some policy routing on my Linux by using "ip
> >rule", i am wondering if there is a way to debug the Routing Policy
> > Database (RPDB) ?, For example some counter or logs to show  which
> >rulewas matched?

> > Regards
> > Treker

> you can try this command:

> route -Ceen

 
 
 

1. Does anyone know how to debug multi-process programs using dbx?

I'm using dbx for solaris 2.5. I've trying dbx command "lwp" and "lwps"
but got the message "lwp(s) is not available".

Thanks in advance,

--
                        ("`-''-/").___..--''"`-._
                         `6_ 6  )   `-.  (     ).`-.__.`)
                         (_Y_.)'  ._   )  `._ `. ``-..-'
 Sean Liu              _..`--'_..-_/  /--'_.' ,'

--------------------------------------------------------
 "It takes both the sun and the rain to make a rainbow."
--------------------------------------------------------

2. dump screen on a vt-100 terminal?

3. anyone knows Infoflex's database

4. Epson Color Stylus

5. Anyone know good database front-end

6. foo

7. Anyone doing database engine project under Linux ?

8. desc.c version 0.61 -- dump i386 CPU descriptor tables

9. policy routing (routing based on source IP)

10. Source Routing/Policy Routing

11. Does anyone know anything about LOCUS' DOS MERGE running on Linux

12. advanced routing question (squid/policy based routing)

13. Anyone know an app that's capable of doing this?