Book Image

Network Security with pfSense

By : Manuj Aggarwal
Book Image

Network Security with pfSense

By: Manuj Aggarwal

Overview of this book

While connected to the internet, you’re a potential target for an array of cyber threats, such as hackers, keyloggers, and Trojans that attack through unpatched security holes. A firewall works as a barrier (or ‘shield’) between your computer and cyberspace. pfSense is highly versatile firewall software. With thousands of enterprises using pfSense, it is fast becoming the world's most trusted open source network security solution. Network Security with pfSense begins with an introduction to pfSense, where you will gain an understanding of what pfSense is, its key features, and advantages. Next, you will learn how to configure pfSense as a firewall and create and manage firewall rules. As you make your way through the chapters, you will test pfSense for failover and load balancing across multiple wide area network (WAN) connections. You will then configure pfSense with OpenVPN for secure remote connectivity and implement IPsec VPN tunnels with pfSense. In the concluding chapters, you’ll understand how to configure and integrate pfSense as a Squid proxy server. By the end of this book, you will be able to leverage the power of pfSense to build a secure network.
Table of Contents (7 chapters)

Configuring pfSense as a firewall

Let's connect to the pfSense server via a browser:

  1. Navigate to, which is the internal LAN IP address for the pfSense server.
  2. Enter the credentials to log in to the pfSense server. Here, the admin user has logged in successfully.

We allocated an additional network interface to the virtual machine, but have not configured it yet. So, let's take care of that now.

  1. Click Interfaces on the top toolbar, and select LAN2. There you can configure the LAN2 with a static IP address as you did for earlier LAN interface we configured previously.
  2. After setting the configurations for LAN2, let's click the Apply Changes button to save the configuration. You can see that the changes have been successfully saved. Let's go back to the main pfSense Dashboard:

And you will see that LAN2 is up and running with an IP address of...