Author: Lewis Language: text
Description: SSH Reverse Tunnel Gateway Port Timestamp: 2017-10-11 12:35:26 +0000
View raw paste Reply
  1. Greetings Dan and Wes. Long time listener, Patreon contributor to the network.  Love all the shows.
  2.  
  3. I have a question around SSH tunnels for secure RDP between windows machines.
  4.  
  5. I have a home on dynamic IP set by the ISP and an office on static IP which I am the network administrator for.
  6.  
  7. I am trying to set up a persistent SSH tunnel to allow me to RDP to the home from the static office.
  8.  
  9. I have an ubuntu 16.04 machine at the office with port 22 pointed at it through the firewall.
  10.  
  11. I have set up a raspberry PI at home to establish the SSH tunnel from home.
  12.  
  13. At the office I have set up /etc/ssh/ssh_config with "GatewayPorts yes"
  14.  
  15. I am connecting from the Raspberry Pi with the following:
  16.  
  17. ssh -g -N -R 0.0.0.0:3388:192.168.2.252:3389  -i ~/.ssh/key user@officeubuntubox
  18.  
  19. The tunnel is up, from the console at the office I can RDP localhost:3388 and get prompted by the box at the home office.
  20.  
  21. The gatwayports feature however, is not working.
  22.  
  23. My expectation is any box on the LAN at the office can rdp ubuntubox:3388 to get routed down the tunnel. This is not the case, the ubuntubox is not allowing incomming connections on 3388.
  24.  
  25. Do you have any ideas for me?  
  26.  
  27. I've read all over StackExchange and the like, it seems there were some early bugs in ssh which were causing this issue, however those were reported a long time ago. I can't imagine the issues persist until today.
  28.  
  29.  
View raw paste Reply