pfSense: Configuring the DMZ

Today’s post will be about setting up the DMZ (de-militarized zone). DMZ is a place where some traffic is allowed to pass and the rest is denied. The DMZ is the middle man when it comes to the LAN. To make this work you will need to have three NiC’s.


Configuring the DMZ

  1. Open the web GUI by using your local IP address. We will navigate to the tab named Interfaces and click on OPT1 or DMZ. If you do not see OPT1 or DMZ you will want to click on assign and then on the OPT1 or DMZ to enter the setup.12
  2. Now enable the port and start filling out the following details.

Enable: Enable Interface3

Description:  DMZ

Type:  Static

IP Address:  192.168.100.x or 192.168.200.x (shouldn’t be the same as your current subnet)

Gateway:  None

Block Private Networks:  unchecked

Block bogon networks:  unchecked4

  1. Then click on Save and Apply Changes 



Once completed you will have a DMZ configured. The DMZ allows access from the WAN and LAN interfaces, but it will not send traffic to the LAN. The DMZ is used as a guest network, Edge Exchange server, FTP server, and many more.  Adding an access point and a switch to the DMZ interface is recommended.


How to Install and Configure pfSense 2.2.2 (Firewall/Router) for Your Home/Office Network!


What is pfSense? pfSense is an open source network firewall/router software distribution which is based on the FreeBSD operating system. pfSense software is used to make dedicated firewall/router for a network and it is considered for its reliability, and offers many features which mostly found in commercial firewalls. pfSense can be included with many third party free software packages for additional functionality.

The popular firewalls in industry today are: Cisco ASA, Watchguard, Juniper, Sonicwall, Netgear, and so many more. We can use the pfSense software free of cost and it doesn’t have any licenses. It has rich web interface which allows you to configure all of our network components. pfSense has diagnostic tools to help with troubleshooting network issues.

This post will guide you through the basic instructions on how to install and configure pfSense version 2.2.2 and a few recommendations.

You can also install this as an edge firmware between ESXi boxes. pfSense recommends that you use this document when setting it up.

Custom Build:



ac12veur2 or ac12vus


wle200nx or Access Point

All of the above on Ebay as a combined package!

pfSense 2.2.2 ISO

Hardware Requirements:

CPU: AMD 1Ghz+


Storage: 16GB SD card  or m-SATA SSD

NICs: 2 Gigabit Ethernet

Software Requirements:

pfSense 2.2.2 ISO

  1. Use your favorite internet browser and navigate to pfSense Download. Here you will want to click on the current release which is 2.2.2 Install.
  2. Which Image do I need? I recommend using a 64-bit AMD processor in the above recommendations and the reason for this is, because pfSense offers only one 64-bit ISO. AMD processors are a lot cheaper than Intel processors at the time of this post.
  1. Pick the Computer Architecture: AMD64 (64-bit)

Platform: Live CD with Installer or Live CD with Installer (on USB Memstick)

