Install OPNsense Firewall and Router in VirtualBox

  1. Download OPNSense Download
  2. Extract the downloaded .bz2 file
  3. Launch Virtualbox
  4. Create a New VM by selecting Machine > New

    Name: OPNSense
    Machine Folder: C:\VMs
    Type: BSD
    Version: FreeBSD (64-bit)
    Memory Size: 1024 MB
    Hard disk: Create a virtual hard disk now

  5. Click Create
  6. On the Create Virtual Hard Disk dialog

    Name the virtual disk image OPNSense.vdi
    File size: 8 GB
    Hard disk file type: VDI
    Storage on physical hard disk: Dynamically Allocated

  7. Click Create
  8. Select the VM and Click Settings
  9. Select Display
  10. Slide the Video Memory to 128 MB
  11. Select Storage
  12. Click on the CD-ROM drive
  13. Select the disc dropdown to the right > Choose a virtual optical disc file...
  14. Browse to and select the downloaded OPNSense .iso file
  15. Click OK
  16. Select Network
  17. Set the attached to dropdown to Bridged Adapter
  18. Click the Adapter 2 tab
  19. Check the Enable Network Adapter and set the attached to dropdown to Bridged Adapter
  20. Click OK
  21. Make sure the OPNSense VM is selected and click Start > Normal
  22. Wait for the login prompt to display
  23. Login with the username installer and password opnsense
  24. Press Enter at the Welcome screen
  25. If needed, change the keymap and/or video font then select Accept these Settings > Press Enter
  26. Select Guided installation > Press Enter
  27. Press Enter to use the ada0 hard disk
  28. Select GPT/UEFI mode > Press Enter
  29. Wait for OPNSense to copy files and install
  30. Type and re-type a new root password > Select Accept and Set Password > Press Enter
  31. Select Reboot > Press Enter
  32. From the VirtualBox menu select Devices > Optical Drives > Remove disk from virtual drive
  33. Reset the VM by selecting Machine > Reset from the VirtualBox menu
  34. Welcome to the OPNSense terminal

Configuring Network Interfaces and Web UI

  1. At the login prompt, login with username root and the root password set earlier
  2. At the OPNSense menu, select Set interface IP address by typing 2 and pressing Enter
  3. Enter the number that corresponds to the LAN interface > Press Enter
  4. At the DHCP prompt type n > Press Enter
  5. Enter a LAN IP address on the same subnet as your LAN
  6. At the bit count prompt type 24 > Press Enter
  7. Leave the IPv4 upstream gateway blank press Enter
  8. At the IPv6 WAN tracking type n > Press Enter
  9. At the IPv6 DHCP prompt type n > Press Enter
  10. Leave the IPv6 address blank and press Enter
  11. At the DHCP server prompt type n > Press Enter
  12. At the revert to HTTP prompt type y > Press Enter
  13. The http address of the OPNSense Web UI will be displayed
  14. Minimize the OPNSense VM and open a web browser
  15. Navigate to the web UI http address
  16. Log into the web UI with the username root and the root password set earlier
  17. Enjoy exploring OPNSense