Using a vps as a router?
Hello, since I have a shitton of NAT server and a couple of cheap dedicated servers I'd like to protect from DDoS, I was thinking about using a vps as a router.
The idea is to get a small kvm vps with "unmetered" bandwidth, and install some sort of firewall/router os in it. The NAT and dedi servers would then connect to that server, and effectively create their own VPN. I guess I'd be able to use port routing to publish the services I need, while masking the IPs of the real servers and also providing my neat little private network.
Ideally every server would have a virtual nic with an internal ip address of the vpn, along the real one providing Internet access.
However, I'm not sure if this is a good idea and if I should even do it. I was able to find WireGuard, but I don't know how to set it up and before wasting time on doing something that will never work, I figured I'd ask somewhere where people actually do stuff like this every day.
What do you think? Is it a good idea or just a waste of time? How would I go doing something like that?