Note* You can always change the ISO into a bootable image by using Microsoft’s Windows 7 USB DVD Download Tool. I have written a post about this here.

  1. Select the mirror link that is near you. With average speed internet it will take about 2-5 minutes. This will download the ISO file and allow us to move to the next step.
  1. Place the USB/CD/SSD into the device and boot the device. If everything was done correctly you will see the pfSense loading like any other OS install.
  1. As the pfSense starts booting, a prompt is displayed with 8 options, and a countdown timer. At this step you will want to pick option 1. If the timer goes out before you choose an option it will automatically choose option 1 for you.


  1. Next, it will ask you if you need to recover or do an installer. This screen also has a timer and will pick installer for you. So you want to press “I” at this time.


  1. The next screen talks about the environment of the software. I haven’t needed to change any of this. Hit Enter on “Accept these Settings” for the next step.


  1. You can use the “Quick/Easy Install”, but if you are like me you like to see how everything works. I will be clicking on “Custom Install”.


  1. Next, pick the disk. You should only have one, because I do not see any reason to have multiple disk for a firewall.


  1. The next step talks about formatting the disk selected in the last step. It does this to make sure that you want to delete it. Maybe you have an old config that you didn’t backup. This is the time to hit enter on “Format this Disk”.


  1. One of my favorite parts of the install. “If you don’t understand what any of this means, just select “Use this Geometry” to continue.


  1. It asked you to format, but it hasn’t done it yet. It will ask you one more time to make sure it is ok to format this drive. I do think the developers of pfSense have some humor. Hit enter on the “Format ada0”.


  1. Now it is time to partition the disk. This is step is for people who are making a firmware/router out of an old PC and they want to keep the OS on it. Since we are not doing that we are going to click on “Skip this Step


  1. Now it is time for bootblock. What is bootblock? Bootblock is a secure way to encrypt the machine code needed for the pfSense software. Click “Accept and Install Bootblocks”.


  1. Select a partition to install the pfSense OS. Since we only have one partition we will choose that.


  1. Once again it will warn us that everything here will be erased. Click “OK


  1. The Subpartitions screen will follow. Just pick “Accept and Create”.


  1. Now after 13 steps it is time to install the pfSense OS.


  1.  Install Kernel screen will come after. I just use the “Standard Kernel”, because it is the standard.


  1. After the Kernel install it will be time to reboot the system. Choose “Reboot”.


  1. We are now more than half way done. After the rebooting is finished the interface config will appear.


  1. The next steps will make or break the install process. As it is reloading it will tell you the default Username and Password.

Username:   admin

Password:   pfsense

  1. Make sure you know the names of the interfaces. This is the time to write it down.

The two interfaces:

em0 and le0 We will make em0 the WAN and le0 the LAN.


  1. It is now asking “Do you want to set up VLANs now?” We have no VLANs at this time so enter “n” and hit enter.


  1. Now enter the name of your WAN interface. Stated on step 23 we will be adding em0.


  1. Now enter the name of your LAN interface. Stated on step 23 we will be adding le0.
  1. Do you want to proceed? Type “y” and enter.


  1. After you have configured the WAN and LAN interface it will bring you the pfSense menu. This has 16 options and you can play around with them later.


  1. Now we have only enabled the WAN and LAN. Now it is time to setup the IP information. Pick option “2” and hit enter.


  1. Configure IPv4 address WAN interface via DHCP? If you do not know the static IP this should say “Y”, but I know the static IP and for this post we will be using “N”.


  1. Now we enter the IPv4 address: If you did DHCP you will not see this. I am going to enter a random one in “” and hit enter.


  1. What is the subnet for the address you entered? So I am using a 24 bit subnet. Enter your subnet in “24” and hit enter.


  1. You do the same thing for the LAN. The only change is that it will ask you for IPv6, but you can say “n” if you do not want to deal with this now.


  1. When you get near the end it will ask you: “Do you want to revert to HTTP as the webConfigurator protocol?” This will change the HTTPS into HTTP. It’s less secure, but leaving it only has HTTPS is fine. Enter “n” and enter.


  1. You have configured the start of the pfSense software. You will want to write down the information about how you can access the GUI part of the setup.


  1. Enter in the Username and Password and click on Login.

Username:   admin

Password:   pfsense


  1. You should now see the following page. This is the wizard and it will guide you with a basic configuration setup.


  1. The General Information screen will ask you the following:

Hostname: pfSense  – It will give you a warning because of the capital letter.


Primary DNS Server:

Secondary DNS Server:


Now click Next

  1. Choose the timezone and click Next.


  1. WAN Configure screen. This screen is for more info on the WAN interface. Enter what you need.


  1. We configured the LAN inside the pfSense software. Verify the information and click Next.


  1. Do what the next image shows.Click “Reload


  1. Now it has reloaded and you can click “Click here to continue on to pfSense webConfigurator.


  1. Once clicked on the link it will require you to login again. Login and the first page you see will be the GUI Dashboard.


I will be writing more post about the pfSense router in the coming days. Make sure you follow and like the post if it was helpful.