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

Implements ability to use custom client port #1328

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

soraxas
Copy link

@soraxas soraxas commented Jul 17, 2024

Allows one to specify the source port when using mosh-client

$ MOSH_CLIENT_PORT=60009 MOSH_KEY=$key mosh-client 100.10.10.1 60001

where the client should now initiate a UDP connection from clien/localhost 60009 port to server's 60001

This allows user to have deterministic control on the source port of the UDP connection (by default it'd be random). This is useful in situations such as harden firewall or UDP hole-punching.

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

Successfully merging this pull request may close these issues.

1 participant