How to Virtualize Your Home Router / Firewall Using pfSense

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 573

  • @TechnoTim
    @TechnoTim  4 года назад +43

    Which firewall / router are you running at home? If you can't remember, maybe it's time to SWITCH ;)
    By the way, if you're new here, welcome! Please remember to ✨subscribe✨ for more content like this!

    • @--ic0n-1-
      @--ic0n-1- 4 года назад +4

      Used Pfsense since 3 years back inside of a proxmox machine at home. Coupled together are a XCP-NG machine running Pfsense at my parents house with IPsec tunneling. (150km) Getting 250/250mbit sym bandwith between the two places. :)

    • @TechnoTim
      @TechnoTim  4 года назад +1

      Nice! That's awesome you have a hypervisor at your parents house! Why did you choose XCP-NG over proxmox?

    • @--ic0n-1-
      @--ic0n-1- 4 года назад +1

      @@TechnoTim I think both are realy good products. XCP-ng do have a easier time to bind a swarm of servers in my opinion. And i do like the disaster recovery, XenMotion, True backup system compare to tar.gz of proxmox. But as i said. You can't go wrong with either.

    • @AinzOoalG0wn
      @AinzOoalG0wn 4 года назад

      just a question, but is it safe to use qnap nas virtual station for pfsense vm? compared to using say a nuc install ubuntu? then install proxmox? then install pfsense freebsd as a vm using that proxmox?
      no portforwarding being done, just merely using as an edge router firewall.

    • @TheoParis
      @TheoParis 4 года назад

      XD

  • @amosgiture
    @amosgiture 3 года назад +92

    Always log on with the new account before disabling the old account.

  • @sebastiaanstoffels7565
    @sebastiaanstoffels7565 4 года назад +54

    I have an identical setup. One thing to consider depending on how many cores you have on the host, is to make the CPU type 'host' and pass through 1 or 2 physical cores. This should ( depending on your CPU ) enable the AES-NI CPU crypto which can be useful if you use OpenVPN and want faster throughput over encrypted connections. Awesome guides by the way, I wish these vids were around years ago!

  • @alejandrodpf
    @alejandrodpf 4 года назад +52

    Incredible quality, easy to understand, as always fantastic! Thanks for your videos Tim, keep doing them please.

    • @TechnoTim
      @TechnoTim  4 года назад +3

      You got it! Thank you!

  • @Roguedotexe
    @Roguedotexe Год назад +7

    Heyo Tim, you have greatly helped me get into the Homelab scene, and I appreciate it. With that said, you really should consider revisiting this video with a 2022/2023 edition. Reason why I say this is because passing my NIC down to the OPNSense VM in Proxmox (and even Pfsense) straight up did not work. I almost gave up, until I talked to someone that had a workaround: by creating a Linux bridge with the NIC as an alternative way. Passing the NICs down did not work but creating a bridge did. I had other people express their grievance about following your video and having it not work. And from what I heard, when it comes to virtualizing routers/firewalls, passing down NICs is a huge NoNo for this reason. I have no doubt this worked for some people, but I feel like there is a higher chance of success with an updated video by using the create Linux bridge method. Just my 2 cents!

    • @kerrydaniels8460
      @kerrydaniels8460 Год назад +1

      He recommended the first method likely because it maximizes performance to just pass through, but bridging through a virtual interface works likely as well. His suggestion is ideal when supported. If not, with VM's you can typically emulate a method instead.
      Pass through in general can get finicky for some.

    • @TylerNyland
      @TylerNyland Год назад

      I had issues trying to passthrough my 4port NIC card. I ended up unchecking the "all functions box" and that solved my problems.

  • @matthewwren2877
    @matthewwren2877 2 года назад +6

    Such a great idea for those tech heads that want to do something more than what those basic modem routers.. Just a note for those with different NBN connections that you may still need the netgear/gateway/modem from your ISP but simply put it into bridge mode then pass that to the WAN interface as per TechnoTim's guide!! (suit most Australian NBN type of setups) As I am and Aussie viewer also!!!

  • @lelandclayton5462
    @lelandclayton5462 4 года назад +5

    don't forget to enable IOMMU. The version of Proxmox 6.1-7 didn't enable it by default.

    • @TechnoTim
      @TechnoTim  4 года назад +2

      Good call! Sorry, I already had it enabled from a previous video >.

    • @lelandclayton5462
      @lelandclayton5462 4 года назад

      @@TechnoTim yea, took me a good hour to figure get my R410 working correctly with IOMMU.

  • @terminalvelocity4858
    @terminalvelocity4858 Год назад +1

    Thank you for this video. I have one “noob”question. Using a physical machine that has 6 network ports, running ProxMox and a pfSense VM...how can I access ProxMox web control panel from my network that is being served by pfSense? Do I just need to ensure ProxMox is on the same subnet as my LAN? Thank you kindly for helping.

  • @NicAslett
    @NicAslett 2 года назад +1

    I am wondering how you interact with Proxmox after you virtualize your network as a VM through Proxmox... I am wondering how the system determines an IP through a VM that hasn't booted yet. After it boots, how does it get an IP from the VM?

  • @Billyfelicianojp
    @Billyfelicianojp 4 года назад +6

    Maybe you should do a video on setting up Vlans on proxmox?

    • @TechnoTim
      @TechnoTim  4 года назад

      Thank you!

    • @hamhumtube
      @hamhumtube 4 года назад +2

      yes in deepth review and tutorial is much needed. i hope he would do it

  • @succubiuseisspin3707
    @succubiuseisspin3707 3 года назад +5

    If your CPU supports AES-NI and you like to use it in your pfSense/OPNsense VM for OpenVPN etc. you can change processor type to "host"

    • @TechnoTim
      @TechnoTim  3 года назад

      Good call!

    • @tomashrubovcak3770
      @tomashrubovcak3770 3 года назад +1

      Basically you always want to use host, unless you want to do a live migration to a different host with a different cpu. Kvm has the bare minimum of cpu flags, host type is always better

    • @succubiuseisspin3707
      @succubiuseisspin3707 3 года назад

      @@tomashrubovcak3770 Hm, yeah, sounds reasonable. Any idea why proxmox defaults to KVM ?

    • @tomashrubovcak3770
      @tomashrubovcak3770 3 года назад

      @@succubiuseisspin3707 precisely for live vm migration reasons. I learned that the hard way when I couldn't figure out why my tls offloading proxy was so slow on my proxmox vm... Then I dug around and found some official docs covering that.

  • @j.r._7416
    @j.r._7416 4 года назад +4

    Any chance you could do a video on how to passthrough hard disks to a VM in Proxmox for FreeNAS virtualization?

    • @TechnoTim
      @TechnoTim  4 года назад

      If I can somehow acquire more hardware I'd love to!

    • @dsotm99z88x7c
      @dsotm99z88x7c 4 года назад

      Nfs share will do the job

  • @reubenf1367
    @reubenf1367 2 года назад +2

    Hi Tim fantastic video!
    I'm just getting started with Proxmox but so far I am digging it, I want to set up a virtual PFsense instance but not to act as my real firewall in my office, I just want to be able to join other VM’s within Proxmox to the LAN network that PFsense is creating.
    That way I could test VPN solutions like Wireguard, Zerotier and Open VPN from one VM to another that are on different networks.
    My Proxmox box does have 2 NICS, actually 3, what would be the best way to go about this?
    I feel like I can basically follow your tutorial except for on the LAN NIC for PF sense I don't need to connect it to a switch I just need it to broadcast to the other VMS in Proxmox, just not quite sure how to do that.
    Thanks !

  • @NebulaM57
    @NebulaM57 Год назад +1

    Can I ask a question, probably a stupid one but here goes... How are the two wired? I have my internet coming into my home to my modem, then to my router. Then to a switch and a line from the switch goes to my Proxmox server via it's ethernet connection on the motherboard. So far so good. I create the Proxmox server and I can attach to it via it's webpage. All good. NOW, in my Proxmox server I have a 4 port ethernet PCIe card (Intel). Nothing is attached at this point. I next go to the Proxmox webpage on my server and install pfSense. Once it's installed, I am prompted to insert the WAN connection.... and here's the problem.... if I unhook the WAN line from my Internet suppled router and plug it into the Intel 4-port card of the Proxmox server, I loose connection to my Proxmox server, which keeps me from configuring Proxmox or the pfSense VM. I was able to get pfSense to work but I have to keep switching connections back to the motherboard ethernet connection in order to maintain the VM. Is there any way to so me a drawing or explain how to access the Proxmox server once connected to pfSense?? My understanding is that pfSense is supposed to replace my ISP supplied router. Am I misunderstanding something here? Thank you for any help you can provide.

  • @fotografm
    @fotografm 3 года назад +1

    When trying to install opensense and pfsense I got the error "IOMMU not enabled". I checked in the BIOS that Intel vt-d was enabled and then found out by googling that I had to edit the Proxmox /etc/default/grub file to include
    GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
    then
    update-grub and reboot
    The vm still cannot start. Now I get "QEMU exited with code 1"
    ***Update***
    I remembered that this series 2 I5 computer has problems running Qubes so I switched to series 3 I5 computer (both Fujitsu Esprimo) and now Opnsense works fine. I have an Intel 4 port NIC and had to switch off both "all functions" and "rombar" to get it to work. PFsense crashes with a kernel panic in the VM but I prefer Opnsense anyway.
    ***Update***
    I discovered more of your great tutorials and edited /etc/modules
    to add the lines:
    vfio
    vfio_iommu_type1
    vfio_pci
    vfio_virqfd
    Now pfsense works too ! Thank you so much Tim !

  • @imqt
    @imqt 4 года назад +4

    Can you just run me through how you would setup a DMZ that contains some vms?

    • @TechnoTim
      @TechnoTim  4 года назад +6

      Give your pfsense server a new virtual nic. Then create a new virtual network. Block all traffic from the newly create VM. The rest is up to you!

  • @guya4007
    @guya4007 3 года назад +3

    Hi TechnoTim, this was a great tutorial. I followed it almost successfully, all my LAN client are getting IP addresses except for the guest VMs that rely on the vmbr NIC. Did you come across this and if so how did you resolve it? Many thanks

    • @MegaTheDamir
      @MegaTheDamir Год назад

      @guya4007
      Did you ever solve your issue. I have Exactly the same issue

  • @James-no2oc
    @James-no2oc 2 года назад +1

    Hey Tim, is the performance going to be the same or better if I have symmetrical gigabit connection using 3700x virtualization?

  • @MrGatya2
    @MrGatya2 2 года назад +1

    This video was awesome. While we are on the subject of virtualizing firewall: Can you add a third NIC to the PFsense VM that is also on the LAN side but its inside the Proxmox virtual environment? What I mean is, for physical devices on the LAN side you would connect it to the LAN physical port (maybe add a switch first), but for the other VMs that live on the same Proxmox host as the Pfsense, it would be a waste to send their traffic out a phisical port then back on the LAN port. Is my assumption correct that all you would have to do is create a new linux bridge in proxmox (vmbr2 maybe) and just add that as a third adapter to pfsense and configure it as LAN. Then from there just add that bridge as an adapter to all your VMs?

  • @ViktorWingqvist
    @ViktorWingqvist 2 года назад +1

    Great stuff!!
    Any chance you could do a video on how to create an AP too using the integrated wifi adapter many repurposed homelab computers have? :)

  • @qqman9592
    @qqman9592 3 года назад +1

    1.proxmox can do hardware accelaration from pfsense through nic ?
    2. there is option to define standard vSwitch in proxmox like vsphere ?

  • @zippytechnologies
    @zippytechnologies Год назад +1

    any updates on this? I am doing this ahem... 2 years later - but yes - doing it.. I haev OPNSense in a VM - but instead of passing the physical pci device why not virtualize that so we can make use of HA services on Proxmox ? Make the failover mirror on proxmox on another server with similar hardware setup - then if one machine needs to be shutdown for updates or maintenance - easy to migrate to other node on the cluster and keep everything going... no? Would love to see how this is done in your world.

  • @valeriomec214
    @valeriomec214 2 года назад +2

    Tim, your videos are invaluable. Thanks for the amazing work, you TRULY deserve like 1 MLN subscribers already.

  • @JamesMartin2014
    @JamesMartin2014 4 года назад +19

    Great tutorial. I really like how well you laid out this content. I'm a network engineer and while I knew how to do all of this networking, I wanted to see how you explained it for laymen. Fantastic stuff. I also completely muffed my own proxmox setup, I didn't realize you could pass through NIC's so easily. I made an OVS bridge for the WAN, I don't want to talk about it :( One little change I would make is on the LAN gateway address. While you can always make the gateway whatever IP you want on the subnet, I really like to keep it to either the first address in the subnet, or the last address in the subnet. Remembering a random address is difficult years down the line and if you ever need to add a statically configured network device, its easier to remember first address or last address. Anyway, just my $0.02.

    • @TechnoTim
      @TechnoTim  4 года назад +2

      Thank you so much!

    • @Nur__
      @Nur__ 2 года назад

      Makes a lot of sense

  • @hzaphry
    @hzaphry 2 года назад +1

    Is it possible to utilize pfsense on proxmox using only laptop with one NIC using VLANs. I know you elaborated on these subjects but not in such combination. Thanks for you help

  • @axelolaussonholtenas5087
    @axelolaussonholtenas5087 3 года назад +3

    IOMMU dont forget that. But how do i enable it? I have tried before but idk if i got it work in bios i have vtd and trusted and Intel Virtualization Technology for Directed I/O but trusted is off

  • @wmhp1
    @wmhp1 2 года назад +1

    How does this work with your ubiquity gear (udm-pro)? I’m in a similar situation and just wanted your thoughts.

  • @kodemasterx
    @kodemasterx Год назад +1

    Even though I have a PCI network card with two ports, adding them as PCI cards in Proxmox did not work for but instead as NICs, the rest was flawless, thanks for the video man, I dropped a sub as well.

  • @alexmeave6653
    @alexmeave6653 2 года назад +1

    If I disconect the ISP router to connect to the WAN port, then who is providing the IP address to proxmox so I can control it?

  • @choppergirl
    @choppergirl 10 месяцев назад

    I'd do this, but there is a major downside.
    When you have to take your ProxMox server it's hosted on down, or it goes down, there goes the internet down for everybody.
    You might need that internet to download something to get your server back up... which means you'll be digging out your dedicated DD WRT router appiance and plugging it all back in again. I'd keep it at the handy to do the switcherroo in a pinch.
    My appliance is a WRT3200ACM which is more than beefy enough for anything I throw at it, over kill even... so no benefit for me to do this.

  • @rbrjoel
    @rbrjoel 4 года назад +4

    Seriously the most helpful tutorials on RUclips, thank you!

    • @TechnoTim
      @TechnoTim  4 года назад +1

      Glad it was helpful!

  • @traderpedroso
    @traderpedroso 2 года назад

    question how can include proxmox web on same network as you pass hardware pci direct to pfsense im trying to acess proxmox direct from pfsense network ?

  • @bousbouss
    @bousbouss 3 года назад +2

    Perhaps good thing to mention in a comment is that you need IOMMU enabled. I went and watched your "before I do anything" video and you explained it great there. Quick reference would be nice because I got stuck when I wanted to start the VM.

    • @bousbouss
      @bousbouss 3 года назад +3

      ​@Régis Loyauté The fact I didnt know kind of hightlights the absence of common knowledgde. These videos arent made for veterans of virtualisation as far as I'm aware.

    • @jothain
      @jothain 6 месяцев назад

      This something worth noting indeed. I personally ran into lack of IOMMU on one older hardware. Let's be real. There's a lot of vids that recommend turning old device into Proxmox server and in certain situations user will severly get hampered with lack of its support. I was looking into sharing gpu to vm and ran into lack of IOMMU hardware support.

  • @Franchyze923
    @Franchyze923 2 года назад

    If my server already has a 4 port NIC, and I'm only using one port. Would I still need to install a seperate PCI NIC?

  • @idriskautsar757
    @idriskautsar757 3 года назад +1

    please make video about openmediavault with proxmox, how the right way we do the config,
    for share storage, and storage for CCTV using FTP/SFTP protocol and others what that openmediavault can do,
    by the way, thanks for explaining clearly, i like a way you explain

    • @TechnoTim
      @TechnoTim  3 года назад

      Hey sorry. I don’t use omv

  • @nanonerd
    @nanonerd 3 года назад +1

    Thank you for this video, and for your channel. I do have a question. I have a similar setup as seen in the 2:22 mark of this video (onboard NIC and dual NIC card). My onboard NIC is attached to my switch via a green cable. My WAN port is plugged into my provider's cable modem via a white cable and my LAN port is plugged into my switch via a black cable (BTW, same switch that the onboard NIC is plugged into so that I can go to Proxmox web UI). pfsense seems to be working with this setup, but how do my Proxmox VMs get their Internet? Since the dual NIC card is being passed through to the pfsense VM, and other VM will not see this card. Is there something I need to do in Proxmox or pfsense to bridge the two?

    • @TechnoTim
      @TechnoTim  3 года назад

      Make sure you create a network bridge where all your physical and virtual devices can communicate with each other

  • @Cleanser23
    @Cleanser23 3 года назад +1

    just fantastic. I have been prepping my own home server and was sweating because I wasn't sure what to do to isolate it from the network.
    "Is it safe to host?"
    "whats pfsense even do"
    "should i buy dedicated hardware"
    "where WAS that lasagna!?!"
    and this video made it so clear. Thank You

  • @DesertCookie
    @DesertCookie 4 года назад +1

    Just wanted to let you know that the German subtitles on this video are absolute garbage. They look like a machine translation plus Google Translate had a bad day. I recommend removing them as they aren't even readable half of the time.

    • @TechnoTim
      @TechnoTim  4 года назад +1

      Thank you! I relied on the "machine" . I will just have to forgo them for now. Thank you for the feedback!

  • @socialfreak6900
    @socialfreak6900 3 месяца назад

    Could I use the motherboard NIC as WAN and the PCIE NIC as LAN? Made the mistake of buying a single port NIC

  • @imax2k2
    @imax2k2 4 года назад +2

    Hi Techno Tim, I’m new to proxmox, and I’ve been trying to follow this. I have two 10gb nics which i am passing both via pci as per the video, however as soon as I start the VM I loose network connection to the device. It seems since I’m passing the hardware, the ssh/proxmox’ webinterface become unavailable. What should I be doing differently? thanks again.

    • @TechnoTim
      @TechnoTim  4 года назад

      Do you have a 3rd NIC?

    • @yeahforbes
      @yeahforbes 4 года назад

      On a server with only 2 NICs, instead of passing both directly to pfsense via PCI passthrough, is it possible for pfsense to see only 1 physical NIC (via passthrough) and also 1 virtual NIC, where the virtual NIC is configured to bridge Proxmox with the other physical NIC? I think that would solve the problem, and it's what I hope to do as well.

    • @bandit8623
      @bandit8623 2 года назад

      @@yeahforbes also adds security issues. really should dedicate 2 nics to the vm. and have 1 dedicated to proxmox. so really need 3 physical ports on your machine for basic setup

    • @yeahforbes
      @yeahforbes 2 года назад

      @@bandit8623 I implemented my 2 nic idea soon after I wrote about it, and it's been working for me since then. What is the threat model you're referring to?

    • @bandit8623
      @bandit8623 2 года назад

      @@yeahforbes if you have a nic not direct pathed to the vm it has more chance for vulnerabilities. especially if you have other vms on that same shared nic.

  • @ViktorWingqvist
    @ViktorWingqvist 2 года назад

    Is this possible to do with only 2 ethernet ports? I have a pcie card with 1 ethernet port, and I also have the standard one on the motherboard. In 2:22 I can see that the red wire is probably connected to whatever computer is used to connect to the proxmox web interface.
    Trying it out for myself with just 2 ports made my setup, as expected, go down :)
    I will try again with a USB-ethernet dongle or the onboard wifi (if I can get it to work) so I can access the web-interface..

  • @hamhumtube
    @hamhumtube 4 года назад +1

    for those who cannot buy dual nic please make a tutorial for vitualizing nics too (if possible) There is virtual switch possibility on proxmox but have no idea how to set safely. please advise.

    • @TechnoTim
      @TechnoTim  3 года назад

      You can also do it with one additional, just create a linux bridge!

  • @TravisTy2cMe
    @TravisTy2cMe Год назад

    Proxmox running PFSense + TruNAS Scale + Ubuntu ++ PlexServer ++ SMBA ++ Home Security Video/Audio/Alarm

  • @voiceoftreason1760
    @voiceoftreason1760 3 года назад

    I ran into the error:kvm: -device vfio-pci,host=0000:03:00.0,id=hostpci1.0,bus=pci.0,addr=0x11.0,multifunction=on: vfio 0000:03:00.0: device is already attached
    TASK ERROR: start failed: QEMU exited with code 1
    this was because I followed exactly what you did and ticked the box 'enable all functions' on all four ethernet ports of my pcie quad nic card. This made it so it tried to bind the whole card 4 times which isn't possible. Not ticking the box for all four of them solved the issue for me.

  • @fanshaw
    @fanshaw 6 месяцев назад

    Warning: if something goes wrong with your virtualisation platform, you lose internet access, unless you have a multi-node cluster.
    In line with enterprise convention, I tend to keep critical things (which usually change rarely) separate from non-critical things (which tend to change more frequently). My NAS/virtualisation host changes far more frequently than my firewall, and I want my firewall to be up, even if my NAS is down - in fact, I need my firewall up _especially_ when my virtualisation host is down.

  • @johnconnorstopskynet
    @johnconnorstopskynet 2 года назад

    I get an error when the VM starts up:
    vfio-pci 0000:03:00.0. Invalid PCI ROM header signature: expecting 0xaa55, got 0xffff
    Since it's configured to run on startup my whole server is now down.

  • @GhostZodick
    @GhostZodick 4 года назад +4

    I went through the same research journey around the same time. I also seriously thought about putting pfSense on virtual machine. Eventually I decided to purchase a dedicated hardware for pfSense because of all the reasons people talked about on the internet. I probably would try to visualize it if I saw your video earlier. Now my whole set up is already completed, and it's very stable. I don't want to mess with it.

    • @TechnoTim
      @TechnoTim  4 года назад +1

      Whatever works for you!

  • @alxhsa
    @alxhsa 2 года назад

    This may be a stupid question, but I'm trying to install pfSense on a VM on my Proxmox server where I just installed a new dual Ethernet port card. However, it's currently plugged in via the Ethernet port that came with the server. It sounds like in order to complete the pfSense install, both WAN and LAN ports must be plugged in and link must be up. Should I plug one of the ports on the new card to the WAN port on the carrier's modem and the other port on the new card on the Ethernet switch I have? If I do this, I would lose internet access momentarily, until the installation and configuration is finished. I guess I would need to access the shell directly on the server, not the web GUI. Also my Proxmox currently has vmbr0 Linux Bridge set up. I suppose I would keep that for the VMs I've been running on it but for the pfSense VM should I create a new Linux Bridge? Thanks in advance.

  • @RealKeytones
    @RealKeytones Год назад

    If our server has multiple nics can we just use one we’re not currently using instead of installing a separate card can’t we?

  • @ChristopherDoherty-y3f
    @ChristopherDoherty-y3f 7 месяцев назад

    two things....why did you add pci device and not network device card as i've seen in all other similar vids?....secondly, as feedback - thanks for posting. apart from knowledgeable and simple to follow, it's calm and easy to listen to...

  • @sanjeewasamaranayake
    @sanjeewasamaranayake 4 года назад +1

    Need your help. looks like you have already fixed the PCI pass through issues beforehand so you are not discussing in the video here. As such my question and your answer will help lot of people who will come here. I am on 6..24 proxmox and done all updates yesterday. I have HP NC364T PCI-E Quad Port Gigabit Ethernet adapter IBM 39Y6137 Intel PRO/1000 installed before I build proxmox. I read that this Card is working with Proxmox. When in the node->Hardware->Network I can see 5 NICs (one built in to Dell and 4 from the Pcie card).
    When I try to add PCI device for PFsense VM as you did in your video I get "No IOMMU detected, please activate it.See Documentation for further information". displayed on the top which was not in your video. So my question is
    a) is there any stetting in hardware bios?
    b) Do I have to follow this guide pve.proxmox.com/wiki/Pci_passthrough and do something
    c) Do I have to create linux bridges for additional NICs?
    One person had the following method to solve similar issue but not sure as my one if not specific to NICs but for all PCI devices
    create the directory /etc/default/grub.d
    create a file ending with “.cfg” in that directory.
    add the following to it:
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT} intel_iommu=on"
    run update-grub.
    Rebooted and everything works- see here
    Kindly advise what I need to do. Thanks

    • @EsotericArctos
      @EsotericArctos 4 года назад +2

      I had the same issue with IOMMU, guessing because I am using a Core i7 and not a Xeon processor. I just followed instructions on pve.proxmox.com/wiki/Pci_passthrough. Solved that problem . Had the issue @vfxfan had as well, so just followed instructions as listed. Guessing when I do PCI passthrough it is passing through the entire card, therefor passing through all the NICs together :)

    • @TechnoTim
      @TechnoTim  4 года назад

      Thank you! Good call out. You do need to enable IOMMU. I skipped over that. Sorry!

  • @jaxroofing
    @jaxroofing Год назад

    Hi, I can start pfsense without adding the 2 pci card, when I add the pci card I get "TASK ERROR: start failed: QEMU exited with code 1"

  • @LivioHenery
    @LivioHenery Год назад

    Might be late to the party, followed your video and worked perfectly (thank you) only thing is if I reboot the vm (for pfsense) I don't get a WAN ip back, only way to get it is to reboot the Proxmox server, can't find anything to point me to the correct direction

  • @l1mL
    @l1mL Год назад

    is there a way to make segmentized network inside of virtualized firewall? i mean to deliver tagged vlans to pfsense or in my case Sophos XG Home firewall, through truenas (in my case Scale) thanks :)

  • @MatthewDickensmjd
    @MatthewDickensmjd Год назад

    How does this work when you want to use this as your main router from your ISP. Currently I have a consumer router that allows me to connect to proxmox. How do I swap over to pfsense by plugging my wan port into proxmox and having my lan still work. Do I need to configure proxmox in the same address space as my current router?

  • @rukako
    @rukako Год назад

    Hi i have try but pfsense give ip to my devices but they can not connect to the internet do you have any clue why? thanks

  • @ierosgr
    @ierosgr 4 года назад +1

    Hi Nice Vid!! At 3.48 you mention that you can pass-through of a 4 nic card only the 1/4 portion of it?? How is that possbile? I am used to Unraid on which you need to exclude the specific pci device you want to pass first and afterwards to give it to the VM.
    Even more difficult if that device is a motherboard controller (usb, nic). Is it possible in Proxmox to pass-through motherboard controllers without braking things? Isn t in Proxmox mandatory the passed through device to be in its own iommu (so iommu capable motherboard needed?)
    Last but not least did you have to put your isp's modem in bridged mode in order for this to work?
    Thank you

    • @TechnoTim
      @TechnoTim  4 года назад

      ierosgr you can split up IOMMU groups in Proxmox with config! Not sure about splitting integrated motherboard items. Didn’t have to do anything different for my ISP’s modem. A NIC is a NIC to them.

    • @ierosgr
      @ierosgr 4 года назад +1

      @@TechnoTim At the start of the video you show up an intel nic which is an external pci device. Afterwards show you passing through a broadcom (so an intergraded one) Which of the two did you pass to Pfsense? Why a nic card differ from a gpu device and you dont have to enter conf files to exclude it from Hypervisor at boot like a gpu?

  • @emoisit
    @emoisit 6 месяцев назад

    Hi Tim. You need to put a space before 'Techno' for the link to the HP Dual Gigabit NIC so the link works.

  •  3 года назад

    Tnks for the help, @Techni Tim!
    If anyone get a error like this -> "TASK ERROR: KVM virtualisation configured, but not available. Either disable in VM configuration or enable in BIOS." - Please, follow this steps to solve!
    Bye!

  • @cusciify
    @cusciify 3 года назад

    Hi Techno Tim. I've tried to setup pfSense as you di but everytime i start the pfSense VM i've Lost access to proxmox even if i have the server connect with a cable to LAN access with the ISP modem/router and a cable of my PCIE card connected with the WAN of the ISP. I've tried also to check the Netscape guide to virtualize pfSense on Proxmox but in that case pfSense can't take any WAN IP. Any suggestion on what to do?

  • @miHah
    @miHah Год назад

    If I do this and my pfsense VM doesn't boot - can I still access proxmox?

  • @TimmyNET
    @TimmyNET 2 года назад

    Just did this but having issues connecting to the internet. WAN dhcp is enabled and pulls an IP but nada. Any ideas? I did have IOMMU issues went through all that and got that resolved. I have a four port pci e nic that is being used for my wan and lan. I can access the gui but no internet.

  • @jesusa1453
    @jesusa1453 2 года назад

    Bro!, IPv6 Config please, is a head ache for me, I have only the lan IPV6 working GW is not working

  • @Zachsnotboard
    @Zachsnotboard Год назад

    Could I connect a switch from NIC to add more physical devices ?

  • @RayHorn5128088056
    @RayHorn5128088056 3 года назад

    I did not virtualize my router because the router has to be dedicated to it's own machine and I repurposed my Nuc because it has two Intel Nics and this machine is my slowest computer. Go Intel!

  • @itspat87
    @itspat87 2 месяца назад

    Hey question, what is the red ethernet cable in the back of your virtualization hosting server at 2:21 for?

  • @shyuhei
    @shyuhei Год назад

    Can I do it with Proxmox Virtual Network? I don't have a network card to add extra. Thanks for the video

  • @Dyrud19
    @Dyrud19 7 месяцев назад

    Hello, nice video ! How do you connect other physical PCs to that virtualized router ?

  • @TanjilBhuiyan
    @TanjilBhuiyan Год назад

    How will all the virtual servers get ip? Also the proxmox will have a different network? Hiw will the whole thing work

  • @NextLevelCode
    @NextLevelCode 2 года назад +1

    When did Johnny Depp get into IT?

  • @KlausDieter764
    @KlausDieter764 5 месяцев назад

    if i get this right, the one that goes out is goin into a switch, than its going back into my server (motherboard) lan, so my other vms have internet access as well.

  • @issaissa7240
    @issaissa7240 Год назад

    Hello i got an issue, my dhcp not work on physical computer, only on virtual machine, can u help please

  • @bearhntr928
    @bearhntr928 10 месяцев назад

    Great Video - first TechnoTim I have seen. Great job explaining and sharing. I have been using pfSense about 2 years now on an HP t620+ ThinClient with an added 2-port Intel i350-T2 card. Been working great, but I have this awesome Workstation class machine I want to use for ProxMox. I have 8.0.9 installed there, and I am just beginning. I purchased a 4-port i350-T4V2 for this box, and it is working fine. In the t620+ I had disabled the on-board NIC as was not using it.
    I know that ProxMox requires a NIC for accessing the host/dashboard, but can it be one of the 2-ports I will use on the i350-T4? I have a cable from Cable modem to port 0 on the 4-port and cable from port 1 to the Netgear Orbi (wifi AP)...as it has a satellite in the other end of the house where the office is - so that I have Wired (per se) access back there and wifi is stronger. From the Orbi (at the ProxMox box & modem - there is a cable into the on-board NIC of the ProxMox host). If I unplug this, I lose access to the host dashboard.

  • @borolo222
    @borolo222 2 года назад +1

    Hi Tim, great tut. Had to do some IOMMU separation to get it to work but finally did it and working. Now, I have PFsense running inside vm giving its own network and dhcp to everything comming out through the lan port. So far so good. I want now to place the proxmox host behind pfsense as well and leave the primary modem only passing traffic to pfsense with DMZ. I just need to plug the nic (using proxmox) to the switch but before change de ip address? I'm not sure how to do this.

    • @joanandestin4201
      @joanandestin4201 2 года назад

      If Pfsense is running within Proxmox and connect to a modem, isn't promox exposed to the internet. Is it safe to just reroute all the traffic go through Pfsense including the other VM and CT?

  • @sirdewd2197
    @sirdewd2197 8 месяцев назад

    7:01 how do you know what your LAN should be? I understand the WAN, but not how the LAN was wrong.

  • @warcolour
    @warcolour 3 года назад

    I have a error if I try to start pfsense in proxmox. Is there a way to solve this. :(
    kvm: -device vfio-pci,host=0000:08:00.0,id=hostpci1.0,bus=pci.0,addr=0x11.0,multifunction=on: vfio 0000:08:00.0: device is already attached
    TASK ERROR: start failed: QEMU exited with code 1

  • @AI-EXREYFOX
    @AI-EXREYFOX Год назад

    Hello, my networking setup at home are ONT and a openwrt router.
    Can i set the pfsense on the midle of the ont and router

  • @AceBoy2099
    @AceBoy2099 2 года назад

    I'm sure it's been covered (in fact I know of 1 other creator that has) but running Unraid on Proxmox, I followed his skim-through and I can see it in the console but cant connect. Maybe in it elaborate on selecting network interfaces (cards) to split them among the chassis (Proxmox) and vms (PfSense, Unraid, and TrueNAS at least)
    And longshot but if you have a multi-day chassis (like my sc846) how to specify specific bays to certain vms (not specific drives, that way any drive inserted into "bay 20" will be assigned to vm X.

  • @longb1913
    @longb1913 2 года назад +1

    would be helpful if you went through IOMMU and PCI passthrough for those NIC cards to be accessed by the VM

    • @TechnoTim
      @TechnoTim  2 года назад +1

      Check out my gpu passthrough video, same process!

    • @longb1913
      @longb1913 2 года назад +1

      @@TechnoTim if u blacklist your ethernet cards like with GPU does that mean other VMs don't get internet? this process doesnt seem straightforward and i cant find alot of resources online for NICs

  • @DJaquithFL
    @DJaquithFL 4 года назад +3

    My concern would be latency and in particular erratic latency. My router and gateway are dedicated purpose built hardware. Clearly I'm not undermining your video or intention, just a side note. I play twitch (FPS) games where a stable low latency is king. Great video 👌

    • @TechnoTim
      @TechnoTim  4 года назад +2

      Thanks for the comment! My pings are pretty low and consistently low (26 ms to Overwatch servers, 40 ms for Apex).All connections are physical since I am passing through the hardware to the VM and everything else is in memory.

    • @DJaquithFL
      @DJaquithFL 4 года назад +2

      @@TechnoTim .. It's all the background tasked to the CPU in a VM, I'm not even remotely suggesting it can't or shouldn't be done. Maybe a comparison video 😎👍
      Thanks for the reply and good luck on your channel, interesting videos.

    • @TechnoTim
      @TechnoTim  4 года назад

      Thank you for the suggestion!

    • @guywhoknows
      @guywhoknows 4 года назад +2

      @@DJaquithFL I could answer some of this.
      Most routers will use very lower power and small amounts of RAM, you would in most commercial devices have a 400Mhz CPU and around 128MB Ram. therefore the foot print of this is small on a "VM" providing that the node is not over loaded, modern and typically not slow or performance degraded via other software running on the same hardware.

    • @DJaquithFL
      @DJaquithFL 4 года назад +1

      @@guywhoknows .. Just my observations .. I have the best experienced when I'm at home alone not sharing our 500/500 Mbps connection even with a QoS.
      FPS gaming is about milliseconds (ms), priority and not losing packets in UDP. Example of 2 people shoot simultaneously: 1. Lost Packets are the same as you not shooting; 2. Latency spikes up even a few milliseconds the server reads as your death, first shot wins.
      Now if you're streaming e.g. Netflix via TCP .. latency spikes, lost packets, buffer bloat, etc are not noticeable and therefore irrelevant.

  • @markbifferos2765
    @markbifferos2765 9 месяцев назад

    Hi TechnoTim, I hope you are able to answer one silly question about this setup: When experimenting with different virtualised router OSes I find the default LAN networks vary from product to product. And I like to just use the defaults most of the time in case changing them gives unexpected problems. This gives me a quandary about where to put my PVE management interface. I prefer to put it on the LAN, but that means it invariably ends up on a network number different from whatever I'm running for a router. So I have no access unless I mess with my network settings on my PC. Then I have to change them back to test out the router behaviour. I just wondered how you manage this problem in your setup, or do you just live with it?

  • @msshingo3577
    @msshingo3577 2 года назад

    could VMs connect to other physical servers in a lan network with pfsense ?!!

  • @davidnickel3949
    @davidnickel3949 11 месяцев назад

    i got further with 8.0 then others version with this guide ty i have an older intel dual 100 nic that i may use as new is not in the cards yet lol.

  • @Ferrmorte
    @Ferrmorte 3 года назад

    I've tried this guide twice now, and it bricks my Proxmox file system every time forcing fresh install. I think it's either the VirtIO Block setting, or adding the PCIE card directly. Could you explain those more?

  • @Franchyze923
    @Franchyze923 2 года назад

    Any thoughts on installing with zfs? Seems to be the default these days

  • @sakodv7137
    @sakodv7137 2 года назад

    but how do the other vmsget internet access? do u use another port on ur pc and connect it to your switch/pfsense lan?

  • @johnnyg3606
    @johnnyg3606 2 года назад

    I was considering virtualising pfsense in proxmox but concerned about exposing my proxmox machine directly to the internet by placing it upstream of the firewall it is virtualising. Is this a concern? How did you mitigate this please. Thanks

  • @JaZzDeOliveira
    @JaZzDeOliveira 2 года назад

    Hi, Do you know how I could enable my computers that obtains network access from the virtual pfsense to be able to reach the proxmox servers webinterface? So for example if I have a virtual PC hosted on proxmox and its network is obtained from the virtual pfsense, how would I then allow for that virtual PC to be able to reach the proxmox interface?

  • @rtisma
    @rtisma 2 года назад

    @Techno Tim Thank you for the great video! I'm just scoping out the work I have a head of me, and want to know, can you access the proxmox UI via web from an IP dealt by the pfsense VM? Ideally i would like proxmox to be accessible from the virtual router, instead of the physically accessing the proxmox service with a keyboard and mouse. So my usecase is simple: access proxmox from my desktop that is connected to my virtual pfsense router.

  • @francescocatrambone166
    @francescocatrambone166 2 года назад

    Very helpful video, thanks! I have a question though if you don’t mind! Say i create a linux bridge to the passed-trough LAN port to allow connectivity between my other VMs and the physical switch managed by pfsense. Will the VMs bypass the pfsense firewall? Or will they be routed trough it? Thanks!

  • @victorshane4134
    @victorshane4134 3 года назад

    For starters this router Software going to cause some headache, especially for those must log into the isp via pppoe. In that case, if you have no ip on wan during first configuration of the interfaces, doesnt matter, you have to log into the web configurator and configure your wan interface, if still no change is detected, swap your cables and done, but with only two interfaces, if you cant get into the web ui, you have to swap cables and done, configure your wan. After all, i saw a mistake in the video, he accidentally or not, passed the same pci device to the vm twice, secondly you not really explained why you choosed the gateway to be on the ip 11. So this can be a little confusing.

  • @justbored3.14
    @justbored3.14 2 года назад

    what budget hardware do you recommend i buy so i can build a hardware pfsense to use as a firewall. i don't want to virtualize it. gonna use it at home non commercial use.

    • @TechnoTim
      @TechnoTim  2 года назад

      Check out all the gear I recommend here l.technotim.live/gear

  • @alexzendermarunsai
    @alexzendermarunsai 4 года назад +1

    I guess it's time to smash my buggy tplink router and say hello to virtual router. Cool tutorial as always. Keep it up man 👍

  • @johnbrown3908
    @johnbrown3908 3 года назад

    how about showing us how to setup pfsense in proxmox and using that vm as the router for a cluster

  • @whylde7834
    @whylde7834 3 года назад +1

    Thanks for the video! If dont have a 2 port NIC can I add an additional 1 port NIC to go along with the built in one on my mobo?

    • @hitechfl
      @hitechfl 3 года назад

      Yes

    • @offlercrocgod
      @offlercrocgod 3 года назад

      Yes but then your Proxmox server loses it's connection as the VM will take both NICs as soon as it's started.

  • @SxC97
    @SxC97 3 года назад +1

    So if your server is virtualizing your router, how would you connect the server to the internet? Like, how would the other VMs on the server have access to the internet? Would you have to plug the ethernet port on your motherboard into the switch that your NIC is plugged into?

    • @TechnoTim
      @TechnoTim  3 года назад +1

      All machines on the same network would get an IP address from the virtualized pfSense from DHCP, which means it would also do NAT.

    • @TechnoTim
      @TechnoTim  3 года назад +1

      Just be sure that gateway it hands out is your pfSense server. It works like anything else!

    • @SxC97
      @SxC97 3 года назад

      @@TechnoTim Hi Tim, thanks for answering my question on such an old video! I'm in the middle of setting up my first virtualization server and your videos have been an invaluable resource. You've definitely earned a subscriber for life! 🙌🙌🙌

  • @iceman997799
    @iceman997799 3 года назад

    i now can run all my pfsnese on one server having over 10 ips and wanting firewall protection for all was a headache. now with all of them on one machine i can monitor them easier than before. Just a note if running nic that have 4 ports i didn't check the all function it would disable the 4 port to a 2 port for some weird reason.

  • @МаксСоловьев-щ1ь
    @МаксСоловьев-щ1ь 2 года назад

    Какое преимущество по сравнению с mikrotik ?

  • @brightplastik
    @brightplastik 11 месяцев назад

    Hello Tim. I'm banging my head around a setup with a Chinese 6x ports firewall, proxmox and a openwrt lxc. I can't see LuCi, and the structure of CIDR and gateway is obscure to me. Is there a forum I can meet with you and have a chat? Are you on the proxmox forum?

    • @TechnoTim
      @TechnoTim  11 месяцев назад

      Discord is the best place! Links in description and lots of community help there.

  • @voodoovinny7125
    @voodoovinny7125 2 года назад

    Sure would be nice to have pfSense as an LXC instead of a VM.