Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to use m0n0wall inside a (VirtualBox) VM to play about with and see what it can do. Ultimately the goal is to have a number of virtual machines connected to a internal virtual network which goes through to the m0n0wall VM, and then the m0n0wall box connected to the internet through NAT or a bridged addaptor on my host machine. I can find out how to set the LAN and WAN addresses, but this seems to be only for using m0n0wall as a router intead of attached to another router.

Let's see if I can diagram this:
[Virtual Machine]->->-Internal (VM Only) Network ->->-[m0n0wall VM]->->-Bridged/NAT Addaptor->->-["real" router]->->-Internet.

Can anybody suggest how I should do this or am I thinking m0n0wall isn't meant to be used like this?

share|improve this question
up vote 1 down vote accepted

I think your setup seems fine. You'll want to do is create a host-only network within Virtualbox and assign all your VMs to that network. Then, the m0n0wall VM should have two virtual NICs, one attached to the host only network and the second a bridged adapter.

Using this setup, make sure the m0n0wall VM knows which NIC is which. Then, it should start a DHCP server on the virtual network, assigning IPs to the VMs and setting itself as their router. You're good to go.

See the VirtualBox manual for more information. Specifically:

To change a virtual machine's virtual network interface to "host only" mode:

either go to the "Network" page in the virtual machine's settings notebook in the graphical user interface and select "Host-only networking", or on the command line, type

VBoxManage modifyvm "VM name" --nic<x> hostonly;

see the section called “VBoxManage modifyvm” for details.

share|improve this answer
Finally got around to try this out and mark as accepted. Congrats on 2k, Josh. – tombull89 Apr 26 '11 at 22:14
Thanks @tombull89! I was there before but offered a massive bounty. It's nice to be back! – Josh Apr 26 '11 at 22:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.