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:
- Boot w no networking
- auto boot VM instance
- Enable NIC
<> stuck here <>
- incoming WAN (99.) passes thru physical host OS (no IP yet)
- virtual pfSense establishes WAN connection
- virtual pfSense establishes LAN (10.)
- virtual pfSense gives self local IP (10.x.x.1) and gives host OS IP (10.x.x.x)
- Host OS now on internet/local network
- (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?