agent-substrate / agent-substrate/substrate

atunnel: egress listener accepts IPv6 connections it cannot route

Ouverte
#943 0 commentaires 0 réactions 1 personne assignée Réclamée par @ygao-g Voir sur GitHub
area/network kind/bug
Langage dominant
Go
Étoiles
1.8k
Forks
316
Merge moyen
2 j 43 min
PR mergées (30 j)
287

Description

Sub-task of #246, part of bowei's [step 3](https://github.com/agent-substrate/substrate/issues/246#issuecomment-4771177881).

`atunnel-egress-listen-address` defaults to `0.0.0.0:15001` and is opened with `net.Listen("tcp", ...)`. Go treats every unspecified address as a wildcard, so this binds `::` dual-stack and accepts IPv6. `TCPOriginalDestination` then cannot recover the original destination, because it reads only the IPv4 `SOL_IP`/`SO_ORIGINAL_DST` — the connection is accepted and fails.

This issue originally read as "both listeners bind `0.0.0.0`, so IPv6 clients cannot reach them". That premise was wrong: `0.0.0.0` does not restrict the address family in Go, so actor ingress was already reachable over IPv6 on an IPv6-only cluster. The real defect is the reverse — egress accepts a family it cannot handle.

Making egress genuinely dual-stack needs #945 (actor veth addressing) and #686 (`IP6T_SO_ORIGINAL_DST`).

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.