<p>Then configure the network (NAT for the WAN interface of pfsense + an ip-less interface for the LAN interface of pfsense and the other VMs)</p>
<imgsrc="1.png"class="imgRz">
<imgsrc="2.png"class="imgRz">
<p>so we get the following lan network, and a /24 NAT network, DO NOT ACTIVATE DHCP ON THE LAN network, because
our pfsense will do it instead:</p>
<p>now we activate them both and install our pfsense VM following this network graph:</p>
<imgsrc="6.png"class="imgRz">
<imgsrc="7.png"class="imgRz">
<imgsrc="8.png"class="imgRz">
<imgsrc="9.png"class="imgRz">
<imgsrc="10.png"class="imgRz">
<imgsrc="11.png"class="imgRz">
<p>here we make sure that our pfsense VM has 2 NICs, one is the WAN interface with our NAT, the other is the isolated 10.0.0.0/16 network.</p>
<imgsrc="12.png"class="imgRz">
<imgsrc="13.png"class="imgRz">
<p>Next we install pfsense :</p>
<imgsrc="14.png"class="imgRz">
<imgsrc="15.png"class="imgRz">
<imgsrc="16.png"class="imgRz">
<imgsrc="17.png"class="imgRz">
<p>Next select reboot, and we're going to configure our pfsense as the gateway router for the 10.0.0.0/16 network as 10.0.0.1/16, and then we will configure the WAN side of pfsense
to be the other NIC as a static address in 192.168.100.0/24: </p>
<imgsrc="18.png"class="imgRz">
<p>Now if we look at the vm's 2 NICs, we see that the WAN interface has the following mac address: </p>
<imgsrc="19.png"class="imgRz">
<p>And we see that the LAN interface has the following mac address:</p>
<imgsrc="20.png"class="imgRz">
<p>So we assign the interfaces in pfsense accordingly:</p>
<imgsrc="21.png"class="imgRz">
<imgsrc="22.png"class="imgRz">
<p>Next step, we assign static ips to both the interfaces we just setup:</p>
<imgsrc="23.png"class="imgRz">
<p>for the upstream gateway address, we will simply use our host machine ip:</p>
<imgsrc="24.png"class="imgRz">
<imgsrc="25.png"class="imgRz">
<p>Now we setup the LAN-side ip address:</p>
<imgsrc="26.png"class="imgRz">
<imgsrc="27.png"class="imgRz">
<p>Now here we want to setup DHCP on the LAN following the settings we set earlier.</p>
<imgsrc="28.png"class="imgRz">
<p>So we get the following result, and we reboot our pfsense:</p>
<imgsrc="29.png"class="imgRz">
<p>now what we need here is to install a client VM to put inside of our LAN network, and from there we will be able to access the pfsense web interface.</p>
<imgsrc="30.png"class="imgRz">
<imgsrc="31.png"class="imgRz">
<p>Now install debian as usual, we won't use any graphical interface to avoid the installation process to take too long, also make sure to install debian on the WAN interface to avoid any connection problems:</p>
<imgsrc="32.png"class="imgRz">
<imgsrc="33.png"class="imgRz">
<p>Once the installation is done, you get the following:</p>
<imgsrc="34.png"class="imgRz">
<p>However we want our machine to be on the 10.0.0.0/16 subnet, and we also want to be able to browse the web from our debian machine, so before we shut the machine off and change the NIC, we run the following commands:</p>
<p>So now we have our debian VM with graphical display, but it's not on the correct subnet, so we shut it down to correct that:</p>
<imgsrc="36.png"class="imgRz">
<p>We select the LAN network, and start the VM again:</p>
<imgsrc="37.png"class="imgRz">
<p>And here we see that we are on the correct subnet, and we are able to ping the LAN interface of our pfsense VM, so let's access it from the web browser:</p>
<imgsrc="38.png"class="imgRz">
<p>If for some reason you can't access the pfsense web interface on 10.0.0.1, you can always re-configure it again:</p>
<imgsrc="39.png"class="imgRz">
<p>now you can login with the admin:pfsense default credentials</p>
<imgsrc="40.png"class="imgRz">
<p>since our WAN network is also a private subnet </p>
<imgsrc="41.png"class="imgRz">
<p>Then follow the rest of the install and you end up with the following result:</p>
<imgsrc="42.png"class="imgRz">
<p>And there you have it! We have been able to install pfsense on virt-manager, with a 10.0.0.0/16 LAN network.</p>