Skip to content

Directly connect in LAN without TCP port forwarding #661

Closed

Description

@hiiwave

Thanks for the awesome work! As in current release it relies on TCP Forwarding, use of the extension in environments where port forwarding has been disabled for security reason is impossible. (#92 )

However, I wonder if the remote machine is under the same LAN, could we connect it directly without port forwarding? (by adding an option)
To clarify, assume local host has IP 10.19.0.1, remote host has IP 10.19.0.101
Instead of forwarding port from 10.19.0.101:25001 -> localhost:10095 and using localhost:10095 to transmit, it is possible to use 10.19.0.101:25001 to transmit directly without TCP forwarding?

If that's possible, then it would be a quick workaround in such scenario, for remote server in the same LAN (or with a public IP such that direct connection is possible) with AllowTCPForwarding=No.

Activity

  1. lars18th commented on Jun 12, 2019

    @lars18th

    Hi,

    I agree for this solution in scenarios where:

    1. The only method to connect to the remote machine it's using a VPN.
    2. AND the SSH forwarding is disabled.
  2. roblourens commented on Jun 12, 2019

    @roblourens
    Member

    It's interesting that tcp forwarding in ssh would be disabled, but any port can be exposed? That seems like a contradiction to me. This would be easy but I have no clue how common this would be.

  3. added
    feature-request
    ssh
    on Jun 12, 2019
  4. hiiwave commented on Jun 13, 2019

    @hiiwave
    Author

    I don't really know how common it is, but at least it's the case in my currect company (not sure whether any port is exposed, but at least some ports are exposed).

  5. pomack commented on Oct 16, 2019

    @pomack

    roblourens Thanks for your work on #15 Our Linux development servers are not able to connect outside our network, so not needing to connect externally is a good first step.

    We have the same kind of scenario as the commenter above in our corporate environment. Our processes on development servers can all open ports > 1024 but the ssh configuration is set by system policy to AllowTCPForwarding=no. We aren't able to get an exception internally, so unable to use the Remote - SSH Extension.

    I have a feeling other corporate environments will be similar regardless of the efficacy of marking AllowTCPForwarding=no as explained in #92 (Security teams prefer to be safe and overzealous).

    Since you suggested this would be easy, can we get it prioritized?

  6. Mark-Southern commented on Nov 11, 2019

    @Mark-Southern

    Same here. AllowTcpForwarding=no and no exception, can open all ports > 1024. Could a connection port be specified in the config?

  7. added
    *out-of-scope
    on Dec 17, 2022
  8. vscodenpa commented on Dec 17, 2022

    @vscodenpa

    This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

    If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

    Thanks for your understanding and happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *out-of-scopefeature-requestssh

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions