Can the Proxmox host connect to it's pfsense VM for network/routing or do I need an external network too?

IMTheNachoMan

Member
Jun 27, 2021
11
0
6
42
I have a computer I was going to put Proxmox on and then a pfsense VM for FW/routing.

I know that I can bridge the Proxmox host's two ethernet ports to its pfsense VM so all of my external devices (computer, AP, printer, etc...) will get network/internet through the pfsense VM on the Proxmox host.

But I'm at a loss for two things:
  1. How will the Proxmox host get network such that I can access Proxmox's web interface from another computer?
  2. How will other VMs on the Proxmox host get networking/internet? They'd have to some how connect to a NIC linked to the pfsense VM -- right?
It seems to me that #1 isn't possible -- chicken and egg. Or am I missing something?
 
You can create 2 bridges in PVE and 2 NICs for the pfSense VM.
1 bridge goes to the ethernet port that goes outwards/to your modem. There you attach the pfSense WAN.
1 bridge goes to the ethernet port that goes to your switch. You attach this to the pfSense LAN and you give this bridge an IP like
Code:
iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.10.2
        netmask 255.255.255.0
        gateway 192.168.10.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
and then you can attach VMs to the bridge and other devices to the switch and they are in the same network.
 
Last edited: