Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chrisv2
Copy link

@chrisv2 chrisv2 commented Oct 1, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants