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

iptables: partial #13 revert, skip masq in chain #17

Merged
merged 1 commit into from Jul 29, 2019

Conversation

squeed
Copy link
Contributor

@squeed squeed commented Jul 26, 2019

PR #13 changed the source rule for OPENSHIFT-MASQUERADE. However, rolling out source-rule changes on a running system isn't clean. Easier to leave the source-rule unchanged, and just add a rule first in the chain that gets us where we want to be.

So, -j RETURN for traffic that's already marked for MASQ.

@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 26, 2019
@squeed
Copy link
Contributor Author

squeed commented Jul 26, 2019

@danwinship PTAL.

@danwinship
Copy link
Contributor

danwinship commented Jul 26, 2019

bz1726045 / PR #8

you mean #13

But the whole reason why we created our own separate chains in the first place was so that we didn't have to do complicated cleanup (openshift/origin#13465). We should revert that part of #13 and do this differently. Eg, if OPENSHIFT-MASQUERADE started with a "if marked then -j RETURN" rule, that would have the same effect, while leaving the toplevel rule unchanged from 4.1.

@squeed
Copy link
Contributor Author

squeed commented Jul 29, 2019

if OPENSHIFT-MASQUERADE started with a "if marked then -j RETURN" rule

You're right, that's a much cleverer solution.

PR openshift#13 changed the source rule for OPENSHIFT-MASQUERADE. However,
rolling out source-rule changes on a running system isn't clean. Easier
to leave the source-rule unchanged, and just add a rule first in the
chain that gets us where we want to be.

So, -j RETURN for traffic that's already marked for MASQ.
@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 29, 2019
@squeed squeed changed the title iptables: delete unneeded old rules (from old versions) iptables: partial #13 revert, skip masq in chain Jul 29, 2019
@squeed
Copy link
Contributor Author

squeed commented Jul 29, 2019

OK, updated (and fixed the commit message / title)

@danwinship
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 29, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danwinship, squeed

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants