libvirt-hook-qemu icon indicating copy to clipboard operation
libvirt-hook-qemu copied to clipboard

masquerade outgoing connections to public_ip (rebasing PR #21 on master)

Open chrisv2 opened this issue 7 years ago • 0 comments

For example in a mail server, it is important to have the correct source IP for outgoing connections (e.g. when the guest is making SMTP connection to another mail server, we need this connection to come from an IP with correct reverse lookup, otherwise the mail might not be accepted).

This PR adds an SNAT rule to masquerade the outgoing connections accordingly. I'm no expert with virtual networking, so I can't tell whether this is the correct or best way to achieve it, but it seems to work here.

This is an rebased version of PR #21, which I apparently messed up.

chrisv2 avatar Oct 01 '18 10:10 chrisv2