Watch
0
0
Fork
You've already forked hyperhive
0

swarm-nats: the pod's raw rule lets through the interfaces the firewall opens the client port on

The hostPort's raw-table drop for the queue's client port let through only the host's loopback, the bridge and the pods' interfaces, so a hive on another host, reaching the queue over wg0 where the firewall's own rule opens the port, timed out. The rule now also returns for every interface whose networking.firewall.interfaces entry opens the port. semi-spread dumps the queue's network state when the hive cannot reach it, and asserts the port answers over wg0 and not on the public address.
This commit is contained in:
atlas 2026-11-26 23:32:02 +01:00 • committed by maia
commit 9496d934b7

View file

@ -1308,8 +1308,9 @@ in
address the other hives reach.
The pod's published port has the same reach: a rule in the firewall's raw
table drops it from every interface but the host's loopback, the bridge
and the pods' unless this is set.
table drops it from every interface but the host's loopback, the bridge,
the pods' and those that {option}`networking.firewall.interfaces` opens
the port on, unless this is set.
'';
};
@ -1585,6 +1586,7 @@ in
networkCfg.bridgeName
]
++ deployCfg.k8s.cniInterfaces;
firewallInterfaces = config.networking.firewall.interfaces;
openClient = deployCfg.nats.openFirewall;
}
);