1
General Discussion / Re: OPNsense on KVM on Ubuntu host, host can't connect to WAN
« on: October 11, 2024, 09:51:55 am »
Solved my own problem, it was embarrassingly easy in the end.
What I did, for anyone finding this in future:
- Create a new bridge interface in Cockpit called bridge0 (it seems that virbr0 that I thought was a bridge was actually something else?)
- Assign the new bridge interface the enp4s0 physical interface I'm using for LAN
- New bridge interface keeps the same IP
- Stop VM, change VM network interface type from direct to bridge, change assignment to bridge0, start VM
And everything just worked.
I didn't have to change anything in OPNsense, and I didn't need to do anything through the host console. Just make sure the PC you're connecting to the Cockpit host with has a static IP and you shouldn't even lose web interface access while making the interface changes.
What I did, for anyone finding this in future:
- Create a new bridge interface in Cockpit called bridge0 (it seems that virbr0 that I thought was a bridge was actually something else?)
- Assign the new bridge interface the enp4s0 physical interface I'm using for LAN
- New bridge interface keeps the same IP
- Stop VM, change VM network interface type from direct to bridge, change assignment to bridge0, start VM
And everything just worked.
I didn't have to change anything in OPNsense, and I didn't need to do anything through the host console. Just make sure the PC you're connecting to the Cockpit host with has a static IP and you shouldn't even lose web interface access while making the interface changes.