You would need to make sure that your upstream supports RTBH, otherwise, it doesn't do any good. They should provide you with a community to use for this, where you would advertise specific prefixes (usually a /32 host route) to them, with this community attached to it, and their routers set the next-hop to something like 'discard' or 'null0'.
For instance, if your provider gives you community string 111:2222 for RTBH routes, you would simply make a policy like this:
policy-statement RTBH-OUT {
term rtbh {
from {
route-filter 22.22.24.15/32 exact;
route-filter 33.33.36.54/32 exact;
}
}
then {
community add RTBH-comm;
accept;
}
}
}
community RTBH-comm members 111:2222;
Apply this policy as the first 'export' policy on your upstream neighbor. Of course, you need to make sure that BGP has the /32 prefix in its routing table, so one way to do that would be to add a static route in your edge router for that IP:
set routing-options static route 22.22.24.15/32 next-hop discard
set routing-options static route 33.33.36.54/32 next-hop discard
Again, this all depends on whether your upstream provider even supports RTBH.
EDIT: Sorry, my logic was backwards - fixed above.