How to Virtualize Your Home Router / Firewall Using pfSense

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.ค. 2024
  • It's time to say goodbye to your home router and start virtualizing it using Proxmox and pfSense.
    Video Notes: technotim.live/posts/proxmox-...
    pfSense Community Edition Download: www.pfsense.org/download/
    Get started with Proxmox today: • Proxmox VE Install and...
    Support me on Patreon: / technotim
    Sponsor me on GitHub: github.com/sponsors/timothyst...
    Subscribe on Twitch: / technotim
    Become a TH-cam member: / @technotim
    Merch Shop 🛍️: l.technotim.live/shop
    Gear Recommendations: l.technotim.live/gear
    Get Help in Our Discord Community: l.technotim.live/discord
    2nd channel: / @technotimtalks
    00:00 - Intro
    00:20 - Why
    01:40 - The Required Network Card
    02:04 - Hardware Install
    02:22 - Software Install
    02:40 - Proxmox Config
    04:55 - Install pfSense
    08:33 - pfSense First Start & Config
    09:56 - pfSense Tour
    12:53 - Package Manager
    13:39 - Conclusion
    (Affiliate links may be included in this description. I may receive a small commission at no cost to you.)
    📦 Products in this Video 📦
    10gtek Dual Gigabit Nic amzn.to/3f3SleV
    Intel Dual Gigabit NIC amzn.to/2B12Z7L
    HP Dual Gigabit NIC amzn.to/3gjgKyFTechno Tim Kits:
    ► 4K TH-cam Kit - kit.co/TechnoTim/4k-youtube-kit
    ► Pro Level Live Streaming Kit - kit.co/TechnoTim/pro-level-li...
    ► Budget Gaming Streaming PC 2020- kit.co/TechnoTim/budget-gamin...
    ► Performance Virtualization Server- kit.co/TechnoTim/performance-...
    ► Budget NAS Server- kit.co/TechnoTim/budget-nas-s...
    ► Coding & Gaming Keyboards- kit.co/TechnoTim/coding-gamin...
    ► Coding & Gaming Mice- kit.co/TechnoTim/coding-gamin...
    ⏯ Recommended Videos ⏯
    ► 20 Ways to Use a Virtual Machine (and other ideas for your homelab) • 20 Ways to Use a Virtu...
    ► Remote Gaming with Promox • Remote Gaming! (and Vi...
    ► Let's Build a Discord Bot Using DiscordJS - Moderator Bot • Let's Build a Discord ...
    #Proxmox #Homelab #pfSense #Virtualization#TechnoTim
    Description Tags: Techno Tim, technotim, vm, proxmox, homelabs, hyperv, hypervisor, install pfsense community eidtion, pfsense setup, nic passthrough, router, firewall, secure, firewall, router, homelab ideas, virtual machine ideas, kvm
    Thank you for watching!
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 573

  • @TechnoTim
    @TechnoTim  4 ปีที่แล้ว +42

    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 3 ปีที่แล้ว

      XD

  • @amosgiture
    @amosgiture 3 ปีที่แล้ว +86

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

    • @_JoeMomma
      @_JoeMomma ปีที่แล้ว

      Lmao risky

  • @sebastiaanstoffels7565
    @sebastiaanstoffels7565 3 ปีที่แล้ว +53

    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!

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +2

      Good call!

    • @mipmipmipmipmip
      @mipmipmipmipmip 11 หลายเดือนก่อน +2

      This is very useful, thanks!

  • @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!

  • @valeriomec214
    @valeriomec214 2 ปีที่แล้ว +2

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

  • @rbrjoel
    @rbrjoel 3 ปีที่แล้ว +4

    Seriously the most helpful tutorials on TH-cam, thank you!

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +1

      Glad it was helpful!

  • @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!!!

  • @Hazmatguy117
    @Hazmatguy117 2 ปีที่แล้ว

    Love playing around with Proxmox at home, it really impresses my boss when I talk above his head with tech stuff lol. Thanks!

  • @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.

  • @nixxblikka
    @nixxblikka 4 ปีที่แล้ว +1

    I really enjoy watching these videos, it is your relaxed way to present the topics and nice background music ! Keep up the great work

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Thank you very much!

  • @GhostZodick
    @GhostZodick 4 ปีที่แล้ว +3

    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!

  • @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

  • @haydenc2742
    @haydenc2742 ปีที่แล้ว

    Outstanding!!!! Thank you for this!
    What is cool, is since the host os is debian based, you can install and run netstat which gives MUCH more information about thruput on the nics

  • @Supperconductor
    @Supperconductor 4 ปีที่แล้ว +1

    That took some effort, but I got my NICs on the Dell R710 passed-thru and my network is up! I learned a heckuva lot along the way. Thanks Tim!

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว +1

      Nice work!

    • @Twylight85
      @Twylight85 3 ปีที่แล้ว

      @supperconductor @techno Tim Hey there. r720 running a pcie intel dual nic as recommend. Proxmox informs me that IOMMU is not present when I attempt to boot the vm. It’s enabled in the bios.... Followed a couple of GPU guides for pass through... what am I missing, guys?

  • @frankrobinson6615
    @frankrobinson6615 3 ปีที่แล้ว

    Techno Tim Rocks!!! Awesome content and delivery. Thank you.

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      Glad you think so!

  • @dionisierus5055
    @dionisierus5055 3 ปีที่แล้ว +2

    the production quality of your videos is excellent. Tutorials are short and helpful - no wasted time. Subscribed!

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +1

      Thank you so much!

  • @huplim
    @huplim 4 ปีที่แล้ว +1

    Great stuff Tim. Subscribed!!!

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Thank you! Glad you like it!

  • @roguestratus8449
    @roguestratus8449 ปีที่แล้ว +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 11 หลายเดือนก่อน

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

  • @OMGTheCloud
    @OMGTheCloud 3 ปีที่แล้ว

    Nice! I’m a big pfSense advocate. Subscribed!

  • @peterhast
    @peterhast ปีที่แล้ว

    Thank you for doing this, and the education, I appreciate it, it worked great.

  • @odirienduranceejitagha9499
    @odirienduranceejitagha9499 4 ปีที่แล้ว

    I had no idea before now I Know, Thanks for your video.

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Happy to help

  • @mesteme
    @mesteme ปีที่แล้ว

    This was so helpful, thank you

  • @LawrenceSingha
    @LawrenceSingha 3 ปีที่แล้ว

    No. 600 - excellent video and now you given me an excuse to do what you done VM of pfsense 👍🏼

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      You can do it!

  • @JamesMartin2014
    @JamesMartin2014 3 ปีที่แล้ว +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  3 ปีที่แล้ว +2

      Thank you so much!

    • @Nur__
      @Nur__ ปีที่แล้ว

      Makes a lot of sense

  • @lk-777-me
    @lk-777-me 2 ปีที่แล้ว

    Thank you for this video! Regarding CPU settings. To have AES-NI CPU Crypto: Yes, I selected Type: host (if the host CPU supports AES-NI, of course). And adding PCI nics (in my case Intel) didn't work with "All Functions" enabled. Maybe it doesn't work with this particular board. So I cleared this box.

  • @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 👍

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      ‘Atta boy!

  • @JuanLopez-db4cc
    @JuanLopez-db4cc 4 ปีที่แล้ว +2

    Thanks for this Video.

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      You are most welcome! Thank you for watching and commenting!

  • @lakshaynz
    @lakshaynz 2 ปีที่แล้ว

    This is the best guide

  • @reubenf1367
    @reubenf1367 ปีที่แล้ว +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 !

  • @NM-vw6xq
    @NM-vw6xq 3 ปีที่แล้ว +2

    Awesome video and tutorial! Thank you Tim! During this lock down, it was a great time to get something like this set up and your video was a huge help.

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      N M thank you! Glad it helped!

  • @notsure7874
    @notsure7874 2 ปีที่แล้ว

    Proxmox is great, and I have a whole lot of virtualized gear, but my router isn't one of them. I tried it, and quickly figured out why a router should be on its own hardware. The first time my power blinked - I was ordering hardware to run pfsense on the next day.

  • @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 3 หลายเดือนก่อน

      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.

  • @vfxfan9589
    @vfxfan9589 4 ปีที่แล้ว

    Wow great, please more pfSense tutorials!

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว +1

      I have quite a few tutorials, more to come! Check out the rest of my videos!

    • @vfxfan9589
      @vfxfan9589 4 ปีที่แล้ว

      @@TechnoTim Thanks!

  • @sophiethecat9256
    @sophiethecat9256 3 ปีที่แล้ว

    PFsense has gotten so much better looking

  • @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!

  •  2 ปีที่แล้ว

    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!

  • @digbijaypaul8474
    @digbijaypaul8474 2 ปีที่แล้ว

    Like the explanation.

  • @jelteswinnen6865
    @jelteswinnen6865 3 ปีที่แล้ว

    I like your videos!! Very good youtuber!

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +1

      Thank you very much!

  • @succubiuseisspin3707
    @succubiuseisspin3707 3 ปีที่แล้ว +4

    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.

  • @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? :)

  • @oah8465
    @oah8465 3 ปีที่แล้ว

    fantastic video, however on the pfsense installation guide for PVE it mentions the creation of vmbr1 and vmbr2 and assign them to eth1 and eth2 assuming vmbr0 and eth0 are reserved for managing PVE. So did you that step here?

  • @redraider1863
    @redraider1863 3 ปีที่แล้ว +2

    Thanks for the video! Really clear explanations. Question: in choosing all of your cores under the CPU tab, does that mean that there will no cores available for other VMs? If you have more than one VM, should you divide the cores between them?

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +3

      I over provision all my vms. Basically give them all available cores that the host has.

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      Also, thank you!

    • @redraider1863
      @redraider1863 3 ปีที่แล้ว

      @@TechnoTim OK, thanks!

  • @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.

  • @emoisit
    @emoisit 3 หลายเดือนก่อน

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

  • @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 ?

  • @MrGatya2
    @MrGatya2 ปีที่แล้ว +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?

  • @YannMetalhead
    @YannMetalhead หลายเดือนก่อน

    Good video!

  • @stuartfulcher5677
    @stuartfulcher5677 2 ปีที่แล้ว

    Fantastic tutorial @Techno Tim, I just have a question that I am struggling with this setup... Let's say you've dedicated both the PCI LAN/WAN NIC cards to the PfSense VM. Is it still possible/recommended to bridge your proxmox node to the same LAN NIC which is now dedicated directly to the VM? Or will I need a 3rd NIC for the proxmox node as well? I'd prefer to only have a single NIC for LAN and proxmox host for simplicity's sake.

    • @stuartfulcher5677
      @stuartfulcher5677 2 ปีที่แล้ว +2

      To answer my own question, as soon as I bridged my management network to the LAN nic dedicated to PfSense, I lost control of my hypervisor and had to edit /etc/network/interfaces on the proxmox server itself to revert the changes. I guess I will have to keep a dedicated 3rd NIC for management /clustering purposes for proxmox.

  • @johnbaker7993
    @johnbaker7993 3 ปีที่แล้ว

    Just recently found the videos and am enjoying them very much, but, I have a question...
    I think you mentioned this pass-through was done on a R710 (I could be mistaken)? If so, how did you get it to work? There seems to be Dell related laziness keeping an IOMMU/pass-through setup from working properly due to some unpatched Intel screwup.
    I usually just bridge interfaces on VMs when needed, but decided to try this out. Nothing has worked. I have a R610 and R710 here along with dual and quad port Intel Pros.
    Did you end up having to use the "Allow Unsafe Interrupts" option?

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      Bridge will work too if you don't want to pass through. I did not have to use Allow Unsafe Interrupts

  • @GopikrishnaS
    @GopikrishnaS 3 ปีที่แล้ว

    @Techno Tim Thank you for your video, I have used this to make a similar setup. But the nodes on the LAN are not able to connect to WAN. They can get IP addresses though. Any tips to fix this? Please let me know. Thanks in advance!

  • @mehdibelkhayat5088
    @mehdibelkhayat5088 3 ปีที่แล้ว

    Hi Tim,thanks for your great videos, I m interested to see how you implement vdi infrastructure solution with proxmox and open source tech you prefer to do that

  • @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.

  • @maksim4995
    @maksim4995 4 ปีที่แล้ว

    Thank you very much for so incredible manual! is it correct if I have two inbuilt NIC in my motherboard then in my case will be better use two bridges in Proxmox instead of PCI-passthrough?

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Thank you! I think that should work too!

  • @Rsantana380
    @Rsantana380 3 ปีที่แล้ว

    implementing this today

  • @terminalvelocity4858
    @terminalvelocity4858 10 หลายเดือนก่อน +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.

  • @davidnickel3949
    @davidnickel3949 8 หลายเดือนก่อน

    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.

  • @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

  • @sontechno1
    @sontechno1 3 ปีที่แล้ว

    Thank you for your video

  • @Dyrud19
    @Dyrud19 4 หลายเดือนก่อน

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

  • @francoiswilliams565
    @francoiswilliams565 3 ปีที่แล้ว

    Hi Tim, awesome video.
    I opted for OPNSense.
    I added 2 x NICS to proxmox and struggled getting them in different groups
    This is how I resolved that:
    In proxmox shell...
    >> lspci | grep Ethernet
    03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8161 (rev 15)
    06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8161 (rev 15)
    >> find /sys/kernel/iommu_groups/ -type l | grep 03
    Showed both nics in group 7
    /sys/kernel/iommu_groups/7/devices/0000:03:00.0
    /sys/kernel/iommu_groups/7/devices/0000:06:00.0
    Edited grub as follows:
    >> nano /etc/default/grub
    GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on pcie_acs_override=downstream,multifunction"
    >> update-grub
    >> shutdown -h now
    and switched the server on again. I could then add the NICs to my VM.
    Noob dilemma. Please help me getting to my VM
    -- Laptop connected via router (192.168.21.1) to proxmox host (192.168.21.10)
    How can I connect to the host as well (or interchangeably) to the OPNSense VM?

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      Francois Williams how many nics do you have total?

    • @francoiswilliams565
      @francoiswilliams565 3 ปีที่แล้ว

      @@TechnoTim 1x Onboard + 2 PCIe cards each with a single port.
      The onboard one I want to use to manage the proxmox server and the other two cards for WAN and LAN.
      Just not sure how to do the above. Thx for replying.

    • @francoiswilliams565
      @francoiswilliams565 3 ปีที่แล้ว

      Hi Tim
      You mentioned in the video that you manage your proxmox server using your laptop. How do you do that without using a secondary router (i.e. not the opnsense wan interface)?

  • @user-gd9nd2br9o
    @user-gd9nd2br9o 4 หลายเดือนก่อน

    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...

  • @searchingsome1
    @searchingsome1 3 ปีที่แล้ว

    Thank you for great video, Tim!
    Do you get good performance on your pfSense running in Proxmox? I get max 50mbps on 100mbps link with Squid and PfBlockerNG running. Have turned off hw checksum offload, played around with amount of RAM & CPU cores, but no luck. Was also running ntopng for a while, but itdecreases performance, so I removed it.
    I am running it on i5-7500 CPU with host CPU type, 4 to 8 gigs of RAM. Mifro form factor Dell PC, one interfaces is usb-to-ethernet. Tried different settings for it, but no luck as well.
    Do you have any ideas what can be the reason for that?

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +1

      Hey! NP! My perf is normal when virtualized. I’ve heard of people having luck by setting their CPU type to host when virtualizing but I’ve never tried it. LMK!

  • @hzaphry
    @hzaphry ปีที่แล้ว +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

  • @bearhntr928
    @bearhntr928 7 หลายเดือนก่อน

    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?

  • @sy5tem
    @sy5tem ปีที่แล้ว

    a little update for all , you can get a pfsense + home subscrition now so more features for free ! btw great video(all of them that i saw ) mister tim

  • @aquinamedia4508
    @aquinamedia4508 3 ปีที่แล้ว

    How is the hypervisor acting on the open WAN port? Thinking with regards to open ports, updating etc.

  • @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

  • @sanjeewasamaranayake
    @sanjeewasamaranayake 4 ปีที่แล้ว

    Thanks for this great video. It is a good idea to do it from security point of view to have your proxmox server open to internet if you have all other important VMs in promox itself? I had been thinking about this but was bit concerned. I am building a new proxmox server so I am thinking it again. I have unifi USG as my router now but it lacks lot of good feature other than nice graphics

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      I don't see any security issues if you are passing the WAN NIC directly though to your network firewall appliance.

  • @exjts
    @exjts 3 ปีที่แล้ว

    Hey, great video! Can you speak to theb tradeoffs in virtualizing and running pfSense through proxmox vs pfSense on bare metal? While this seems really cool, I do wonder about the overhead in virtualizing and what benefits I'd gain. The main one I see is in essentially being able to overprovision a server and essentially create "multiple" servers, though with a potential performance hit. Also possibly easier for backup and recovery?
    Also, related to above, would I be able to run a proxmox box with pfSense in 1 vm and e.g. Postgres in another all with 1 nic, or would I need multiple? It seems like I'd need 1 for wan and 1 for lan, plus ANOTHER for Postgres or any other servers. If I can do it all with one, is it even recommended? Feels like a security risk with possible performance issues also, intermingling all that traffic.
    Sorry for the wall of text!

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +2

      Yes, easier for backup and recovery, also easy to switch out to something else. the downside is the internet goes down while your server reboots, which is rare but still there.

  • @lelandclayton5462
    @lelandclayton5462 3 ปีที่แล้ว +5

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

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +2

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

    • @lelandclayton5462
      @lelandclayton5462 3 ปีที่แล้ว

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

  • @derricklamers4857
    @derricklamers4857 3 ปีที่แล้ว

    Tim, I love your videos but had a quick question. Do you have failover for your virtualized firewall? I currently have pfSense virtualized on Proxmox but every time I need to reboot Proxmox, I bring down the network.

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      Thank you! I do not. That’s one of the cons of virtualizing anything, if you reboot the host the guest goes down.

  • @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..

  • @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 :)

  • @markbifferos2765
    @markbifferos2765 6 หลายเดือนก่อน

    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?

  • @WalkedDave
    @WalkedDave ปีที่แล้ว

    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

  • @jakesllama
    @jakesllama 4 ปีที่แล้ว

    Dude thank you that's awesome. Where would you save the ISP account details though? Do you use a switch for extra ports?

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว +2

      Yes I do. My ISP information is a DHCP address on my WAN NIC, nothing to configure there for me.

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Thank you! Also, yes, I do use a switch for extra ports. My LAN NIC goes to my switch.

  • @Franchyze923
    @Franchyze923 ปีที่แล้ว

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

  • @wangshuokevin
    @wangshuokevin 2 ปีที่แล้ว

    Can you use SRIOV instead of passing the whole nic? So you still can have some VFs for your other VMs.

  • @wshyangify
    @wshyangify 2 ปีที่แล้ว

    Is it possible to route traffic from your proxmox hypervisor out through the pfsense vm? Without having to use an additional port to connect the hypervisor box to the switch?

  • @rkbest9783
    @rkbest9783 2 ปีที่แล้ว

    Tim, how did you connect the host OS to pfsense once its setup. As you used two ports passtrhough to pfsense (physically from the quad port), the host proxmox should also be on the LAN side. Will that use a physical connection from the pfsense LAN>switch>LAN3 (cable) or something else? Secondly, do you disable firewall option in the natwork setting of proxmox VM?

    • @TechnoTim
      @TechnoTim  2 ปีที่แล้ว

      The lan should then connect to your switch. As for firewall on vm, yes disable in proxmox

  • @alxhsa
    @alxhsa ปีที่แล้ว

    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.

  • @socialfreak6900
    @socialfreak6900 8 วันที่ผ่านมา

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

  • @HectorDC02
    @HectorDC02 4 ปีที่แล้ว

    hey man thanks for the video, i have a couple of questions can i use my normal router then connect the virtual router for use the vpn service? or it needs to be directly connected to the ISP provider modem?

    • @TechnoTim
      @TechnoTim  4 ปีที่แล้ว

      Hi! If you were to do that, you don't need 2 routers, just use your physical router then install OpenVPN in a virtual machine or a Docker container.

  • @AceBoy2099
    @AceBoy2099 ปีที่แล้ว

    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.

  • @RBoulanouar
    @RBoulanouar 2 ปีที่แล้ว

    Great video. Thanks.
    However the vm needs to be the first to hit the traffic and we need to ensure all Others vm access internet through pfsense. Can you share the iptable rules you have in place to ensure that? Thx

  • @anirbandutta1371
    @anirbandutta1371 2 ปีที่แล้ว

    Great Video ...I am new to networking ... If we virtualize the router given by ISP, how would we create a wireless network for this ? ..I suppose the NIC adapter will create only ethernet network ?

    • @TechnoTim
      @TechnoTim  2 ปีที่แล้ว

      Hi! Yup, just connect a router to your LAN/Switch/Ether net and then turn off DHCP and routing. That's what I did! Then your old router just becomes and Access Point!

  • @Suriprofz
    @Suriprofz 10 หลายเดือนก่อน

    So all other vms and the host should use the vmbr u mapped to lan right?

  • @Zachsnotboard
    @Zachsnotboard ปีที่แล้ว

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

  • @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

  • @NicAslett
    @NicAslett ปีที่แล้ว +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?

  • @perfect.stealth
    @perfect.stealth 3 ปีที่แล้ว +2

    Is no one going to mention how much you look like Johnny Depp?
    Never the less, i love your tutorials. Easy to understand.

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +2

      haha thank you!

    • @OccupyEtcheverry
      @OccupyEtcheverry 3 ปีที่แล้ว

      @@TechnoTim +1 agree with Suleiman. if johnny deep was a sys admin he would be u lol

  • @traderpedroso
    @traderpedroso ปีที่แล้ว

    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 ?

  • @magictbjc7324
    @magictbjc7324 2 ปีที่แล้ว

    I fully believe this set up works. you are essentially using your proxmox as your network gateway, which is not very secure

    • @TechnoTim
      @TechnoTim  2 ปีที่แล้ว

      WAN has exclusive access to the NIC

  • @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?

  • @ierosgr
    @ierosgr 3 ปีที่แล้ว +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  3 ปีที่แล้ว

      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 3 ปีที่แล้ว +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?

  • @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.

  • @Billyfelicianojp
    @Billyfelicianojp 3 ปีที่แล้ว +6

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

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว

      Thank you!

    • @hamhumtube
      @hamhumtube 3 ปีที่แล้ว +2

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

  • @ebiscaia
    @ebiscaia 3 ปีที่แล้ว

    Hi Tim,
    How do you connect your other virtual machine that are inside of the same physical machine you installed pfsense? And do you use a dedicated modem to connect to pfsense?
    Thanks,
    Eduardo

    • @TechnoTim
      @TechnoTim  3 ปีที่แล้ว +1

      You use a linux bridge (which is basically a switch) that all of your VMs connect to as well as the physical NIC. This way all VMs and physical machines have access to your LAN

  • @shyuhei
    @shyuhei 11 หลายเดือนก่อน

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