Skip to content

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