Skip to content

generalized port/IP rewriting #623

Open
@cgull

Description

@cgull

I count 10 issues and pull requests relating to handling port and/or IP address rewriting and unblocking.

These are almost invariably about IPv4 NAT modifying or blocking IP/port tuples at one end or the other. I could be a wag and shout "IPv6, already!", but I've already been doing that for 5 years, and we still haven't gotten past IPv4.

The problem that I see is that most of these issues/PRs address some narrow part of the problem specific to the reporter's network, and thus aren't broadly useful enough for inclusion into Mosh. I'd like to suggest that we come up with some more-general scheme for managing this issue.

My thoughts on this are ill-formed so far, but I have two ideas that I want to float:

  1. I think maybe we can abstract the needed capabilities into three four parts:
  • Specifying/modifying desired port/address
  • Actually binding to a remote port/address and obtaining network resources/connectivity (option to use external program for opening UDP sockets #469 has an interesting idea here)
  • Reporting/modifying the port/address actually selected
  • Closing/releasing the network resources
  1. I think adding scripting or command-execution hooks for some or all of these actions would go a long way towards a general solution.

All of this applies to both mosh-client and mosh-server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions