Skip to content

Commit b379290

Browse files
abrichrclaude
andcommitted
fix: exempt port 5050 from DNAT so evaluate server is reachable
The DNAT rule in the container forwards ALL TCP ports to the Windows VM at 172.30.0.2, except a few (5700, 5900, 7100, 8006, 8004). Port 5050 was NOT exempted, so connections to the evaluate server were forwarded to the Windows VM instead of the container's Flask app. This was the root cause of every evaluate endpoint timeout/disconnect in this session. The evaluate server was running fine — traffic just never reached it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1ab5514 commit b379290

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

openadapt_evals/waa_deploy/start_with_evaluate.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ else
2424
cd /client
2525
python "$EVAL_SERVER" > /tmp/evaluate_server.log 2>&1 &
2626
echo "Evaluate server started on port 5050 (PID: $!)"
27+
28+
# Exempt port 5050 from the DNAT rule that forwards all traffic to
29+
# the Windows VM. Without this, connections to port 5050 get forwarded
30+
# to 172.30.0.2:5050 (Windows) instead of reaching the evaluate server
31+
# running on the container's Linux side.
32+
(
33+
sleep 10 # Wait for network.sh to set up DNAT rules
34+
iptables -t nat -I PREROUTING 1 -p tcp --dport 5050 -j ACCEPT 2>/dev/null \
35+
&& echo "iptables: exempted port 5050 from DNAT" \
36+
|| echo "iptables: failed to exempt port 5050 (non-fatal)"
37+
) &
2738
fi
2839

2940
# Execute the command passed as arguments (e.g., /entry.sh --prepare-image false)

0 commit comments

Comments
 (0)