Repository navigation
SRT listener on dual-WAN server replies via wrong interface, breaking handshake #3252
Replies: 1 comment 3 replies
|
Have you compiled the code with This is not enabled by default because it's not supported for every platform. On FreeBSD it doesn't work and on Windows it's just not implemented. But it does work on Linux. There shouldn't be any problem with having a single listener with omni-binding to listen on effectively multiple devices, as long as the IP addresses assigned to the devices don't share the common broadcast IP (IP & ~mask value is not the same for both IP addresses). At least I've always been testing on a device with 4 different NICs and an omni-bound listener; the connection was always established over the link from which the caller was reporting. We have only detected one case when the listener responds over the wrong link - see docs/build/build-options.md under ENABLE_PKTINFO. We have never seen this behavior in any case other than the shared broadcast prefix - but might be that you have something in the routing rules that causes that behavior. Note that the OS's firewalls normally are unaware of SRT and treat its packets as UDP, effectively stating that it doesn't really matter over which link the UDP is sent, or resolve the routing some default way, if the source address in UDP is set by the machine itself. The listener bound to "any" (0.0.0.0) will decide this source address by itself, and this may cause setting the wrong address from the SRT perspective. This PKTINFO feature allows SRT to forcefully set this source IP address and not rely on the listener's machine. |
Uh oh!
There was an error while loading. Please reload this page.
Issue 1: Basic SRT Listener - Wrong Source IP in Replies
Command:
Expected Behavior:
srt://listener_ip1:30888→ replies fromlistener_ip1via WAN1 ✅srt://listener_ip2:30888→ replies fromlistener_ip2via WAN2 ✅Actual Behavior:
srt://listener_ip1:30888→ works correctly ✅srt://listener_ip2:30888→ replies fromlistener_ip1via WAN1 ❌tcpdump evidence:
The server creates a new outgoing connection from
listener_ip1instead of replying on the same socket that received the request onlistener_ip2. Client rejects the reply because source IP doesn't match, causing handshake timeout.Server logs show:
Repeated "waveahand" messages indicate the server keeps sending handshake replies, but client never receives them (or rejects them due to source IP mismatch).
Binding to interfaces working as expected without any issue
without additional routing.
Issue 2: Connection Groups (Active-Active Bonding) - Only WAN1 Connects
Command:
Expected Behavior:
Both connections added to the group:
Actual Behavior:
Server logs:
Only the WAN1 connection progresses beyond "waveahand" to actual connection establishment.
Issue 3: srt-test-live (similar behavior)
Command:
Actual: WAN1 connects; WAN2 keeps sending requests.
Only If we add an explicit host route for the caller via WAN2:
…then srt-test-live succeeds for WAN2 and we can see active traffic on both WAN1 and WAN2 interfaces
Questions
All reactions