Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Weave Net iptables rules disappear on firewalld reload #3586

Open
JoostvdB94 opened this issue Jan 18, 2019 · 3 comments
Open

Weave Net iptables rules disappear on firewalld reload #3586

JoostvdB94 opened this issue Jan 18, 2019 · 3 comments
Labels
Milestone

Comments

@JoostvdB94
Copy link

enhancement

What you expected to happen?

Persistent firewall settings, even after firewalld reload

What happened?

Weave chains & rules in IPTABLES (on a specific node) disappear when reloading the firewall on that node.
Kubernetes and docker rules are coming back, although they seem to disappear too after a reload of firewalld.

How to reproduce it?

  • Rollout (or use a existing) kubernetes cluster (mine is on-premise, using kubeadm init)
  • (Start firewalld if not already running)
  • run systemctl reload firewalld (or use another tool to do this e.g. firewall-cmd --reload)
  • Check IPTABLES filter rules iptables -L -v -n -t filter --line-numbers

See that WEAVE-NPC-EGRESS WEAVE-NPC and all linked chains have disappeared.

Anything else we need to know?

Using Weave as CNI for kubernetes, running version 2.5.0

Versions:

$ weave version 2.5.0
$ docker version 17.03
$ uname -a 
Linux ---- 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ kubectl version 
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-24T06:54:59Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
@bboreham
Copy link
Contributor

Related: #2208, #3106

@murali-reddy murali-reddy added this to the 2.6 milestone Mar 12, 2019
@bboreham bboreham modified the milestones: 2.6, overflow Nov 4, 2019
@bboreham bboreham changed the title Reconciler for weavenet settings in IPTABLES Weave Net iptables rules disappear on firewalld reload Apr 7, 2020
@bboreham
Copy link
Contributor

bboreham commented Apr 7, 2020

I changed the title because I think it's better to have it describe the problem rather than a potential solution.
Docker has code to react to firewalld reload. This might be easier to implement than a full reconcile (or let us poll more slowly if we do do a reconcile).

@bboreham
Copy link
Contributor

bboreham commented Aug 4, 2020

#3802 has addressed the iptables rules used by the "router" part, but the "npc" (Network Policy Controller) remains to do.
A possible work-around is to configure Weave Net to run with no network policies.

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

No branches or pull requests

3 participants