back when I used ubuntu derivatives I used privoxy and edited the config file to route all my traffic through tor.

I just did the same on debian 12.6 and wonder if there’s a better alternative.