Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

udp breaks without bindaddr defined #92

Open
adufray opened this issue May 30, 2016 · 1 comment
Open

udp breaks without bindaddr defined #92

adufray opened this issue May 30, 2016 · 1 comment
Labels

Comments

@adufray
Copy link
Contributor

adufray commented May 30, 2016

If you do not define a bindaddr and have multiple IP addresses, umurmur will not send UDP data back via the same source port as the user connected from, causing the client to not receive any UDP (because it doesn't match the tuple). For example:

Server has 1.1.1.1 and 2.2.2.2 configured.

Client (3.3.3.3) connects to 2.2.2.2.

Client (3.3.3.3) sends UDP data to 2.2.2.2.

Server replies to client via 1.1.1.1.

Client (3.3.3.3) not expecting data from 1.1.1.1 ignores it.

UDP breaks.

I think the solution would be for umurmur to keep track of the address the user connected to, and then reply via that address. Workaround is to simply define a bindaddr.

@fatbob313
Copy link
Member

I think if the above scenario causes the described breakage, the problem is most likely with network/routing setup. See http://linux-ip.net/html/routing-saddr-selection.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants