Score:0

Netplan for "passthru" to virtual router and make host OS part of the LAN

lu flag

I am trying to create a virtual router and have the host OS be part of the LAN - I cannot find an example out there close enough to this tweak to make it work.

I need to use netplan on Ubuntu for the underlying network setup.

The requirement is to (ON BOOT) passthru incoming WAN connection on a physical port labelled enp2s0 to guest OS running in KVM. There should be no interaction with WAN on host OS yet, only KVM w/ pfSense OS.

Guest KVM pfSense system needs to receive the incoming WAN connection, obtain an IP address from the WAN, create a local LAN, give itself (the guest) an IP, then feed back a newly created LAN IP to the host OS.

As a set of steps it looks like:

  1. Boot w no networking
  2. auto boot VM instance
  3. Enable NIC

<> stuck here <>

  1. incoming WAN (99.) passes thru physical host OS (no IP yet)
  2. virtual pfSense establishes WAN connection
  3. virtual pfSense establishes LAN (10.)
  4. virtual pfSense gives self local IP (10.x.x.1) and gives host OS IP (10.x.x.x)
  5. Host OS now on internet/local network
  6. (10.) LAN connection open and available to route and give out IPs

Can someone share netplan examples or provide a general framework of how to approach this?

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.