How to create a VPN-Gateway?

Hello, I would like to do the same as the whonix gateway, but only with a Wireguard VPN (UDP connection), I would like to create a VM-VPN-Gateway and connect other workstations to it with Kill-Switch VPN.

Or modify the whonix Gateway to make the Wireguard VPN work with or without TOR.

Do you have any idea how I could do this? (I use virtualbox)

is the question too difficult?

I can say with certainty: Too difficult.

If we can do this with tor, it should work with a VPN too.

  • In theory: yes.
  • In practice: very difficult. Asking in forums will very most likely not lead to someone providing instructions how to do that.