BGP filter based in address-list?

Hello,

I have a address-list with my country IPs (based on this http://blog.erben.sk/2014/02/06/country-cidr-ip-ranges/)
I have 2 BGP upstreams.
I want use one of the upstreams for users from my country and the other upstream for international visitors.
It’s possible?

Thanks!

You could try (maybe with a script) to add the prefixes to a routing filter.

Or filter by AS?
I have a list of all AS numbers of my country.
Can you let me to know a example of a filter?
Thanks!

In Version 7 we should be able to do this.

And also have “Add to Address List” as a filter option.

I have 2 peers (Peer1 and Peer2)
I’ve do this to force the incoming connection from AS22222 route via the Peer2.

/routing filter
add action=accept chain=Peer1-IN prefix=0.0.0.0/0 
add action=discard chain=Peer1-OUT bgp-as-path=22222
add action=accept chain=Peer1-OUT prefix=1.2.3.0/24 
add action=discard chain=Peer1-OUT 
add action=accept chain=Peer2-IN prefix=0.0.0.0/0
add action=accept chain=Peer2-OUT prefix=1.2.3.0/24
add action=discard chain=Peer2-OUT

But not run…

The AS22222 is my Internet connection and when I trace the network 1.2.3.0/24 I’m still routed via the Peer1 :frowning:

Any idea?

Thanks!!