Bgp filter for vpnv4 routes?

Hi
I have a situation where I have am receiving vpn4 routes for L3vpns on MPLS, and I want to only permit certain prefixes in… don’t care about the RD.

So far I’ve tried matching on bgp protocol + vpn4… but nothing seems to hit it.

It seems to be possible to control… adding a drop in stops everything I just need to permit basically 0.0.0.0/0 in on all the RDs.

Any ideas?
Sean

Add in/out filter chain in BGP VRF instance configuration and then on those chains you will be able to match by prefix.

Can I match on RD also?

Unfortunately no, you can match only RT.