Summary: | Outbound UDP packets sometimes incorrectly sent on loopback interface | ||
---|---|---|---|
Product: | passt | Reporter: | David Gibson <dgibson> |
Component: | UDP | Assignee: | nobody |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux |
Description
David Gibson
2022-12-01 02:09:00 UTC
It looks like this is because the sockets created for forwarding the output packets are bound to UNSPEC, meaning that when delivering to the host via gateway translation they use loopback. I based this on a misunderstanding of how the $GW translation is supposed to work. After discussing with Stefano the meaning of GW translation, the consensus was that $GW in the guest/ns represents the host's loopback address as seen from the host. There are still some weird edge cases with $GW translation, but this specific example is working as intended. |