-
Notifications
You must be signed in to change notification settings - Fork 669
Add portForwards.guestIPMustBeZero property #660
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
Conversation
Can we come up with a better name to distinguish them? |
I've been pleading for suggestions in #658 already...
Sorry, but that name doesn't really work for me; I have no idea what it means. If anything, this option would reduce exposure, as the rule would no longer match any interface, but only a bind to I have one other suggestion now: portForwards:
- guestIP: "0.0.0.0"
guestIPExactMatchRequired: true
hostIP: "0.0.0.0" In the end, the documentation should clarify this, but ideally the name should be self-explanatory. |
I do have an issue with "exact match required" though: it is hard to argue that it should imply that So you could say that setting is just ignored for other |
guestIPExactMatchRequired seems better than guestIPZero |
When guestIPMustBeZero is set the rule will only match if the bind is against literal 0.0.0.0 and not any other interface. Signed-off-by: Jan Dubois <[email protected]>
9e86401
to
050b4eb
Compare
Please update the PR title and description (when this PR is out of draft) |
Done. I've also changed the second rule in the description to only forward all the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Maybe we should document this in docs/network.md
too
When
guestIPMustBeZero
is set the rule will only match if the bind is against literal0.0.0.0
and not any other interface.To forward any ports bound to
0.0.0.0
in the guest to0.0.0.0
on the host, but any other ports bound to127.0.0.1
only to localhost on the host use these rules:Fixes #658