Redirecting traffic from a specific VLAN through a WireGuard connection to the Internet

Hi,

I have a RB5009 router and have configured 3 VLANs (10, 20, 30). In a public cloud, I want to run Ubuntu (or maybe ROS7) and establish a connection (Wireguard) with the RB5009. The goal is to have network traffic from devices on VLAN30 go out to the internet through the server in the public cloud. Has anyone done such a configuration?

Yes but using CHR (RoS) in the cloud. There is no reason why it should not work as long as the wireguard is setup properly