What's up guys, it is Bernardo from the BTNHD and today is all about installing and configuring
pfsense 2.4 point five on Windows Server 2019 Hyper-V.
So let's get into it alright so on my desktop I'm going to right click on my start menu,
go to run, type in WINVER hit OK.
And I'm running everything within a server 2019 build 17783.
Now, I'm going to click on my start menu and within my Start Menu I'm going to go inside
Windows Administrative Tools, locate Hyper-V manager and then click on it to load it up.
Now the first thing that I need to do within Hyper-V is click on the virtual switch manager,
and I need to create a new virtual switch.
So I'm going to pick internal, and then click on the button that says create virtual switch.
And then I'm going to provide it a name, apply it, and then I'm good to go.
Now I'm going to open up my favorite browser which is Chrome, and I'm going to search for
pfsense hit Enter, and I'm going to click on the download link, it's going to take me
here for the architecture.
I'm going to click on the drop down menu and then pick AMD 64, and for the installer I'm
going to pick CD image ISO, and then click on download, it's going to start downloading
the ISO file.
Once it's done, click on the little arrow show in folder, and it's going to open up
now this file has an extension .gz so I need to extract it so I'm going to right click
on it, Go to seven zip I am going to pick extract here.
It's going to extract it, and then BAM now the one with the GZ extension I'm going to
select it, right click on it and then delete it so I only have the ISO file, let's go back
inside.
Hyper-V manager and on the node let's right click on it, go to new virtual machine.
You're going to get the new virtual machine wizard click on next provided a name, a location,
specify the generation Gen one Gen two, then click on next assign it some memory and then
click Next.
connect it to a network from here, create a virtual hard disk and give it a size and
then click on Next.
And with the installation options, I'm going to pick install an operating system from a
CD or DVD ROM, and then pick image files, and then click on Browse and then pick your
pfsense ISO file.
And then, there you go, and click Next.
And it gives you a nice little summary, and then click on finish, it's going to start
creating the disk for you.
And then you're done.
Now select your virtual machine, right click on it, hit Connect.
Go to File settings, and within here, we want to add a new network adapter so select network
adapter.
Click on Add from here we want to click on the virtual switch drop down menu, and then
click on our new virtual switch that we created for me was BTNHD dash net.
Apply it okay it's, and you're good to go.
Now, within the virtual machine click on start to boot it up, it's going to start loading
up, and then take you here, we're going to hit Enter to accept it okay to start the installation.
You're going to pick your key map selection then hit enter.
I'm going to do the auto guided disk setup so hit enter here, it's going to start processing
itself, you're going to get this the installation is now finished, you are able to get into
a shell prompt.
I'm going to hit no hit Enter, and it's going to want to reboot.
If you hit reboot what's going to happen it's going to reboot itself, it's going to do this
and it's going to bring you back to the installation so within Hyper-V I'm going to click on action
and then turn off, and then click on turn off is going to shut down the machine, and
then from here click on media DVD drive and then just remove the ISO, and then click on
Start for it to boot up once you boot up it's going to ask you a question should VLANs be
set up now, I enter N for no hit enter, it's going to want you to enter the WAN interface.
I have hn zero and hn one.
So, hn zero is actually my NAT switch which actually have to assign a static IP address
and hn one is the switch the network switch that we created together.
Now for the WAN, it's going to be hn zero, and Enter.
And for the LAN, it's going to be hn one, and you can hit Enter, and then you're going
to see right now that the WAN is assigned to hn zero, and then LAN is assigned to hn
one do you want to proceed I'm going to hit Y for yes, and it's going to start configuring
the interfaces and then bam.
Now automatically the LAN is already set with an IP address which I want to change now the
WAN is not assigned to an IP address and the reason why is because within my environment
I assigned the WAN to a NAT switch, so I had to assign an IP address for it to talk to
outside right.
So I'm going to pick two.
And from here I'm going to pick one because that's the WAN and that's what we want to
configure and it's going to say configure the IPv4 address web interface via DHCP I
don't want to use DHCP.
So I'm going to hit N. And then it's going to want me to enter the WAN v4, and I'm going
to enter my IP address, it's gonna want me to enter my subnet mask so it's 24, then I
need to enter my gateway so my gateway hit Enter, and then do you want to configure the
v6 address WAN, I think I hit Y for yes hit enter.
Do you want to revert to http.
This is a testing lab so I hit Y hit enter and it's gonna start configuring itself, give
you a nice little summary hit enter and then BAM my WAN now has an IP address right now
I need to change my LAN so the LAN is the same approach you hit to follow the prompts.
The only difference is between your WAN is that you're assigning a starting and ending
for your address pool, at the end of it, I signed my LAN 10 point 10 point 10.2.
Okay, with a subnet of 24, just follow the prompts just hit 2 hit enter just read the
prompts and just set it up for your environment right I didn't want to 192.168.1.1 right for
my environment I wanted something else, found a virtual machine within my environment.
I went inside the settings, and within the network adapter I made sure that it was set
to BTNHD dot net, and I started up the machine.
I opened up a browser, and I went to 10 dot 10 dot 10 dot 2.
And it's going to load up the pfsense web interface.
Now by default the admin and password is admin and the password is pfsense.
So once you sign in, you're going to get the wizard.
Just follow the wizard.
From here I clicked on Next.
Next again.
general information, make sure you give it a primary DNS server as well as a secondary
DNS server.
And then once you enter all that information, click on next configure your time server information
once you're done with that, click on next for the WAN, I don't really need to do anything
because again I configured a static IP address which was great.
I will say go over all the configurations for your WAN interface and modify it within
your environment.
Once you're done, go all the way to the bottom and then click on Next, configure your LAN
interface we did that within the command shell.
But if you need to change it change it here.
Click on Next.
This is where you need to change that password, which is pfsense, the default one change it
to something else, something stronger.
And then once you're done click on next reload, it's going to start reloading itself and then
take you here.
Check for Updates click on the check for updates and it's going to check for updates to make
sure that you're running the latest update, if not just push out the latest update before
continuing from here I'm going to click on the pfsense little icon logo, and it's going
to take me to the homepage the dashboard, and it's going to prompt you this just hit
accept.
And it's going to thank you just click on Close.
Now one of the things that I noticed within pfsense is that the DNS servers automatically
pointing to a loop.
I don't want that.
So to change that I'm going to go inside systems general setup.
And I'm going to go to the bottom where it says disable DNS forwarder, so I'm going to
give it a checkmark go all the way to the bottom hit save.
And then when you go back inside the dashboard, you're going to see that loopback is gone
now next thing that I need to configure is my DNS for my DHCP server for my LAN.
So at the top, click on services, locate DHCP server.
It's going to take you directly to your LAN, and within LAN go all the way to the bottom
where you see servers DNS server so provide your DNS server so I provided you know Google's
DNS servers.
And then I went to the bottom.
Once it's done, providing a DNS server Click on Save And then it's going to say the changes
have been applied successfully within command prompt, I did an IPconfig slash all, and it
gave me my 10.10.10.11 which is the subnet that I provided for my LAN now I did a ping
to Google and everything is pinging out I'm able to talk to the outside world and that's
awesome, and that's it guys that is how we configure pfsense 2.4 point five within Hyper-V
server 2019, make sure to hit that like button also do not forget about punching, elbow,
and smashing that subscribe button to get the latest and greatest from this guy and
I catch you guys on the next one.
Peace out.