I have a tiny lenovo m900 which i added a second ethernet port to and i’m trying to set it up as a proxmox server with OPNsesne. I’ve got the OPNsense VM setup with the two ethernet ports bridged to it. Everything is working fine on the network except my proxmox server doesnt have an internet connection. How can i set it up so that one of the ports acts as my LAN default gateway and also functions as the management port for proxmox. I’m guessing that’s what is causing this issue.

  • daftwerder@lemm.ee
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Add each hardware NIC to its own Linux bridge. Add two VNICs to the opnsense VM. In proxmox gui, assign an address to the LAN Linux bridge for the management interface. That’s what I do and I’ve had no problems for over a year. It works fine with near 1gbps symmetrical connection.

  • SheeEttin@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Proxmox lets you do that? Don’t. Just give the opnsense VM a virtual NIC and do a router-on-a-stick configuration.

    You could also just assign one physical port to the opnsense VM and still do a router-on-a-stick.

    Although personally, I wouldn’t recommend virtualizing your network gateway. If you break Proxmox, you’ll also lose Internet access. And if you have to do maintenance on Proxmox, same issue.

    • gray@lemmy.boltwolf.net
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      The inverse is my recommendation to virtualize the firewall, easy backups/snapshots, migrate to another host, setup CARP, etc.