saschpe / libvirt-hook-qemu

Libvirt hook for setting up iptables port-forwarding rules when using NAT-ed networking.
234 stars 69 forks source link

ips seem to be added wrongly #28

Closed lilmike closed 5 years ago

lilmike commented 5 years ago

Hi, I've got an issue where the host has two ips assigned, and the second of the two ips I assigned for guest's nat ports. However, some of the rules contain both the main ip and the proper nat ip, or in some cases just the main ip (and not the guest's ip). I've attached hooks.json and output of iptables-save, and as you can see, the public_ip is set properly, but the iptables rules still seem to be a bit wonky. Any help? -Michael.

iptables.txt

hooks.json.txt

lilmike commented 5 years ago

Never mind, apparently the example source_ip is not the public_ip. My bad. -Michael.