R3 (AS 300) buys transit from R2 (AS 200) but wants only the routes of AS 100 behind it, not AS 200’s own networks. An AS_PATH filter with a regular expression picks routes by where they came from. R1 then lengthens its own path with AS-path prepending, as a site does to make a link less attractive.
The simulator ticks each one as soon as the network meets it.
On R3, create ip as-path-filter FROM100 permit _100$ (an AS_PATH that ends in 100: the route was originated in AS 100).
On R3, build route-policy ISP-IN permit node 10 with if-match as-path-filter FROM100, and apply it to peer 10.0.23.2 import.
R3 now has 10.1.1.0/24 and 10.1.2.0/24 but not 10.2.2.0/24.
On R1, prepend AS 100 twice toward R2: route-policy PREPEND permit node 10 with apply as-path 100 100 additive, applied export. R3 sees 200 100 100 100 and still accepts the route.