I want expose my libvirt VMs under NAT to my other computer in the same LAN.
For example I had VMs which ip range 192.168.100.0/24 and my router LAN range is 192.168.1.0/24.
I want connect the VMs not only from the host, also from other computers in the LAN under 192.168.1.0/24.
First I create a static router in my router which is Openwrt. Interface select lan,Target input '192.168.100.0/24',
mask input '255.255.255.0', and the gateway input the host machine LAN ip eg:'192.168.1.101'.
now I can only ping 192.168.100.1 from the router.I can't ping 192.168.100.2 and others.
I had to add the iptables rule in the host machine:sudo iptables -I LIBVIRT_FWI 1 -d 192.168.100.0/24 -o virbr0 -j ACCEPT.