How to Install and Configure OPNsense Firewall 24.1 + VMware Tools on VMware Workstation
Table of Contents
Introduction
This tutorial provides a comprehensive guide to installing and configuring OPNsense Firewall 24.1 on VMware Workstation. It covers the installation process, initial configuration, and the addition of VMware Tools for enhanced performance. Whether you're running OPNsense on a virtual machine or a physical server, this guide is beneficial for setting up your network security solution.
Step 1: Download OPNsense 24.1 ISO
- Visit the OPNsense official website: opnsense.org.
- Navigate to the Downloads section.
- Select the appropriate version (24.1) and download the ISO file.
Step 2: Create a Virtual Machine
- Open VMware Workstation.
- Click on "Create a New Virtual Machine."
- Choose "Typical" for the configuration type, then click "Next."
- Select "Use ISO image" and browse to the downloaded OPNsense ISO file.
- Set the following configurations:
- Guest Operating System: FreeBSD 64-bit
- Virtual Machine Name: OPNsense
- Location: Choose a suitable location for your virtual machine files.
- Allocate resources:
- Processors: At least 1 (2 preferred for better performance)
- Memory: Minimum 2 GB (4 GB recommended)
- Network Type: Select "Bridged" for external access or "NAT" for internal use.
- Choose the disk capacity (20 GB is usually sufficient) and select "Store virtual disk as a single file."
- Complete the wizard and click "Finish."
Step 3: Start OPNsense Installation
- Select your newly created OPNsense VM and click "Power on this virtual machine."
- Wait for the boot process to complete.
- When prompted, select "Install" to start the OPNsense installation.
- Follow the on-screen instructions:
- Choose the default options for most prompts.
- Confirm disk partitioning when asked.
- After installation, reboot the virtual machine.
Step 4: Initial Configuration
- On reboot, access the OPNsense console.
- Follow the setup wizard:
- Set the hostname and domain.
- Configure the network interfaces (WAN and LAN).
- Set up the admin password.
- Once completed, OPNsense will provide an IP address for the web interface (typically
http://192.168.1.1).
Step 5: Install VMware Tools
- Log in to the OPNsense web interface using the provided IP address.
- Navigate to System > Firmware.
- Click on the Plugins tab.
- Find and install the os-open-vm-tools plugin for VMware Tools.
- After installation, reboot OPNsense to enable the tools.
Conclusion
You have successfully installed and configured OPNsense Firewall 24.1 on VMware Workstation, along with VMware Tools for optimized performance. With your firewall now up and running, you can explore additional features such as VPN configuration, traffic shaping, and security rules to further enhance your network security. For additional resources, consider visiting the OPNsense community forums or documentation for advanced configurations.