Routed Network can access LAN but not internet.

Started by exee, January 14, 2021, 09:53:16 PM

Previous topic - Next topic
Please forgive me as I am very new to all this but I recently took the plunge into Opnsense and am loving it so far. I have managed to get everything setup as I want except the routing to my VM.

I have a Windows 10 VM on a linux host using Virt-manager / KVM. I have a virtual routed network on the host to connect to the VM. On my old router (Gargoyle / OpenWRT) once the route was defined access to the LAN and internet worked. With Opnsense I must be missing a step somewhere. I have defined the route, I have setup the host as a gateway. After that I was able to ping the LAN from insdie the VM and ping the VM from the host. I am able to access my DNS server (also on the LAN with the host). Samba works from the VM to the host. But for the life of me I cannot access the internet from the VM. I tried adding a WAN rule (Source = VM network and Destination WAN address), but that did not change anything. What am I missing? How do I get the routed network access to the internet?

Thank so much.

Can you NAT the client connection on the Linux host?

Bart...

Thanks for the reply. The default KVM NAT virtual network worked as expected with a static route defined in Opnsense. On my old setup using OpenWRT a KVM Routed virtual network was required with a static route defined. Digging through the KVM documentation I have not quite figured out why yet, but I have managed the basic functionality I want to be able to control.