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

Conveying NAT firewall port re-writing to mosh #494

Closed
earlchew opened this issue Feb 3, 2014 · 1 comment
Closed

Conveying NAT firewall port re-writing to mosh #494

earlchew opened this issue Feb 3, 2014 · 1 comment

Comments

@earlchew
Copy link

earlchew commented Feb 3, 2014

I am using a firewall which re-writes TCP/UDP port numbers.

I'm considering a patch to bin/mosh to accommodate this, and I'm soliciting advice on a reasonable approach.

Suppose the firewall will rewrite port numbers from 40001 to 50001 (as an example). This means that I want to issue -p 50001 to instruct the server to listen on 50001, but I also want the client to send to port 40001 (which the firewall will rewrite).

I'm thinking:

mosh -p 40001/50001
mosh -p 40001/50001:50099

would be a reasonable way to indicate this.

The second example shows how it could be combined with a server side port range. Suppose the server responded with port 50055, the client would use:

40001 + (50055 - 50001) = 40055
earlchew added a commit to earlchew/mosh that referenced this issue Feb 4, 2014
mobile-shell#494

Some firewalls re-write port numbers. Allow a port translation rule
to be specified. When the mosh-server responds with a port, have
the mosh-client connect to the translated external firewall port.

Signed-off-by: Earl Chew <[email protected]>
@cgull
Copy link
Member

cgull commented Jun 26, 2015

Duplicates #497.

@cgull cgull closed this as completed Jun 26, 2015
earlchew added a commit to earlchew/mosh that referenced this issue Dec 10, 2017
mobile-shell#494

Some firewalls re-write port numbers. Allow a port translation rule
to be specified. When the mosh-server responds with a port, have
the mosh-client connect to the translated external firewall port.

Signed-off-by: Earl Chew <[email protected]>
earlchew added a commit to earlchew/mosh that referenced this issue Dec 10, 2017
mobile-shell#494

Some firewalls re-write port numbers. Allow a port translation rule
to be specified. When the mosh-server responds with a port, have
the mosh-client connect to the translated external firewall port.

Signed-off-by: Earl Chew <[email protected]>
earlchew added a commit to earlchew/mosh that referenced this issue Apr 5, 2018
mobile-shell#494

Some firewalls re-write port numbers. Allow a port translation rule
to be specified. When the mosh-server responds with a port, have
the mosh-client connect to the translated external firewall port.

Signed-off-by: Earl Chew <[email protected]>
earlchew added a commit to earlchew/mosh that referenced this issue Apr 7, 2018
mobile-shell#494

Some firewalls re-write port numbers. Allow a port translation rule
to be specified. When the mosh-server responds with a port, have
the mosh-client connect to the translated external firewall port.

Signed-off-by: Earl Chew <[email protected]>
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

No branches or pull requests

2 participants