-
Notifications
You must be signed in to change notification settings - Fork 302
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
Make local port range configurable #7369
Comments
Hello! Have you looked into the setting |
That will not work I'm afraid: I am talking about the local port that is used to set up the tunnel. If you check the plugin code you see that the choice of this port is entirely random. This is further reflected by the documentation of the cited setting: remote.SSH.serverPickPortsFromRange reflects on the ports the remote vscode-server chooses. Does that clarify? |
Yes apologies I miss-read your message. We can put this in the backlog as a feature request! |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
would be great to see this implemented! |
I'd like to see this implemented. |
Having control of both server and client ports would be a great addition for highly controlled environments |
it would be a great addition ! |
This would be useful |
I'd like this to be implemented |
It would be great to see this implemented |
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
this has been a nightmare for me. running docker, syncthing, nvidia apps, all of those allocate enough ports that it takes me 3-5 attempts on average just to connect to my server which is very annoying. For those wondering which App allocated a port on Windows: Win + X -> Terminal run as admin
Also when you open a new window, it makes a new connection, 3-5 attempts, you select a folder and then a new connection again...even though the multiplexing is on. I would really appreciate if this can be made configurable: array of ports, array of ranges |
@eleanorjboyd : Things are likely busy for sure but any chance there is some info on the position in backlog for this request? It is still a showstopper for us in some scenarios. Thx! |
@KrisJanssen currently no update on timeline sorry! When it does get added to our plan it will be linked to another issue called "iteration plan" for the month it will be addressed. Thanks |
@eleanorjboyd I don't know if anyone put a word there, but thank you guys very much. I think it was resolved in v0.100.0 Remote - SSH extension |
@tonybart1337, interesting to hear that it is working since I don't think we made changes that would impact local port range configurability. Are other people seeing this? @roblourens could you investigate a bit further? Thanks! |
@eleanorjboyd @roblourens : wanted to check in where we are on this one. This remains a major showstopper which seems like a nobrainer to fix…. |
@eleanorjboyd @roblourens : Where are we on this one? It has been on the backlog for a while and we find ourselves having to deploy manually patched versions of the plugin at each update of VSCode/the plugin, which is somewhat of a pain :) |
I'm in the same situation as KrisJanssen and would also like to avoid to manually patch the extension. |
@eleanorjboyd @roblourens : can you please comment.... the stale branches and lack of commits do not bode well for what otherwise seems like quite the core functionality. |
The extension is not open source, so you can't see what commits go in. Would like to do this but we don't have the time right now, unfortunately. |
A new setting |
Remote - SSH extension selects a random free port on local host to set up the SSH tunnel in the function 'createTunnel()':
findAnyFreePort() cannot be limited in the range of port it tries.
This causes problems when using the functionality in our organization where client machines run Palo Alto Terminal Services Agent, which reserves ports in the range 20000-39999: Remote - SSH does not pick up on the fact that these ports are reserved (even if not used) and subsequently, the tunnel cannot be established if the extension selects a port in this range.
I validated that this is truly the cause by doing two things:
Patch randomPort() to select ports in the range 50000 to 60000:
Replace calls to findAnyFreePort() with calls to randomPort():
Doing this restores functionality.
As such I would like to request the local port range to be made a configurable item: this would allow our users to select ranges not reserved for other uses.
The text was updated successfully, but these errors were encountered: