Answers: <p>You can use a ssh reverse proxy from any terminal (that has the ssh bin) to communicate with your applications.</p>
  
  <p>For instance try this on the client side:  </p>
  
  <pre><code> ssh -NL 3000:localhost:3000 root@10.10.10.1
  </code></pre>
  
  <p><em>This command won't print anything (except prompting for ssh key's password) and won't stop by itself. To kill the reverse proxy you can do ctrl + C</em></p>
  
  <p>Now you should be able to curl your application the following way on the client:</p>
  
  <pre><code>curl 127.0.0.1:3000
  </code></pre>
  
Answers: CC BY-SA 4.0
Answers: 2020-03-17T15:24:49.927Z
Answers: 2020-03-17T15:24:49.927Z
Answers: Doctor
Body: <p>I have a Windows server 2019 that have many VMs instances (running using HyperV). Each VMs has its own private IP and has some apps running inside and expose via ports.</p>
  
  <p>It looks like:</p>
  
  <ul>
  <li><p>VM1: running app nodejs port 3000, private ip: 10.10.10.1</p></li>
  <li><p>VM2: running app php port 3001, private ip: 10.10.10.2</p></li>
  </ul>
  
  <p>Now I want to setup a secure connection so my colleagues can access the apps inside each vm without expose them to internet, how can I achieve it?</p>
  
  <p>If I have a Ubuntu Server and SSH I will use dynamic port forwarding like this article</p>
  
  <p><a href="https://www.digitalocean.com/community/tutorials/how-to-route-web-traffic-securely-without-a-vpn-using-a-socks-tunnel" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/how-to-route-web-traffic-securely-without-a-vpn-using-a-socks-tunnel</a></p>
  
  <p>Does Windows have something alternative?</p>
  
  <p>I have did a lot of tutorials but it seem it does not work for me.</p>
  
Tags: <vpn>
Title: Port forwarding for Windows Server like SSH port forwarding
UserDisplayName: Chau Giang
ThreadText: # Port forwarding for Windows Server like SSH port forwarding
  
  (Asked by: username_0 on 2020-03-17)
  
  I have a Windows server 2019 that have many VMs instances (running using HyperV). Each VMs has its own private IP and has some apps running inside and expose via ports.
  
  It looks like:
  
  * VM1: running app nodejs port 3000, private ip: 10.10.10.1
  * VM2: running app php port 3001, private ip: 10.10.10.2
  
  Now I want to setup a secure connection so my colleagues can access the apps inside each vm without expose them to internet, how can I achieve it?
  
  If I have a Ubuntu Server and SSH I will use dynamic port forwarding like this article
  
  <https://www.digitalocean.com/community/tutorials/how-to-route-web-traffic-securely-without-a-vpn-using-a-socks-tunnel>
  
  Does Windows have something alternative?
  
  I have did a lot of tutorials but it seem it does not work for me.
  
  **Tags:** vpn
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-03-17. Score: 1
  
  You can use a ssh reverse proxy from any terminal (that has the ssh bin) to communicate with your applications.
  
  For instance try this on the client side:
  
  ```
   ssh -NL 3000:localhost:3000 root@10.10.10.1
  
  ```
  
  *This command won't print anything (except prompting for ssh key's password) and won't stop by itself. To kill the reverse proxy you can do ctrl + C*
  
  Now you should be able to curl your application the following way on the client:
  
  ```
  curl 127.0.0.1:3000
  
  ```
  
  
  ---
  
  