Solved

SSH port forwarding

Posted on 2014-10-24
3
388 Views
Last Modified: 2014-10-27
Right now I have a remote site that is blocked by a firewall and currently SSHing into the network via putty and port forwarding my VNC traffic through so I only have one port (22) open to the world (Internal network:192.168.2.0/24).  I now have a camera system that has an ip on a separate vlan (192.168.1.0/29).  I am able to get to the camera from the internal network to the video lan.  I get to the camera system via IP 192.168.1.2:3000 via a browser.  I want to be able to start an SSH session and open a browser and hit that address.  Is there a way to set this port forwarding up in putty to where I can open that session.  My SSH server is on the 192.168.2.0/24 network.  Any help is appreciate.
0
Comment
Question by:nagit
3 Comments
 
LVL 28

Accepted Solution

by:
Jan Springer earned 250 total points
ID: 40403928
Yes, proxy all of your http traffic through your ssh tunnel.  

ssh -D 8080 USER@PUBLIC_IP -fN

where USER = is your ssh username
where PUBLIC_ip = is your ssh destination

In your browser, configure a SOCKS proxy using "localhost" as your SOCKS host and port 8080
0
 
LVL 35

Assisted Solution

by:mccarl
mccarl earned 250 total points
ID: 40405456
The fact that you can reach 192.168.1.2:3000 with a browser on your internal network means that you should be able to reach that same address from your SSH server which is on the same network. Therefore, you should just be able to setup another port forwarding rule in Putty. It would be configured with "Source port" = whatever (you could use 3000 same as the cam) and "Destination" = "192.168.1.2:3000". Then from the machine that you are running putty (ie. external to your private networks), start the putty session and then browse to "localhost:3000" (or whatever port you picked as the Source port) and hopefully it works. This is how I do it with my camera, and it works because all the communication happen via that same port. If you camera is different and uses more than one port, the above may not work, but see how you go.
0
 

Author Closing Comment

by:nagit
ID: 40406455
Thank you guys both worked just out.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question