Skip to content

Latest commit

 

History

History
281 lines (141 loc) · 9.21 KB

File metadata and controls

281 lines (141 loc) · 9.21 KB

Install pfSense

Summary:

This walkthrough will install pfSense on VirtualBox. The network diagram below shows what our virtual environment will look like at the end. Note that the IP addresses may be slightly different and you may choose to only install one Windows VM, base on your host system resources.

image.png

pfSense Background

pfSense is an open-source firewall and router software distribution based on FreeBSD. It is widely used for securing networks, managing traffic, and providing advanced networking services in both home and enterprise environments. pfSense offers a web-based interface for configuration, making it accessible even to users with limited command-line experience. It supports a wide range of features including firewall rule sets, network address translation (NAT), VPN (such as IPsec and OpenVPN), DHCP, DNS services, and VLANs, making it a versatile solution for building secure and segmented network infrastructures.

pfSense Installation

Download pfSense from the link below.

Download pfSense Community Edition

After going to the link select Download.

image.png

Under Select Image Type drop down, select AMD64 ISO/Virtual Machines.

image.png

Sign in or Create an Account.

image.png

Once signed in, Complete the Order.

image.png

Select Download Now

image.png

The downloaded file is a G-Zip compressed file. You can uncompress it with 7-zip.

image.png

After downloading and uncompressing, create the pfSense VM. Open VirtualBox Manager and select “New”.

image.png

Name the Virtual Machine and select where you want the VM to be stored when completed.

image.png

Go to where the .iso file was downloaded and select Type as BSD, Subtype is FreeBSD, and Version is FreeBSD (64-bit)

image.png

Skip over unattended Install and go to the Hardware tab. Configure memory and CPU and select next.

image.png

Go to the Hard Disk tab and expand disk space to 20GB and click Finish.

image.png

Go back to VirtualBox Manager and highlight pfSense and select Settings.

image.png

Go to System. Uncheck Floppy and move Hard Disk and Optical up on the list. Ensure that Hard Disk is at the top of the list. If not, it will cause an infinite loop and will continue to restart the installation process.

image.png

Go to Audio and uncheck Enable Audio.

image.png

Go to network. Choose Adaptor 1 and then select Bridged. In VirtualBox, a Bridged Adapter connects the virtual machine (VM) directly to the same physical network as the host machine. This means the VM acts like a separate physical device on the network, just like any other computer connected to the router or switch. When you select “Name”, if your host has a wireless connection, choose a wireless adaptor name. Conversely, if it has a wired connection choose a wired adaptor name. Most likely VirtualBox will automatically choose the name when you select Bridged; however, be sure it is consistent with the type of network connection your host has. Lastly, set adaptor type to Paravirtualized Network.

image.png

Go to Adapter 2. Enable network adapter. Select Attached to “Internal Network”, change the name to “LAN 0”, and change the Adaptor type to Paravirtualized Network.

image.png

Go to Adaptor 3. Enable network adapter. Enable network adapter. Select Attached to “Internal Network”, change the name to “LAN 1”, and change the Adaptor type to Paravirtualized Network.

image.png

Disable USB ports.

image.png

No other changes are required and now we can start pfSense.

image.png

Select Accept

image.png

Select OK

image.png

Select OK

image.png

Select OK.

image.png

Select OK

image.png

Select continue

Untitled

Select Continue

image.png

Select install CE (Community Edition)

image.png

Select OK

image.png

Select OK

image.png

Click OK

image.png

Click Yes

image.png

Click OK

image.png

Installation will begin. Be patient it will take a few minutes.

image.png

Select OK after installation.

image.png

Reboot the VM

image.png

pfSense Configuration

When the system is being rebooted it will ask if VLANS need to be set up first. Answer by typing “n”. Be aware that text continue to scroll before you get a chance to answer; however, just answer “no” it does not matter if other text has gone by after the question.

image.png

We will now configure the network adaptors.

We will be asked to name the interfaces. Name the interfaces“vtnet0”, “vtnet1”, and “vtnet2” and then select “y” to continue.

image.png

See the settings below. We will not change the WAN IP; however, we will change the other IP addresses.

image.png

Select option 2.

image.png

Select 2 again to configure the LAN interface

image.png

Select n

image.png

Enter 10.0.1.1 for the IP address for the LAN interface.

image.png

Enter 24

image.png

Select Enter

image.png

Respond with no

image.png

Select enter

image.png

Respond with y

image.png

Enter the IP range for the DHCP server starting with 10.0.1.11 and ending with 10.0.1.245. This leaves IP addresses at the begining and the end of the range for static IP addresses.

image.png

Respond with no

image.png

This shows the IP address for the adaptor we just configured. Select Enter

image.png

Now we will repeat the same for the other interface using 10.0.3.1.

Select option 2 to set IP address

image.png

Select 3 for the OPT1 adaptor.

image.png

Select n to not configure IPv4 via DHCP

image.png

Enter the IP of 10.0.3.1

image.png

Enter 24 for subnet bit count

image.png

Select enter

image.png

Select n for DHCP6

image.png

Select enter for none for IPv6

image.png

Select y for enabling DHCP server

image.png

Give it an IP range of 10.0.3.11 and 10.0.3.245.

image.png

Select no for webConfigurator protocol.

image.png

Select Enter

image.png

Power it down safely by entering option 6.

image.png

We can now get rid of the ISO file. Go to setting —> Storage —> Select the pfSense Installer —> Go to the dropdown beside the disk icon and select “remove disk from virtual drive”.

image.png

This completes the initial installation and configuration.