Run pfsense 2.4.5 on TrueNAS Core 12.0-U1

  • If you are using a NIC (I recommend this to keep your WAN connection off of the same port that TrueNAS will be accessible on), then you will want to use PCI passthrough for the NIC ports.
    • Run the following command to get a list of the addresses for PCI devices.
      1. pciconf -lv
    • The output will look like the following.
    em0@pci0:3:0:0: class=0xxxxx00 card=0x1xxxxxxx chip=0xxxxxxxx2 rev=0000 hdr=000
vendor = 'NIC Company'
em1@pci0:3:0:1: class=0xxxxx00 card=0x1xxxxxxx chip=0xxxxxxxx2 rev=0000 hdr=000
vendor = 'NIC'
  • The numbers after em(x)@pci0: are the numbers we need.
    • For Device em0 the address we will save is “3/0/0”
    • For Device em1 the address we will save is “3/0/1”
  • Next, add the following system tunables to TrueNAS
    • vmm_load | YES | loader
    • pptdevs | x1/y1/z1 x2/y2/z2 | loader
      • (Where x1/y1/z1 = the address we saved for em0. In this case, 3/0/0)
  • Restart the system
  • Now setup your VM and install pfsense. You can now add the PCI passthrough devices to the VM in the TrueNAS ‘devices’ setting.

Leave a comment

Your email address will not be published. Required fields are marked *