Академический Документы
Профессиональный Документы
Культура Документы
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 1/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
Step 1: Requirements
So, for this project, you need a couple things. First, you need a server
running VMware ESXi 6.x. Importantly, that server should have at least
2 network ports. That will enable us to have a WAN and a LAN port. For
this, I’ll be using my Dell PowerEdge R710, which has 4x1GbE ports on
the back, and it runs VMware ESXi 6.5.0.
Note: With some finagling, the same result can be achieved with a single
NIC using VLANs, as long as your switches/infrastructure support it. This,
however, is beyond the scope of this tutorial.
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 2/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
For the WAN switch, we’re going to use the built-in “VM Network”
switch. If you want any additional network ports for the firewall, add
them now.
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 3/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
Now, we need to create “port groups” for the new switches. Open the
Port Groups tab and create port groups for each of the new switches
you added.
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 4/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
From the networking tab, access VMkernel NICs > vmk0 > Edit
Settings > IPv4 settings
Set a static IP address that is within the address space of the new
network. (i.e. if the new network is 10.20.0.1– 10.20.0.255, I picked
10.20.0.5)
Save and Apply the settings. Then, open your computer’s network
settings and set its static IP to something in the same address space,
and set the IP of the ESXi host as the gateway. This will disrupt
internet/intranet communications, but it will ensure continual
access to the ESXi interface.
Create a new virtual machine, and, for pfSense, select OS family: Other
and set the OS to “FreeBSD (64-bit).”
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 5/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
Tab through the wizard until you land on the VM’s configuration page.
Here we need to modify a few things.
Add an additional Network adapter using the button at the top, and
then select the LAN port-group we created earlier. You should have a
network adapter with a WAN port-group by default.
Then, in the CD/DVD drive, select the pfSense installer ISO from the
datastore. Now you can click create and start the VM.
pfSense Install
The basic installation of the pfSense operating system is nearly
identical to installing it on bare-metal. Just click through the installer
until the system reboots and you land on the set-up page.
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 6/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
This will launch an interactive wizard that will help you configure an
interface. Select the WAN interface to configure, then just run through
the wizard.
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 7/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
For me, this involved setting the static IP address of the port and
pointing it toward my gateway.
Now, we repeat the process for the LAN interface. Here you’ll be
prompted to set the static IP again, as well as selecting a DHCP range
for pfSense’s LAN port. Make sure this is the same address space as you
planned earlier (for me, 10.20.0.X).
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 8/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
Create a new LAN Management Network port group on the same LAN
switch we created earlier.
This will make sure it bridges with the LAN port on the new pfSense
VM.
Now, go to Networking > VMkernel NICs > Edit Settings and change
the port group to the new LAN Management Network port group we
just created.
Note that after you save the settings, you’ll no longer be able to access
the ESXi interface. This is normal.
Move It Over!
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 9/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
Now, we can finally start using our new network! Move the connection
to the switch (or the rest of your physical network) to the new port on
the server that we added to the LAN switch we created at the
beginning. This will connect your network to the pfSense LAN
interface.
Open up your web browser of choice and navigate to the IP address you
assigned to the pfSense LAN interface in Step 3, and voila! You should
be presented with the pfSense web interface.
admin
pfsense
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 10/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
Now it’s just a matter of running through the standard pfSense setup
wizard and you’re off to the races!
Conclusion
Virtualized networking is a great way to experiment with different
firewall software without having your network down for long periods
of time. It also lends a lot of flexibility when it comes to customizing
network segments.
I hope this guide has been helpful, and if you have any questions,
comments, or if you run into any issues, leave a comment down below,
and I’ll do my best to help!
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 11/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 12/13
4/16/2019 How to Set Up Virtualized pfSense on VMware ESXi 6.x
https://medium.com/@glmdev/how-to-set-up-virtualized-pfsense-on-vmware-esxi-6-x-2c2861b25931 13/13