How to give virtual machine access to the Internet, but block from LAN?
- by Pekka
I am setting up a virtual machine using Microsoft Virtual PC in Windows 7. The VM will run a Windows XP.
I want to set up a public-facing server in it for web pages, subversion and other things, and instruct the router to port forward any requests to that Virtual Machine.
I managed to do that - I assigned the VM to the network adapter, and it is now acting as just another DHCP client - but to increase security I would like to block the VM from the rest of the LAN, so it accepts only incoming connections from the Internet. For this to be effective in case of a compromise, it would have to happen on VM level as far as I can see.
Can this be done?