After successfully setting up a Proxmox Virtual Environment (VE) and configuring an isolated network bridge, the next critical step in building a secure home lab is establishing a robust routing and firewall solution. pfSense is an open-source firewall and router based on FreeBSD that provides enterprise-level features completely free of charge.
In this tutorial, we will deploy a pfSense Virtual Machine (VM) inside Proxmox. This VM will serve as the gateway for our isolated lab network (vmbr1), allowing us to control traffic, test NAT configurations, and securely connect our internal Active Directory and Kali Linux machines to the internet.
Step 1: Creating the pfSense Virtual Machine
Log into your Proxmox Web GUI and follow these steps to provision the virtual hardware for pfSense:
- Click Create VM in the top right corner.
- General: Assign a VM ID (e.g., 101) and name it
pfSense-Firewall. - OS: Select the storage drive where you uploaded your pfSense ISO in the previous guide. Set the Guest OS Type to Other.
- System: Leave the default settings (SeaBIOS, i440fx).
- Disks: Assign at least 8GB of disk space. Change the Bus/Device to VirtIO Block for better performance.
- CPU: Allocate 2 Cores. Change the Type to Host to pass through the host CPU architecture directly.
- Memory: Assign 1024 MB (1GB) or 2048 MB (2GB) of RAM.
Step 2: Configuring Network Interfaces (WAN and LAN)
A firewall requires at least two network interfaces: one for the outside world (WAN) and one for the internal isolated lab (LAN).
- Network (WAN): In the VM creation wizard, attach the first network device to
vmbr0(your physical network connected to the internet). Change the Model to VirtIO (paravirtualized). Click Finish to create the VM. - Network (LAN): Select your new
pfSense-FirewallVM from the left menu. Go to Hardware > Add > Network Device. Attach this second interface tovmbr1(your isolated bridge). Change the Model to VirtIO and click Add.
Step 3: Installing pfSense from the ISO
Now it is time to install the operating system:
- Start the VM and click on the Console button in Proxmox.
- Wait for the pfSense boot menu and press Enter to boot the installer.
- Accept the copyright and trademark notices.
- Select Install pfSense.
- Choose Auto (ZFS) for the partition method, proceed with the default Stripe configuration, and select your virtual disk (press Space to select, Enter to confirm).
- Once the installation finishes, choose No when asked to open a shell, and select Reboot.
Step 4: Initializing Network Interfaces
Upon reboot, pfSense will prompt you to assign interfaces. It is crucial to identify which virtual MAC address corresponds to WAN and LAN.
- VLANs: Type
nand press Enter. - WAN Interface: Type the interface name associated with your
vmbr0MAC address (usuallyvtnet0) and press Enter. - LAN Interface: Type the interface name associated with your
vmbr1MAC address (usuallyvtnet1) and press Enter. - Type
yto proceed. pfSense will now request a DHCP address for the WAN and assign a default static IP (192.168.1.1) to the LAN.
Step 5: Accessing the WebGUI and Setting Firewall Rules
To configure pfSense via its web interface, you need a machine connected to the vmbr1 LAN network. Temporarily spin up a lightweight Ubuntu or Windows VM in Proxmox attached to vmbr1.
- Open a browser inside that internal VM and navigate to
https://192.168.1.1. - Log in using the default credentials: Username: admin, Password: pfsense.
- Follow the initial setup wizard to change the admin password, set your time zone, and configure upstream DNS servers.
- Navigate to Firewall > Rules > LAN. Ensure there is a default "Allow LAN to any" rule so your internal machines can access the internet through the WAN interface.
Next Steps
You now have a fully functional virtual router and firewall protecting your lab environment. In our next tutorial, we will utilize this isolated network to deploy a Windows Server instance and configure Active Directory Domain Services.

