Upstream must route through other ASN

I have a network scrubber on an ASN that my upstream peers with. I am on RouterOS7 and I am trying to force the paths to go through that ASN.

How do I accomplish this? I am trying rules like this:

filtered-out
if (dst in ::/0) { set bgp-communities xxx:1001; accept; }

uplink-in
if (dst in myprefix/24) { if(bgp-as-path .xxx.) { accept; } else { reject; } }

I’ve briefly managed to get routing how I want it, and I don’t know what I did to accomplish it. Right now, my IPs don’t route at all.

Careful here, anybody who might normally offer help. I strongly suspect (based on certain specific details) that the OP is the admin of the notorious kiwifarms doxxing site trying to bring it back online.

See this link: https://twitter.com/DropKiwifarms/status/1568680754170761216

The capitalization and spacing of “RouterOS7”, the involvement of a /24, the use of a CCR1016-12G (mentioned in their previous post on this forum), and needing to send the traffic through a certain ASN but not knowing how to do it is all an exact match, as is the specific timing of this request. The fact that it briefly started working and then stopped working again is also a commonality.

EDIT: The username “sneed” is apparently from a Simpsons meme that I am told that kiwifarms users are obsessed with.