After my lack of success with FREESCO, I am still on the hunt for a decent lightweight router to run in ESXi to simulate a branch office scenario for my lab. I looked at IPCop which looks like it would do the job, but it was 61MB. Similarly PFSense looks very good, but not at over 100MB. I then started my search again and I don’t know how I missed it – m0n0wall, 9MB. This is much more like it:
Download the image generic-pc-vm from here
Copy to your datastore and register the VM. I had to remove the included NICs and add my own. As my goal is to route between 2 subnets, add 3 NICs (host only, or whatever, depending on what you are trying to achieve).
Boot the VM and in the console you need to go through the menu to designate your NICs. You need a WAN interface, so I designated them as follows:
Type | NIC | ESXi NIC Type |
---|---|---|
LAN | em1 | VM Network - used for management |
WAN | em0 | Host Only |
OPT1 | em2 | Host Only |
OPT2 | em3 | Host Only |
You can do this by going through option 1 on the menu and setting VLANs if appropriate, or just press enter and it will skip to NIC designation.
Then you need to set an IP address on your LAN interface, so choose option 2 and set an IP address you can reach from your LAN, then you can http://x.x.x.x to the IP address and login with ‘admin’ and ‘mono’