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

logo_pfsense

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:

APU.1D4

case1d2blku

ac12veur2 or ac12vus

msata16d

wle200nx or Access Point

All of the above on Ebay as a combined package!

pfSense 2.2.2 ISO

Hardware Requirements:

CPU: AMD 1Ghz+

DRAM: 4GB

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

  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.

2

  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.

3

  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”.

4

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

5

  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”.

6

  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.

7

  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”.

8

  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

9

  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”.

1011

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

12

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

13

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

14

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

15

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

16

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

17

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

19

  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.

20

  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.

21

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

22

  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.

23

  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.

24

  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.

25

  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”.

26

  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 “192.168.50.1” and hit enter.

27

  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.

28

  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.

29303032

  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.

33

  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.

34

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

Username:   admin

Password:   pfsense

35

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

36

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

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

Domain: zotech.no

Primary DNS Server: 8.8.8.8

Secondary DNS Server: 8.8.8.4

38

Now click Next

  1. Choose the timezone and click Next.

39

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

40

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

41

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

43

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

44

  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.

45

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.

Advertisements

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

  1. Informative article. One question though, was the installation done through serial console or VGA? I do not see any VGA out specified in the hardware description

    Like

    • Hi John,

      I used a 9-pin serial port connected to a USB-to-serial adapter. Then I used PuTTY with a speed of 115200. Once you have pfSense loaded with a simple insatall. You would use the web GUI to configure everything else.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s