• 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 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 that based on FreeBSD. Anyone with some technical knowledge can turn 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 those 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 other 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 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 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 pfSensewebsite 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 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

     

    Leave a Reply

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