OK, I promised all of you a product review in my last blog entry. My first entrant is an open-source firewall project that I am currently using at my workplace. I was seeking a relatively “cheap” software-based firewall solution that would provide me with a dual-WAN setup that will allow our office to continue using both our new T1 and the existing DSL connection.
- Incoming Mail (or Spam Traffic) was maxing out the incoming rate for our DSL line. This resulted in many dropped connections while using the internet in our office. We had incoming services set as the highest priority to limit problems connecting to our company website and email server.
- Our VPN connections were pathetically slow. This was due to a combination of the mail traffic problem from above and the fact that our incoming connection pipe was capped by SBC at 51.2 KB/sec.
- Our new T1 line is fine and dandy for incoming services and VPN connections. However, we would experience a big dropoff on the web browsing “experience” in the office since the T1 pipe is limited to 150 KB/sec. This would not be acceptable to the company management.
- In addition to our office network, we also have two additional “secured” networks that we wanted to bring into the fold.
- Finally, our budget for this project was a spare computer and our time. Thus is life when one works for a small/mid-sized business that has historically ranked IT as one of the lowest priority levels (this is slowly changing, however)
- Push incoming web, email, and VPN traffic in through the T1.
- Push office web traffic out via the higher speed DSL connection.
- Allow backup access in the event that either transport fails.
- Integrate our Surveying and Accounting networks into the new system.
- Simple to operate for relatively non-technical people.
- Built-in controls to limit P2P and IM traffic
- Low cost.
pfSense is a open source firewall derived from the m0n0wall operating system platform with radically different goals such as using OpenBSD’s ported Packet Filter, FreeBSD 6.1 ALTQ (HFSC) for excellent packet queueing and finally an integrated package management system for extending the environment with new features.(OT: I tried m0n0wall, but it did not contain the support to easily setup and administer a dual-WAN setup.)
pfSense contains many features - more than I will ever want and need. However, it’s interface is fairly simple and straight-forward. Actually, it is very intuitive for anyone with networking experience. This is good since there is very limited documentation available - for many features, the documentation will refer you to the m0n0wall docs.
Here are some of the key features that may be of use to many small- to mid-sized business IT departments:
- Wireless Captive Portal
- Multiple WAN support
- Package Support
- Incoming and Outgoing Load Balancing
- Wizard-based Traffic Shaping setup
- Route all web browsing traffic to a transparent filtering proxy then out through the DSL connection.
- Redirect all internal mail transport to our local exchange server, thus limiting our exposure to any wayward laptops or rogue computers exposing us to email viruses/worms.
- Restrict all P2P traffic (identified by l7filter) to an incoming and outgoing transfer rate of 1 bit/sec (effectively killing such traffic).
- Restricting traffic transport as necessary between separate internal networks.
The installation of pfSense uses a BSD Live CD image that contains an options that will allow you to ability to install it to a hard drive. You can run it off the CD and a floppy/memory device, but you will be limited on packages and log storage.
Important Note:A screenshot (of an older version) of the console session is available here.
The console of pfSense is NOT secure and a user who has local access can reboot or reset the firewall to factory settings. So remember one of the cardinal rules of security - MAINTAIN PHYSICAL CONTROL OF YOUR SYSTEM.
During the setup, you will assign network interfaces and will set up the LAN IP address that you will need (later) to access the web interface.
Once you have it installed (and have the console in a “safe” area), you can administer and setup the firewall from a web browser on your local network.
Here is a view of the opening screen after logging on to the firewall (from my install):
(Click on image to open a larger view)
On the left, you can see some of the configuration options that are available in pfSense (see here for more screenshots of these other options).
For a typical setup, you will be staying in the Interfaces and Firewall section. Each section is somewhat self explanatory and have all of the options that you would expect for a normal firewall appliance. The key areas are the NAT and Rules options under the Firewall section.
The NAT section is fairly standard:
As you can see, there are three additional subcategories under NAT - Port Forward, 1:1 (NAT), and Outbound NAT. In my case, all of the rules were either on the Port Forward and the Outbound tabs. The Port Forward tab is self explanatory - it works in the same manner as other firewall appliances. All Firewall rules necessary to add these NAT policies are automatically created on the appropriate interfaces. However, the Outbound NAT tab is where you set up the dual-WAN magic that pfSense allows:
In the case of my configuration, I was allowing two of my internal networks (the LAN and the “GPS” network) access to the 2 different WANs (the DSL and the WAN/T1). That’s all there is to it.
Also, for completeness, here is an example of what the firewall rules interface looks like:
Note that there are 4 tabs on this interface. The number of tabs that you will see depends on the number of interfaces you have defined.
There are a few other features that I find extremely useful on a day-to-day basis:
- Real-Time Traffic Graphs
- Extensive logging
- IMspector - this is a plugin that allows you to capture all instant messaging conversations on MSN, AOL, and Yahoo IM. This is useful to install (pending the appropriate company policies) to help you comply with retention policies, if necessary.
- Simple backups - you can backup the entire configuration to an XML file that you can reimport in to a different appliance.
(BTW: pfSense is IPV6-capable, but I am not running my local network on IPV6 “yet”. Maybe when I have more time…)
Project Site: pfSense
Download: Download Site