Parallels Desktop has been a solid virtualization option for my iMac. It enables easy sharing of folders and other advanced options I felt would be useful, i.e. seamless Windows programs. For my latest adventure I wanted to test out some Linux firewall configurations without messing around with my physical environment. So, I did the following to create a network where the linux firewall can serve both as a gateway and DHCP server.
Create the virtual network
- Open up Parallels Desktop Preferences
- Go to Network tab
- First take note of the IP address of the Shared network (for configuring your linux firewall)
- Then click the plus to create a new “Host-Only” network
- Uncheck “Connect Mac to this network”
- Uncheck “Enable IPv4 DHCP”
- Uncheck “Enable IPv6 DHCP”
FYI: The IP addresses shown will not be used because the linux firewall will respond to DHCP requests.
Configure the linux firewall
Set up two network interfaces on the VM before installing your favorite linux firewall, i.e. pfSense, Untangle, CentOS, or Sophos UTM.
- Open the configuration for your new VM
- Go to Hardware tab
- Configure Network 1 to have a source of “Default Adapter.” That network will have a connection regardless of whether your iMac connects via wireless or wired.
- Create a new network interface
- Select the “Host-Only #2” network we created in the prior section
Make a note of the MAC address for this network for when you configure your firewall - Now boot and install your linux firewall
Nice. I was looking for this solution.
I managed to install pfSense with two network adapters under Parallels.
Now, how can I plug the VMs managed by Paralles to pfSense VM?
Thanks