This lab includes steps for installing pfsense firewall in a VM for leanring and educational purpose .
- What is Pfsense
- Installing pfsesne on VM
- Setting up pfsense on VM.
PFSense is a software-based firewall solution. It's like a virtual wall that sits between your computer network and the outside world (the internet), controlling the flow of data in and out of your network.
Here's what it does in simple terms:
Security: It helps keep your network safe from unauthorized access and potential threats by filtering incoming and outgoing traffic.
Control: You can set rules and policies to determine what types of data can enter or leave your network. For example, you can block certain websites or restrict access to specific services.
Monitoring: It allows you to keep an eye on what's happening on your network, such as which devices are connected and what they're doing.
Customization: You can tailor the firewall settings to meet the specific needs of your network, whether it's for a home network or a large enterprise.
Overall, PFSense is like a digital bouncer for your network, keeping the good stuff in and the bad stuff out.
- Pfsense CE edition Free
- Hypervisor either Vmware or Oracke Virtualbox
- 7Z file archiver Free
Download ISO image CE (Free) from pfsense Official website link below https://www.pfsense.org/download/
Download & install 7z free file archiver software Link : https://www.7-zip.org/
Extract pfense downloaded file using 7z
Create new virtual machine with these settings . Dont forget to give ISO image location the file you extracted
Allocate resources as per your system specs. I am allocating 4GB of RAM
Select min 10GB of harddisk space I have chosen 20GB if you need to intall more packages !
Click Finish.
Setup Network Interfaces (WAN) Adapter -1
Installing Pfsense Seelct Virtualmachine & Click START
Press Enter to install Pfsense:
Press Enter : Installing on Single disk
Pree Space Bar to seelct then Press Enter :
Use Tab key to select YES then Press Enter :
Installtion will start will take time so be pateint!
Once installtion completed will see this screen
IMPORTANT : to remove ISO file we used fro installtion before REBOOT else process will start again !
Then Press Enter To REBOOT now !
DHCP will be enabled as default on LAN interface , Adapter -1 as WAN identifed and other 2 interfaces as DMZ & LAN Default range is shown as well.
To configure Pfsense we need to install other VM you can use Windows Or Linux ISO for this you can search google for win 10 ISO or ubuntu (Pre built images) then downlaod ISO files and install to VM
After Ubuntu installation assign internal network from settings.
After assigning internal network run ifconfig or ip a from terminal to check if it picked up IP address from pfsense DHCP range like 192.168.XX if its then its setup correctly.
Try ping the pfsense LAN interface on IP 192.168.1.1 if you see response then its connected & okay .
From Ubuntu machine Open browser and type in 192.168.1.1 pfsense WAN interface IP :
Click Acceept the Risk & Continue
You will see Pfsense login screen. Username admin & Password pfsenser ( all small)
Click NEXT and hurray you have successfully installed Pfsense on your VM .