-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Added "to_destination" option to forward port to remote host #1617
Conversation
Thanks @rtm-ctrlz. @LinusU please review according to guidelines (http://docs.ansible.com/ansible/developing_modules.html#module-checklist) and comment with text 'shipit' or 'needs_revision' as appropriate. |
|
@rtm-ctrlz A friendly reminder: this pull request has been marked as needing your action. If you still believe that this PR applies, and you intend to address the issues with this PR, just let us know in the PR itself and we will keep it open pending your changes. |
@robynbergeron Seems like he fixed it a day ago, this looks good to me 👍 'shipit' |
Thanks again to @rtm-ctrlz for this PR, and thanks @LinusU for reviewing. Marking for inclusion. |
Thanks @rtm-ctrlz for this PR. Unfortunately, it is not mergeable in its current state due to merge conflicts. Please rebase your PR. When you are done, please comment with text 'ready_for_review' and we will put this PR back into review. |
'ready_for_review' |
'shipit' Looking good 👍 I personally would prefer to squash to commits into one though... |
Thanks again to @rtm-ctrlz for this PR, and thanks @LinusU for reviewing. Marking for inclusion. |
132 commits? Something seems to have gone wrong with rebase/merge? |
Yes, this needs to be cleaned up. This is common when a feature branch isn't used. I'd create a new branch from origin/devel and cherry-pick the relevant commit(s) over to that, then revert/reset your working devel to match origin/devel. Unfortunately you'll most likely have to resubmit this PR as the source branch will have changed. |
Another option would be to fork off a branch from your current devel, then fix devel by resetting/rebasing and cherry-pick the commit(s) back to devel. After that, This way you should not have to resubmit the PR, but any further merges in your devel branch would mean you'd have to repeat this process (which is why it's always best to send PRs from feature branches). |
Sorry for this mess with 130+ commits, fixed it. As far as I can see this PR is 'ready_for_review' |
Looks good 'shipit' |
I am not sure the text to describe the option is correct. One can make dnat without specifying the port. |
Thanks @rtm-ctrlz. To the current maintainers, @LinusU please review according to guidelines (http://docs.ansible.com/ansible/developing_modules.html#module-checklist) and comment with text 'shipit' or 'needs_revision' as appropriate. |
The code looks good but, as pointed out by @mscherer, the documentation probably needs another look at. 'needs_revision' |
Thanks @rtm-ctrlz for this PR. This PR requires revisions, either because it fails to build or by reviewer request. Please make the suggested revisions. When you are done, please comment with text 'ready_for_review' and we will put this PR back into review. [This message brought to you by your friendly Ansibull-bot.] |
Thanks @rtm-ctrlz for this PR. Unfortunately, it is not mergeable in its current state due to merge conflicts. Please rebase your PR. When you are done, please comment with text 'ready_for_review' and we will put this PR back into review. [This message brought to you by your friendly Ansibull-bot.] |
Same functionality was pulled with #1971 |
Example:
iptables -t nat -A port_forward -p tcp -m tcp --dport 2202 -j DNAT --to-destination 10.0.0.2:22
Use case:
On a host with a bunch of containers, ex. LXC.