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

Make the iptables FORWARD chain rules optional #978

Merged
merged 1 commit into from
Jul 9, 2018

Conversation

KashifSaadat
Copy link
Contributor

@KashifSaadat KashifSaadat commented Apr 10, 2018

Fixes kubernetes/kops#4037, projectcalico/canal#115, #938

Description

Add a flag to allow users to specify whether they want to add the default ACCEPT traffic rules to the iptables FORWARD chain, which was introduced in Flannel release v0.9.1 to support Docker versions 1.13 and later (where docker sets the default policy on the FORWARD chain to drop).

Users may need to disable this behaviour in certain scenarios such as documented in #938, where used in conjunction with Calico (when FELIX_CHAININSERTMODE is set to append), as it breaks network policy behaviour.

Environment Variable: FLANNELD_IPTABLES_FORWARD_RULES
Command Line Option: iptables-forward-rules
Default Value: true (shouldn't break or modify existing behaviour)

@KashifSaadat
Copy link
Contributor Author

CC @caseydavenport @tomdee

@chenchun
Copy link
Contributor

Can anyone have a look?

@tomdee
Copy link
Contributor

tomdee commented Jul 9, 2018

Looks great, thanks for adding this.

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

Successfully merging this pull request may close these issues.

None yet

3 participants