Sunday, December 2, 2018

Using pfSense As My Home Router - Part 1

Background


I have gone through multiple wireless routers. I have used Linksys, Netgear, ASUS, Buffalo, TP-LINK, and more. I have noticed that Linksys and Netgear often ship with very buggy firmware, and they often slow down and stop routing traffic. I am then required to restart them.

As a case in point, I recently returned a Netgear R6900 to Costco, because I had to restart it every 48 hours. To verify was not the only one, I did a Google search and found a forum entry of thousands of people that are having the same issue at https://community.netgear.com/t5/Nighthawk-WiFi-Routers/R7900P-dropping-internet-requiring-reset-every-few-days/td-p/1450152.

Having experienced so many issues, I decided to build my own physical router. It would not handle wireless traffic. It would only handle routing traffic from my home network to the Internet. Then, I would use my existing wireless routers purely as access points. They would connect wireless users to the network, but they would not handle any routing.

Hardware


They first step I took was to invest in a mini PC. I searched www.aliexpress.com for a good firewall-based computer. I wanted a computer that had four network cards. One would be used to connect the computer to the Internet. Another one would be dedicated for routing VPN traffic. The last two would be bridged, acting as a switch, and connected to my home network.

I searched www.aliexpress.com for mini PC and I found one that I liked. It contained a Celeron J1900 processor, 4 gigabytes of RAM, and a 32 gigabyte SSD hard disk. The total cost was $143. Since the description specifically mentioned pfSense, I figured it would be a perfect match for my usage requirements:


The computer shipped from Hong Kong. It took a little over a week to arrive. But, given that it was free shipping, I did not complain. I was very excited when it finally arrived.

Installing pfSense

When the PC arrived, I plugged it into a monitor using a VGA cable. I also plugged in a dongle for a wireless USB keyboard/mouse combo. I plugged one network card into my cable modem. Note that it is necessary to restart your cable modem whenever you plug new hardware into it. I plugged a second network card into a gigabit switch that was connected to my home network.

On an existing computer, I then used Rufus (https://rufus.ie/en_IE.html) to create a bootable flash drive with the pfSense installer. I downloaded pfSense from https://www.pfsense.org/download/. I chose the following options:


When I inserted the bootable USB drive into the computer, the computer booted into Windows. It was preloaded with Windows. To get the pfSense installer to load, I had to go to the BIOS and tell it to boot from the USB drive instead of the built in hard disk. Once I updated the BIOS, the pfSense installer loaded. I accepted the defaults and finished the installation. It went very quickly.


2 comments:

  1. My only concern here is any Wi-Fi chips or other computer hardware/ etc. coming from China without specifically and tightly controlled parent company such as Apple, is a severe risk. That's why the Defense Department won't allow 5G chips from China. in truth there really needs to be an American base hardware manufacture creating network devices in the United States, for Wi-Fi 6 ( e.g. 802.11ax) as well as others such as 802.11ad. we've reached a place in history where IOT devices, legacy Wi-Fi, planned obsolescence in network routers that will ensure security flaws, all need to be replaced with much more secure systems not only based in United States but with open source software that can be inspected and combed for malware/flaws. In truth the same should happen with hardware chips and integrated circuits but that's a whole another Bailywick. Without complete transparency within both hardware and software, we all know that backdoors exist and will exist for them not only by companies but by agencies such as NSA/CIA, and foreign counterparts. The problem is building anything outside of the country that is not 100% transparent is that we have opened ourselves up as a world to extreme vulnerabilities from everything inside or houses to our cars phones, bank accounts, everything about our family and children, and much more. All it takes is one flaw/mistake

    ReplyDelete
    Replies
    1. Thank you for the insights! Security is definitely an important factor to consider. In this instance, there was no WiFi device. Both the CPU and network interfaces were made by Intel - a hardware manufacturer that is still used by Apple to build their own computers. The operating system (pfSense) was open source.

      Delete