I used to keep my torrrent server on an old mac mini. I had set up linux on it. It connected automatically to the VPN and it hosted a wireless network. The wireless and the torrents would go only through the VPN thanks to some iptables rules.
I tried to replace the mac mini with a raspberry pi 4 but it didnt work. It seemed that it didn't have enough power for the two usb drives, so it crashed frequently.
(post is archived)