How to install pfSense on Virtualbox or Vmware player – tutorial

The Internet is full of harmful objects or security issues such as viruses, malware, ransomware hackers and more. The big organizations spend an enormous amount of money to maintain security infrastructure and in building firewalls to protect their internal networks and data.

To secure home or office networks you don’t need to spend a heavy amount, it can be possible with the help of simple open source firewall Linux operating systems like PfSense. It is a network firewall or router software distribution based on FreeBSD. Anyone with some technical knowledge can turn an old system or routers into a dedicated network firewall.

However, the pfSense is not alone opensource firewall there are a couple of others too, you can see our articles for more information on this: Nine Top opensource network firewall Linux systems.

 

pfsense network diagram example

The pfSense should be installed between the Internet and other products that are using the Internet as shown in the above diagram.  Also, make sure the system you are using for the pfSense must have two network interfaces one for WAN and others to connect LAN.

The minimum hardware or system requirements for the pfSense are also basic, any old system with below-given configuration can easily handle the installation and process…

Linux pfSense System Requirements:
Minimum
  • CPU – 500 Mhz
  • RAM – 512 MB
Recommended
  • CPU – 1 GHz
  • RAM – 1 GB
Requirements Specific to Individual Platforms:
Full Install
  • CD-ROM or USB for initial installation
  • 1 GB hard drive

Here in this tutorial, we let you know how to install & setup pfSense on Virtualbox and Vmware.

The process of Linux pfSense installation on Virtualbox is same for Linux Ubuntu, Windows, MacOS or any other operating system and the same for Vmware Workstation player too.

Note: To set up and use pfSense on Virtualbox virtual machine environment as a firewall to save the network from threats; your physical machine should have two adapters. It can be Wireless+Wilress or Wireless + Ethernet or Ethernet+Ethernet.

Note: If you just want to test the pfSense then one network adapter can be used to access it by setting up a same physical adapter for both virtual adapter of VirtualBox and later when the installation is done the just manually enter the LAN address within same range to WAN address from pfSense management screen.

In our case: We have one Wireless that we are using to access the internet and one is ethernet that is connected to the internet network switch from where further devices such as laptops, printers, router, are connected.

pfSense VirtualBox / Vmware Virtual machine internal/external network diagram

Pfsense virtualbox internal netwrok diagram

Step 1:  Download pfSense ISO file

Go to the pfSense website and download the pfSense ISO file. Select the architecture AMD64 and CD image (ISO) installer and click on the Download button.

download PFsense ISO

Step 2: Setup Virtual box for pfSense

Assuming that you already have the Virtualbox installed on your system, if not then first download and install that.

  1. Open the Virtualbox.
  2. Click on New Button.
  3. Give some name to your machine as we have given pfSense. From Type select the BSD and Version: FreeBSD (64-bit). Assing memory around 1Gb for better performance and then click on the Create button.
  4. Select Create a virtual disk now option.

pfsense install Virtualbox

Step 3: Create a Virtual hard disk for pfSense

  1. Select the size of the hard disk you want to assign to pfSense firewall. Like we have given the 4GB which is more than enough.
  2. Select the hard disk file type, you can select any of them.
  3. Click on the Create button.

Virtualbox Pfsense storage

Step 4: Add pfSense ISO image to Virtualbox

Select the newly created pfSense virtual machine and then click on the settings option.

Settings virtualbox

  1. Click on the Storage settings option
  2. Select the Empty CD ROM icon
  3. Click on the CD icon given on the right side of the Optical drive drop down box.
  4. Use the Choose Virtual Optical disk file option to select the downloaded pfSense image.

Choose the downloaded pfsense ISO image for Virtualbox

Once you select the pfSense image it will show under the Storage devices section of the Virtual box.

pfsesne virtualbox image

Step 5: VirtualBox network settings for the pfSense virtual machine

Now from the Network settings, you need to add two adapters for your pfSense firewall. One is acting as WAN and another one is for LAN or internal network.

Note: If you just want to test the firewall and only have one physical adapter then you can use the same adapter in Adapter 1 and Adapter 2.

Virtualadapter for Virtualbox pfsense

Enable the second adapter and select the adapter that is attached to your internal network. Add press OK

Note: The Name of the adapter would be different in your case.

pfsense virtualbox internal network adapter

 

Step 6:  Start pfSense Virtual machine

Start the virtual machine

Step 7:  pfSense Boot screen

The pfSense will start boot automatically in few seconds to install the firewall on Virtualbox.

Boot screen Pfsense firewall

Step 8: Accept the distribution license for pfSense.

Hit the Enter key to move further

Accept the PFsense terms and conditions

Step 9: Install pfSense

Again leave the default settings and just hit the Enter button to make the install.

Install Pfsense

Step 10: Guided Disk setup

Hit the OK button…

pfsense virtualbox ubuntu

Step 11: Continue with default keymap

If you are using the standard keyboard which generally we all do, then leave the setting as it is and press the Enter button.

Continue with default keymapping

Step 12: Manual configuration: Select No

There is no need to do any manual modifications just select the No option and press the Enter button

manual configuration

Step 13: Eject the attached ISO image of pfSense.

Select the Devices->Optical Drives and then click on pfSense ISO.

You will get a pop-up to force unmount the ISO click on the Force unmount option.

remove the pfsense installation disk from virtualbox

Step 14: Reboot the pfSense virtual machine

Click on the Reboot option when appears.

reboot installation

Step 15: pfSense IP addresses

Once the pfSesne gets booted you will receive two IP addresses one is which pfSesne got for WAN access and other is for the local network.

In our case:

WAN: 192.168.43.141 (Adapter 1 of Virtual box)

LAN: 192.168.1.1 (Adapter 2 of Virtual box)

To access the front end or Web interface of pfSesne to configure it. You need to go to the system that connected to the Adapter 2 or LAN (em1) network of the computer/server in which you have installed the pfSense Virtual machine.

pfsense web access IP addresses

Step 16: pfSense default password

In the browser, type, the LAN IP address mentioned on the pfSense booted screen. As soon as you enter it will show https error just add it as an exception and click on the link proceed safely. When the pfSense login screen appears to enter the default password and username type them username: admin and password: pfsense respectively.

pfsense

Step 17: Follow the guides screen of pfSense firewall

Leave LAN interface IP address as it is… and click on the Next.

pfsense internal network ip address

Update the Admin password when it asks for…

Change the password

Complete the pfSesne setup wizard and Click on the Finish button…

Click on finish to donw

Now the Dashboard of the pfSense will appear from where you can control firewall, VPN, Status, Interfaces, System, Diagnostics…

pfsense virtual done

If you are using the VMware Workstation then everything from pfSense installation to setup will same except the creating of Virtual Machine on it.

To create a virtual machine on VMware open it and click on the Create a New Virtual Machine option.

Create a Virtual machine

Select the Installed disc Image file (ISO) option and then click on the Browser button and select the downloaded pfSesne ISO image and then click on the Next button.

use the pfsesne ISO image

Type some custom name if you wish to give your pfSense VM and then click on the Next button.

pfSense Vmware virtual machine setup

Click on the Customize Hardware button…

customize hardware

Change the RAM to 1 or 2GB and then click on the ADD button to add one more Network Adapter for pfSense VM. For both, the network adapters select the bridge option and then select the Adapters using the Configure adapter option. As we did for Virtualbox above.

condigure the adapterd of Vmware

In this way, you can use the install, setup and use the pfSense firewall on Virtualbox or Vmware workstation player virtual machine to use it as a commercial, home or office firewall solutions without wasting hardware resources.

 Other Useful Resources:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.