Install OPNsense Firewall and Router in VirtualBox
#OPNSense #VirtualMachine #VirtualBox
Full steps can be found at https://i12bretro.github.io/tutorials/0236.html
01. Download OPNSense https://opnsense.org/download/
02. Extract the downloaded .bz2 file
03. Launch Virtualbox
04. 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
05. Click Create
06. 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
07. Click Create
08. Select the VM and Click Settings
09. 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
--------------------------------------------------------------------
01. At the login prompt, login with username root and the root password set earlier
02. At the OPNSense menu, select Set interface IP address by typing 2 and pressing Enter
03. Enter the number that corresponds to the LAN interface ≫ Press Enter
04. At the DHCP prompt type n ≫ Press Enter
05. Enter a LAN IP address on the same subnet as your LAN
06. At the bit count prompt type 24 ≫ Press Enter
07. Leave the IPv4 upstream gateway blank press Enter
08. At the IPv6 WAN tracking type n ≫ Press Enter
09. 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
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro