In my previous post, I introduced something about PFSense. You can read that post here: Control Your Bandwidth Usage using PFSENSE.  Today I’ll show you how we implemented it in our existing network to have complete control of our network.

Before we start, here are the system requirements of PFSense.

  • x86/x64 CPU with at least 2 GB of RAM, 2x Network Interface (one for LAN and one for WAN)
  • At least 10 GB of HDD, if you want to use it as proxy server then I’ll recommend at least 40 GB
  • An ISO Installer for Pfsense, you can download it HERE: (The installer is more or less 300 MB, don’t worry to spend some data here as you will save more bandwidth later after we implement the content filtering feature.)
  • A couple of common sense and a lot of patience.

Instead of using an old CPU as my pfsense box, I’ll be installing it in my Hyper-V which has a built-in feature on our Windows Server 2012 R2 (our server’s existing OS). If you have the same windows server or Windows 10 Professional,  you can follow this post: HYPER-V ON WINDOWS 10 to activate hyper-v feature.

This will be a very long post and it is divided in 3 parts: Installation, Configuration and Running Squid and Squidguard for Caching & Content Filtering.

  1. Create Virtual Machine from Hyper-V for your PFsense Box.
    • Open your Hyper-V Manager, Click Hyper-V Server, right click and choose New => Virtual Machine. A New Virtual Machine Wizard windows will popup. Then click on next.
      • Specify the name of your new Virtual Machine, I’ll be using PFSense – Able Blog then hit next.
      • In the next windows choose Generation 1 then hit next.
      • After that you have to assign the Memory size for your virtual machine, Recommended is 2GB if you are going to use it as cache server, but for the purpose of this tutorial, I’ll just use 1028 MB.
      • Next is the configuration of our network. Just leave it as it is as we are going to add one more Network Adapter later and configure it after. Leave it in “not connected” option for now and hit the next button.
      • For the virtual hard disk size, if you are going to use it as a cache server you will be needing a bigger HDD, if not then 10 GB to 40 GB will do, Here I’ll just leave all the settings to the default setting except for the size which is 40 GB. Hit next and it will bring you to the Installation of option.
      • Since I have the latest copy of ISO installer of pfsense. Just follow the image below and choose the Image file, Browse for your saved ISO installer. If you have no installer yet, open this website or download it HERE.
      • Now, your PFSense VM is almost ready. Go on and hit the finish button. Pay attention to the marked one (network), One of our system requirement is that the machine should have at least two network adapter, one for LAN and one for WAN. We will do this in the next step.
      • We have to add our additional Network Adapter with that on your Hyper-V Manager. Right click our newly created VM (Pfsense – Able Blog) and choose setting.
      • The Setting for VM will pop out, Click the Add Hardware from the left panel and choose the Network Adapter, then click add.
      • After successfully adding the 2nd Network Adapter, you have to be sure that both of them are connected to your Virtual Switch (I added two virtual switch for my Hyper-V Server, 1 is connected to my Physical Network for LAN and the other is for WAN)
      • Now we are ready to install pfsense.


  1. Installation:
      • The installation is very quick, it takes me only less than 10 minutes to finish. It is the preparation and configuration that will take time and effort to set this thing up correctly. To start the installation, let’s begin by choosing our Pfense VM, then right click and select connect. You can click the connect option on the right panel if you prefer it this way.
      • Turn on your VM by pressing the turn on icon.
      • Before the installation, the copyright and distribution notice will popup. Accept to proceed.
      • Hit OK to begin with the installation.
      • For the partitioning, just choose Auto (UFS). There is no need to configure it manually as this makes it more complicated later on. Just hit OK.
      • After a few minutes a prompt will show that the installation is now finish. It will ask you if you want to open the shell in the new system for manual modification. Here you must choose no.
      • The installation is now finished and it will ask you to reboot. Click reboot.
      • You have to eject the installer image before you switch on. Otherwise it will proceed to boot the installer again. You can do that by pressing the stop icon when it is booting up. Then go to the media DVD drive then eject the installer image. After than, turn it on again and check if it will boot successfully.
      • Once you see this display, Congratulations! You have successfully installed the PFSense!

The configuration is one of the tougher task to make this work as we have to configure it very carefully. It will take more time doing the configuration itself than the preparation and installation of pfsense so we have to continue the post in PART 2: PFSENSE – CONFIGURE AS GATEWAY & FIREWALL & PART 3: PFSENSE – SQUID & CONTENT FILTERING.

If you have some questions, just leave a comment below and I am more than willing to answer your questions.


Leave a Reply

Your email address will not be published. Required fields are marked *