Score:0

virtual pfSense setup with virtual interfaces

au flag

I am running a linux Desktop, for virtualization I am using QEMU/KVM. In order to properly test my ansible Scripts I would like to create a virtual lab environment on my Desktop, that behaves like the production network.

Since our network setup involves VLANS and DHCP I would like to run a virtual pfSense instance that mimics our router and link others VMs to it. Here is an illustration of what I would like to achieve:

 + HOST [Development Machine] ----------+
 |                                      |
 |  pfSense[VM]  host1[VM]  host2[VM]   |
 |  wan  port     eth0       eth0       |
 |   |    |        |          |         |
 |   |    +--------+----------+         |
 |   +                                  |
 +--eth0--------------------------------+
    www

All host1…n should be connected to the pfsense and get their IP addresses from it. For that I guess I need to create a bridge interface and its port should be connected to the pfsense - right? If so, which interface type should that one for the Bridge port have?

paladin avatar
id flag
You use a bridge interface (net dev). See `man systemd.netdev` and `man systemd.network`. You may/should use systemd to configure your bridge, see `man systemd-networkd`. PS a regular bridge device might not be "virtualized", so it may be possible for the VM hypervisor to look into it, using tools like Wireshark. In my opinion it would be easier to create a VLAN in using your hypervisor software.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.