I have created four VMs with Virtual box, which play the following roles:
1 ubuntu server, which acts as a firewall1 ubuntu server acting as a web server1 windows server for active directory1 windows 11I've configured 3 VM interfaces as "internal network" on Virtual Box (each in its own subnet). I want the windows VM to be able to connect to the Internet via the 4th firewall interface, which must be connected to the router.
How do I configure this interface on Netplan et sur VirtualBox (which type to choose : NAT, NAT network, ...)?
Here's my current firewall VM interface configuration:
network: version: 2 renderer: NetworkManager ethernets: # connected to windows vm eth0: addresses: [192.168.101.254/28] routes: - to: 192.168.102.240 via: 192.168.102.254 - to: 192.168.103.240 via: 192.168.103.254 nameservers: addresses: [8.8.8.8, 8.8.4.4] dhcp4: false dhcp6: false eth1: addresses: [192.168.102.254/28] routes: - to: 192.168.101.240 via: 192.168.101.254 - to: 192.168.103.240 via: 192.168.103.254 nameservers: addresses: [8.8.8.8, 8.8.4.4] dhcp4: false dhcp6: false eth2: addresses: [192.168.103.254/28] routes: - to: 192.168.101.240 via: 192.168.101.254 - to: 192.168.102.240 via: 192.168.102.254 nameservers: addresses: [8.8.8.8, 8.8.4.4] dhcp4: false dhcp6: false # to be connected to router eth3: