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