Andrey Smirnov a3f88d2ef5
fix: block NodePort services with ingress firewall
The previous fix #10354 was not full/complete.

The problem lies in the fact that `kube-proxy` creates a rule like:

```
chain nat-prerouting {
	type nat hook prerouting priority dstnat; policy accept;
	jump services
}
```

This chain has a prerouting hook, which gets executed before Talos's
input hook, and rewrites (does DNAT) for NodePort services before Talos
has a chance to block the packet, but rewritten packet hits the input
chain with DNAT address, or might be forwarded to another host and never
hit the firewall again.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
2025-02-28 19:56:52 +04:00
..
2023-08-24 17:43:36 +05:30
2024-03-21 01:06:53 +03:00
2024-12-16 16:48:30 +04:00
2024-10-17 22:12:50 +04:00
2024-08-29 20:44:37 +04:00
2024-12-16 16:48:30 +04:00
2024-11-02 22:25:04 +05:30
2024-12-16 16:48:30 +04:00
2024-11-14 12:25:56 +03:00
2024-10-17 22:12:50 +04:00
2025-01-28 18:42:06 +04:00
2024-11-27 23:08:14 +04:00
2024-07-08 18:14:00 +03:00
2024-10-01 16:08:44 +04:00