Commit 850e7a0
fix: disable IPv6 in agent container to prevent squid proxy bypass (#1544)
* fix: disable IPv6 in agent container to prevent squid proxy bypass
Always disable IPv6 via sysctl in setup-iptables.sh regardless of
ip6tables availability. The awf-net Docker network is IPv4-only and
Squid only listens on IPv4, so IPv6 serves no purpose in the agent
container. Leaving it enabled causes Node.js happy-eyeballs to prefer
IPv6, resulting in connections to ::1 that Squid rejects with
transaction-end-before-headers.
Also add IPv6 listeners to Squid config (http_port [::]:3128) as
defense-in-depth, so any residual IPv6 traffic is handled rather
than silently rejected.
Closes #1543
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update src/squid-config.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update containers/agent/setup-iptables.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent b4acb6b commit 850e7a0
2 files changed
Lines changed: 24 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 34 | | |
39 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
40 | 51 | | |
41 | 52 | | |
42 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
192 | 199 | | |
193 | 200 | | |
194 | 201 | | |
| |||
420 | 427 | | |
421 | 428 | | |
422 | 429 | | |
423 | | - | |
| 430 | + | |
| 431 | + | |
424 | 432 | | |
425 | 433 | | |
426 | 434 | | |
| |||
0 commit comments