How to install and setup Pfsense in VirtualBox (InfoSec Lab) - Video 2021 with InfoSec Pat

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey guys welcome back to another video with infosec pack in today's video we're going to be talking about pfsense and installing this in virtualbox so if this is your first time to my channel welcome please subscribe for any other cool videos comment below and if you want to know anything about the infosec world if i can help you just let me know all right so let's get started with the video we're going to be installing pfsense in virtualbox like i'm like um explaining now so the first things first things first we're gonna go out to pfsense.org and we're gonna go to download and when we click download i mean when we get to the download we're gonna have the latest stable version which is today is 2.5.0 select the architecture of amd64 and the installer is going to be an iso image and go ahead and hit download i already downloaded it i have it in my releases right here in my temp folder so i am golden for this okay so once you completed the download you can open up your virtual box okay so let's go ahead and create a new virtual machine and i'm going to name it uh pf sense dash fw01 it's going to be my 5v01 it's going to be bsd and it's going to be freebsd 64-bit that's perfectly fine go ahead and hit next i'm going to allow allocate one gig of ram that should be perfectly fine i'm going to go ahead and create a new virtual disk now and vdi is fine and dynamically allocated is perfectly fine just keep clicking next 16 gigs is perfectly fine as well and hit create once it is created we have to make some changes ignore the other ones those are for something else and we're going to go ahead and go to settings we need two interface cards for a firewall we have the outside world which is the wand the wide area network and then we have the local area network the lan segment okay so when we hit network we have we can add up to four adapters so we're gonna need two so the first one is gonna be nat network and i have a network called infosec lab network and if you don't know how to create that network i can show you that in a second and because if you leave it as a default nat um virtualbox puts your ip i think it's 10.0.2.15 and obviously you want to make this network different from your home network because you want to have it segregated so adapter 2 i'm going to use that with host only adapter so we can have the 192.168.1.1 with 24-bit subnet that's going to be default for the lan segment for pfsense okay so let's go ahead and hit ok here and if you want to know how to create the nat network you go to tools you go to preferences you go to network and you can hit add here nat network and then you can edit and you can name it you know pat new and then you can put it whatever whatever you want here for example 192.168.100.0 and we can hit ok and then you can hit ok and you have a new network but i'm going to use this the one i already have that should be perfectly fine let me double check it make sure everything is good go back to network okay see now we should have pat new and then infosec lab so i want to keep it on that this doesn't be host only perfectly fine and then one more thing we can do we can go to storage we can go to the cd-rom drive and we can browse out to the iso image so when the computer boots up it can boot to the iso image and this is the old version i did it the other day which is 2.4.5 now we have 2.5 so let's go ahead and browse out to that my temp 2.5 2.5 image why does it say empty let's give that a second okay perfect and let's go ahead and hit okay okay and now we can hit start and we can start normal now the machine should stop booting up and stop booting to the pf sense virtual disk why is it doing that let's go ahead and attach the 2.5.0 release and choose that and hit start whoops and i am running the latest version of virtualbox 6.1 so now this is going to start booting up and once it starts booting up we're going to go through the installation process it's relatively easy it's pretty quick so it shouldn't take that long it all depends on the speed of your computer the resources that you have on your computer and so on and so forth and how much resources that you assign to your vm like i only assign one gig of ram and 16 gigs alright so let's go ahead and hit capture in here hit accept i'm going to go ahead and install pfsense hit ok and then continue with the default key map should be fine click ok and click ok here is perfectly fine let's see yep that should be that should be good and once this starts up i've never installed this so this is the first time for me too i was always installing 2.4.5 so 2.5 is a new version for me as well so we all install this together at the same time so we'll give this a few moments to process and you can see the overall progress right now it's almost at 100 and the installation is now finished and you can just hit no here that's perfectly fine and then we can go ahead and reboot and then i'm going to go ahead and remove the media and force on mount that would be perfectly fine because we don't need it to boot to it again we're just going to let it automatically boot into the install process and then it should give us the your our ip address and and all that good stuff so while this is booting i want to go ahead and boot a client so we can get dhcp and everything like that so let's go ahead and boot up this kali linux machine i'm going to start this up normal and we'll give that a moment and this will take a few minutes for each one and let's go ahead and kali linux so now we can see both of my machines we have the firewall on the left and then on the right hand side you can see the kali linux and you can see on the left it's configurating boom so if you can see here the wan interface is em0 we have 192.1 172.16.1.5 okay and in our land segment we have 192.168.1.1 this is the default gateway for our firewall so let's go ahead and wait for kali linux to boot up and while this is booting up we can go back to here and we can look at some getting started if you have never used pfsense before you know you can get a brief overview of what it is it's a free open source firewall distro it's based on freebsd operating system and we can go about the hardware selections the installation the cloud version we have an azure and aws marketplace in the installation guide in the configuration so let's just look at let's open up this and let's open up the configuration so let's see if i can screw this in a little bit so the download the media we already did that and this is going to go ahead and show you how to actually get the architecture set up and the platform and all that stuff depending on what you're trying to run okay so say for example you want to do side to side vpn you can see how to do ipsec vpn we can look at how to configure that and get into the nitty-gritty phase one and so on and so forth so dhcp if you want to create a dhcp server and then let's go you know we can just look at different options out here and you can just learn so much stuff on this uh let's go to virtualization pfsense supports a type one hypervisor so a type 1 hypervisor is like esxi um there's a citrix what is a zen server so then a type 2 hypervisor that's what we're using today we're using virtualbox so type 2 hypervisor is like vmware workstation uh vmware fusion which was from mac and virtualbox zen uh km uh kvm and hyper-v i i wouldn't really recommend doing on hyper-v that's just my recommendation i would use uh vmware or or um virtualbox if you're doing on a type 2 hypervisor running it on top of a operating system all right so let's go ahead and log in here i'm going to login into my route and go ahead and let me log in and let me make sure my my nick is host only okay cool so we'll give this a few seconds to boot up make sure my firewall is still good and then first things first this is kali linux if you guys aren't familiar with kali linux it's a penetration testing distro um so what i'll do is open up the uh open up the the command shell or the terminal and i'm gonna do an ifconfig eth0 which this is gonna give me my ip address for the interface if you just do an if config it'll give you all the interfaces but i was only worried about eth0 so i do have an ip address on the same subnet of as my pf sense so 192.168.1.x so if i ping when i whoops 192.168.1.1 if i can spell ping correctly we can see that we're getting replies so we should be good so now let's go open up my firefox you can use windows you can use anything that you would like in your in your lab environment but i have kali linux because it's already running and i want to go ahead and browse out to the default gateway okay so you're probably gonna get this as a self-signed certificate from the firewall that's no biggie we can hit advanced and accept it risk continue by default the username is going to be admin and the password is pfsense and hit enter and i want to save this for now and then now we can go ahead and do the setup let's try to make this a little bigger and let's go ahead and hit next we'll do this very quickly it's not very difficult it's nine steps go ahead and hit next here my host name is going to be f uh let me actually let me do fw01 which is 5w01 my domain can be home.pipa that's fine you know what i'll just put um lab.local okay that should be perfectly fine my primary dns server i'll put google my secondary output google as well and that's refined hit next we can leave this as default for the time server information dhcp is fine for my wan interface so we can get it from my local router at my home and leave everything as default for now you can change your lan ip address but i'm going to leave it as default 192.168.1.1 and i'm going to change my admin password so it's going from pfsense to my my secret sauce password all right we don't have to save that we can reload for the changes to take effect so that it's going to reload now and if we go back to the firewall that's not that go back to the firewall you're going to see that system activity on here successful login from user admin from the ip address so you can see my kali linux ip address so that's pretty cool so it is finished so now if we hit finish here we can actually view this in full mode so we can see the whole shebang so we'll give this a moment to finish up hit finish and we can hit accept here close and this is it so let's go ahead and exit here we can make some changes here as you can see the firewall it's it's on the latest version okay what i like to do is i like to add the system information is right here obviously if that wasn't there i like to have the system information and let's see what other widgets i like to do i like to install the services status like dhcp and all this stuff and there's a another one for logs firewall logs because who doesn't like to see firewall logs and that's pretty much it that's how you get it up and running that's a basic install now we have a firewall we can go to status we can go to dhcp leases we can see the lease that we got from cali we can refresh we can see that it's alive it's active it's online and that's it and all the interfaces the firewalls if you want to create that nat rules one two one net outbound that um different rules for your when your lan and so on and so forth say for example you have a web server you want to allow inbound outbound traffic you can do everything a whole bunch of cool stuff vpn uh openvpn wireguard this is new to me i have never done wire guard but you can add a tunnel and go on your merry way and and do this fancy stuff all right so i don't want to make a video too long hopefully it's been informative for you guys if you haven't already please like subscribe share and if you made it this long i appreciate it so until next time guys see you on the flip side cheers you
Info
Channel: InfoSec Pat
Views: 4,206
Rating: undefined out of 5
Keywords: pfsense setup and initial configuration, open source firewall, pfsense installation and configuration virtualbox, pfsense virtualbox, pfsense virtualbox lab, install pfsense in virtualbox, pfsense virtualbox install, pfsense install on virtualbox, pfsense setup virtualbox, install pfsense, pfsense virtualbox setup, infosec pat, pfsense setup, pfsense router, pfsense firewall setup, pfsense vpn site to site, pfsense vpn tunnel, pfsense vpn router
Id: WM4q5btBFl4
Channel Id: undefined
Length: 16min 52sec (1012 seconds)
Published: Thu Feb 25 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.