There are some several escenarios for your approach:
1) You can use a firewall like Pfsense/Opnsense to connect it directly to your wan connection of any way (ppoE, DHCP, etc) for this you need to know what is the method for doing this. After that, you have a Virtual Machine (VM) with 2...