Commit 17c05ec
committed
fix(proxy-init): let established/related replies through enforce-drop
Address review on #484: the AB_EGRESS chain filtered purely on
dest/owner/mark, so reply packets for inbound connections (which also
traverse mangle OUTPUT) to an off-cluster peer would hit the terminal
DROP — e.g. kubelet health-probe responses to the Kind node IP
(172.18.0.0/16, outside the default CLUSTER_CIDRS=10.0.0.0/8), causing
probe failures and pod restarts once enforcement is enabled.
- Add `-m conntrack --ctstate ESTABLISHED,RELATED -j RETURN` as the
first rule (IPv4 + IPv6). Only NEW app-initiated flows are gated;
a reply is never a bypass.
- IPv6: also allow link-local multicast (ff02::/16) so NDP
neighbor/router solicitations work, and correct the comment that
overstated NDP preservation.
- README: clarify the enforce-drop injection lands in the follow-up
operator PR rather than reading as already-available.
- test: assert the established/related RETURN exists and is the first
rule in AB_EGRESS.
Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Hai Huang <huang195@gmail.com>1 parent 91708b7 commit 17c05ec
3 files changed
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
235 | 241 | | |
236 | 242 | | |
237 | 243 | | |
| |||
256 | 262 | | |
257 | 263 | | |
258 | 264 | | |
259 | | - | |
260 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
261 | 269 | | |
262 | 270 | | |
263 | 271 | | |
| 272 | + | |
264 | 273 | | |
265 | 274 | | |
266 | 275 | | |
267 | 276 | | |
268 | 277 | | |
| 278 | + | |
269 | 279 | | |
270 | 280 | | |
271 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
| |||
0 commit comments