You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
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)
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).
#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.
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?
kubeadm init
)firewalld
if not already running)systemctl reload firewalld
(or use another tool to do this e.g.firewall-cmd --reload
)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:
The text was updated successfully, but these errors were encountered: