This article adapts the process of creating a pfSense virtual machine in VirtualBox with two network adapters for WAN and LAN. It focuses on the initial installation; network subnets, DHCP, and firewall rules should be designed for the actual lab topology.
Source reference: i12bretro – Install pfSense Firewall and Router in VirtualBox . The original video belongs to i12bretro on YouTube .

Requirements
- The pfSense installer from the official download page .
- VirtualBox installed on the host.
- Two network connections if the VM will operate as a router: one WAN and one LAN connection.
- Back up the current network configuration before testing.
Create the VM and attach the ISO
- Extract the pfSense
.gzarchive if the download is compressed. - Open VirtualBox, select Machine > New, create the VM, and click Create.
- Create a virtual disk sized for the lab and finish the wizard.
- Select the VM, open Settings > Display, and set Video Memory to
128 MB. - Open Storage, select the CD-ROM drive, then choose Choose a virtual optical disc file....
- Select the pfSense ISO and click OK.
- Open Network and set Adapter 1 to Bridged Adapter.
- Open the Adapter 2 tab, enable it, and also select Bridged Adapter.
- Click OK, select the VM, and choose Start > Normal.
Install pfSense
- Press Enter to accept the copyright and distribution notice.
- Select Install pfSense and press Enter.
- Select the required keyboard mapping.
- Select Auto (UFS) Guided Disk Setup.
- Wait while pfSense copies files and installs to the virtual disk.
- At Manual Configuration, select No.
- Select Reboot.
- Before the VM boots again, use Devices > Optical Drives > Remove disk from virtual drive in VirtualBox.
- Select Machine > Reset so the VM boots from its virtual disk.
Assign the LAN address and open the Web UI
- In the pfSense menu, select Set interface(s) IP address by entering
2. - Select the interface that will be used as LAN.
- Enter a LAN address on the same subnet as the management computer.
- Enter
24at the bit-count prompt when using a/24network. - Leave the IPv4 upstream gateway empty for the LAN interface.
- Leave the IPv6 address empty if IPv6 is not being used.
- Enter
nwhen asked whether to enable the DHCP server; DHCP can be configured later in the Web UI. - Enter
ywhen asked to revert to HTTP if this is only an initial setup on a trusted lab network. - Note the Web UI address shown in the terminal.
- Open that address in a browser from the management computer.
- Log in initially with
admin/pfsense, then open System > User Manager. - Edit the
adminaccount, set a new password, save it, log out, and log in again.
Warning: Do not keep the default password. Use Bridged Adapter only when the role of each interface is understood; an incorrect topology can create a loop or interrupt the physical network.
Source and video
- Original tutorial: i12bretro 0235
- Original video: Install pfSense Firewall and Router in VirtualBox
- pfSense download: pfsense.org/download


Góp Ý / Bình Luận / Đánh giá