Lab 5b
Lab 5b
Lab 5b
Cyberspace security
Introduction
Pfsense is a free and open-source Unix-like operating system that powers existing servers, desktops, and
embedded platforms. To create a dedicated firewall/router for a network, it is installed on a physical computer or
a virtual machine. It can be upgraded and managed using a web-based interface, and managing it does not need
understanding the underlying FreeBSD system.
Objectives:
In this lab, we will deploy Pfsense firewall, setup WAN and LAN interfaces, use the default gateway of the server
and the workstation and set up a deny rule for social media.
Instructions:
● Before Starting Installing Firewall Pfsense, go to the Virtual box, change the network adapter of windows server 2016
and windows pro 10 workstation to “Host-only” on both (they will be in a private or internal network).
● Set the same previous static IP address for both the server and the workstation as shown in Figure 1 and add an IP
address to the gateway.
● Download Pfsense as ISO file from this link https://www.pfsense.org/download/
● Choose architecture “64-bit”, installer type as “ISO image”, choose the closest mirror as “New York”.
● Remember to extract the Pfsense file using WinRAR pogrom.
● Create a new virtual machine on the virtual box for the firewall. Type a name for the Pfsense and load the ISO file
then click next.
● Note: In the Type, you need to make sure that you select BSD as the type and FreeBSD (64bit) as the version. Click
start to insert the ISO file.
• Choose the default settings of the memory and hard disk, then next.
● Remember, to apply the configuration process, you have to create two network adapters for the Pfsense VM inside
the virtual box. One adapter will be configured as NAT and the second adapter will be configured as Host Only. The
adapter configured as the host only will serve as the default gateway for the Windows virtual machines. The NAT
adapter will receive packets from the internet
Figure 1
● Accept the user agreement and then start install pfsense as shown in the screen below.
● Continue the default Pfsense setup
Ping host
● Input “7” and press “Enter” and then input the IP address “192.168.1.10” and do the test connectivity.
● The "Ping" function in pFsense allows you to test the connectivity between pFsense and another device on the
network. We can ping the gateway IP address.
● In Windows 10 vm, Ping 192.168.0.10 to verify that there is successful communication between the Host and
Firewall
Note:
- In the action choose block
- In source choose LAN net.
- In destination choose “single host or alias”
- destination Port range: any
- Put description: block social media
- Click save the apply changes
● Test the firewall rule and show the social media network was blocked on your virtual machine
Checking connection between vms