The rest of this will be done via SSH or via the
phpVirtualBox interface. One of the ISOs I transferred was the latest version of the OPNsense router at the time this was written (version
20.1). This will be the installation medium for this virtual router.
I click New in the
phpVirtualBox dashboard to create a new VM. Since OPNsense is based on FreeBSD, I tell VirtualBox that it’s a FreeBSD installation. Here are my selections:
OPNsense 20.1 x64 (CORE ROUTER)
After the VM is created, select it, then click Settings and configure it as follows:
OPNsenseISO for the CD drive.
080027F57BD6(Refresh if there’s not one there.)
Bridged Adapter: enp2s0f0
080027CB28AF(Refresh if there’s not one there.)
Bridged Adapter: enp2s0f1
080027DB67CA(Refresh if there’s not one there.)
Host-only Adapter: vboxnet0
080027DB61EA(Refresh if there’s not one there.)
Once the system has been configured, click the Snapshots button and save a new snapshot called “Pre-Install.” Then return to the details page, and start the VM. To control the VM, you’ll need to use an RDP client such as
Here’s how to connect:
Display, check on which port the RDP server is listening, then use SSH port-forwarding to make the port available:
ssh -L 9000:127.0.0.1:9000 haxys@[HAL9K IP]
With this complete, you can click the port number to connect to the RDP service.
The system will take a minute to boot, as it does a lot of auto-configuration from the start. When prompted for a login and password, use the following credentials:
opnsensefor the demo.)
Once this is done, it’ll try to reboot. Hit
Ctrl-C to stop the reboot, return to the menu, and exit. We don’t want the system to reboot with the ISO still connected, so let’s remove it. Return to
phpVirtualBox and power off the machine. Then open its settings and remove the ISO from the virtual disk drive. Then make a snapshot called “Installed, not configured.” That way, if we mess up in the configuration phase, we can start over from a fresh install.