Skip to content

Add hairpin NAT MASQUERADE rule after Swarm init#139

Open
szachovy wants to merge 1 commit into
masterfrom
fix/37-hairpin-nat
Open

Add hairpin NAT MASQUERADE rule after Swarm init#139
szachovy wants to merge 1 commit into
masterfrom
fix/37-hairpin-nat

Conversation

@szachovy

@szachovy szachovy commented Apr 8, 2026

Copy link
Copy Markdown
Owner

Detect docker_gwbridge subnet dynamically and add iptables MASQUERADE rule after initialize_swarm(). Fixes curl timeouts when Swarm containers access published ports via VIP.

Closes #37

After initialize_swarm(), detect the docker_gwbridge subnet dynamically
and add an iptables MASQUERADE rule. This fixes curl timeouts when
containers access published ports via the VIP (classic hairpin NAT).

Closes #37

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BF-4: Docker Swarm hairpin NAT blocks functional tests

1 participant